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

CHECK - processing_block  Syntax Diagram

Short Reference

Syntax

CHECK log_exp.

Effect

If the CHECK statement is located outside a loop and log_exp is false, the statement terminates the current processing block. You can specify any logical expression for log_exp.

After the processing block is exited, the runtime environment proceeds in the same way as when the processing block is exited in the normal way (with the exception of the event block LOAD-OF-PROGRAM and the reporting event block GET). In particular, the output parameters of procedures are passed on to the bound actual parameters.

Programming Guideline

Only use RETURN to exit procedures

Notes

IF NOT log_exp.
  RETURN.
ENDIF.