SAP EXIT SQL ABAP Statements



Get Example source ABAP code based on a different SAP table
  


ID EXIT-FROM-SQL
• EXIT FROM SQL ABAP Statement

ABAP_EXEC_SQL - EXIT FROM SQL
Short Reference

ABAP_SYNTAX_OBS
EXIT FROM SQL.

What does it do?
This statement, which is forbidden in classes, is only executed during the processing of subroutines called using the obsolete addition PERFORMING of the statement EXEC SQL. Otherwise it is ignored.
The statement terminates implicit cursor processing after the current subroutine has ended. Processing of the called ABAP program is resumed after ENDEXEC, where sy-dbcnt contains the number of rows read so far and sy-subrc is set to the value 4. If an overflow occurs because the number or rows is greater than 2,147,483,647, sy-dbcnt is set to -1.

Return to menu