SAP NetWeaver AS ABAP Release 740, ©Copyright 2014 SAP AG. All rights reserved.
ABAP Keyword Documentation → ABAP − Reference → Obsolete Language Elements → Obsolete Processing of External Data → Obsolete Database Access → Obsolete Cursor Processing in Native SQL →Obsolete Syntax
EXIT FROM SQL.
Effect
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.