Skip to content

ABAP Keyword Documentation →  ABAP − Reference →  Calling and leaving program units →  Exiting Program Units 

Exiting Processing Blocks

Processing blocks can be exited implicitly using the following:

or program-driven exiting, using these statements:

  • REJECT (obsolete, for logical databases only)

The onward flow of the program depends on the type of processing block.

In addition to the statements described here, statements that call other units without returning to the caller after the call is made, also end their processing block. These include:

Messages and raised exceptions can also exit processing blocks.

Other versions: 7.31 | 7.40 | 7.54

Programming Guideline

Only use RETURN to exit procedures


Exiting a procedure using RETURN (or EXIT or CHECK) is the error-free way to exit the procedure. Formal parameters for which the pass by value is defined are not passed to the assigned actual parameters only if the procedure terminates after an error (an exception is triggered or a message is sent).


Regular Exiting of a Processing Block


EXIT - processing_block

CHECK - processing_block