SAP NetWeaver AS ABAP Release 750, ©Copyright 2016 SAP AG. All rights reserved.
ABAP - Keyword Documentation → ABAP - Reference → Calling and leaving program units → Exiting Program Units → Exiting Processing Blocks →
CHECK - processing_block
Syntax
CHECK log_exp.
Effect
If the statement CHECK is located outside a loop and log_exp is false, the statement terminates the current processing block. Any logical expression can be specified 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 to the bound actual parameters.
Programming Guideline
Only use RETURN to exit procedures
Notes