Skip to content

ABAP Keyword Documentation →  ABAP - Reference →  Obsolete Language Elements →  Obsolete Processing of External Data →  Obsolete Database Access →  Obsolete Cursor Processing in Native SQL 

EXEC SQL - EXIT FROM SQL

Short Reference

Other versions: 7.31 | 7.40 | 7.54

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.