EXIT FROM SQL.
This statement, which is forbidden in classes, is only executed during processing of subroutines that were called using the PERFORMING addition EXEC SQL. Otherwise it is ignored.
The statement has the effect that implicit cursor processing is terminated after the current subroutine has finished. Processing of the called ABAP program is continued after ENDEXEC, whereby sy-dbcnt contains the number of rows read up until that point and sy-subrc is set to the value 4.