ABAP Keyword Documentation → ABAP - Reference → Calling and leaving program units → Exiting Program Units → Exiting Processing Blocks
EXIT - processing_block
Other versions: 7.31 | 7.40 | 7.54
Syntax
EXIT.
Effect
If the EXIT
statement is located outside a
loop, the statement immediately terminates the current
processing block.
After the processing block is exited, the runtime environment responds in the same way as when the
processing block is exited in a regular way
(with the exception of the event block LOAD-OF-PROGRAM
and the
reporting event blocks
START-OF-SELECTION
and GET
). In particular, the output parameters of procedures are passed on to the bound actual parameters.
-
You cannot exit the
LOAD-OF-PROGRAM
event block usingEXIT
. -
After the reporting event blocks
START-OF-SELECTION
andGET
have been exited usingEXIT
, the runtime environment does not trigger any more reporting events; instead, it calls the list processor directly to display the basic list.