SAP CHECK PROCESSING BLOCKS ABAP Statements

Get Example source ABAP code based on a different SAP table
  


Standard SAP Help for CHECK

CHECK - processing_block

Short Reference
• CHECK - processing block ABAP Statement


ABAP Syntax CHECK log_exp.


What does it do? 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. You cannot exit the LOAD-OF-PROGRAM event block using CHECK . After the reporting event block GET is exited using CHECK , subordinate nodes in the hierarchical structure of the linked logical database are no longer processed. The logical database reads the next line of the current node or next higher node, if it has reached the end of the hierarchy level.

ABAP_PGL Only use RETURN to exit procedures

Latest notes:In a procedure (method, function module, subroutine), CHECK log_exp functions outside a loop in the same way as: IF NOT log_exp.
RETURN.
ENDIF. A further variant of the statement CHECK for exiting processing blocks is CHECK SELECT-OPTIONS that can only be used in GET event blocks for logical databases.

Return to menu