EXEC SQL - EXIT FROM SQL
Short Reference
ABAP Syntax(Obsolete) EXIT FROM SQL.
What does it do? This statement, forbidden in classes, is only executed
during 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 finished. Processing of
the called ABAP program is resumed after ENDEXEC , where
sy-dbcnt contains the number of rows read up until that point 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.
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved