Skip to content

ABAP Keyword Documentation →  ABAP - Reference →  Calling and leaving program units →  Exiting Program Units →  Exiting Processing Blocks 

EXIT - processing_block

Short Reference

Other versions: 7.31 | 7.40 | 7.54




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 using EXIT.
  • After the reporting event blocks START-OF-SELECTION and GET have been exited using EXIT, the runtime environment does not trigger any more reporting events; instead, it calls the list processor directly to display the basic list.

Programming Guideline

Only use RETURN to exit procedures