Ansicht
Dokumentation

ABAPCHECK_PROCESSING_BLOCKS - CHECK PROCESSING BLOCKS

ABAPCHECK_PROCESSING_BLOCKS - CHECK PROCESSING BLOCKS

TXBHW - Original Tax Base Amount in Local Currency   General Data in Customer Master  
This documentation is copyright by SAP AG.
SAP E-Book

CHECK, processing_block

Short Reference



CHECK log_exp.

Effect

If the statement CHECK is listed outside a loop and log_exp is false, it terminates the current processing block. Any logical expression can be specified for log_exp.

After the processing block is exited, the runtime framework behaves in the same way as when the processing block is exited in the regular 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.

  • The event block LOAD-OF-PROGRAM cannot be exited using CHECK.
  • After the reporting event block GET is terminated using CHECK, any subordinate nodes in the hierarchy 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.

Only use RETURN to exit procedures

Notes

  • In a procedure (a method, function module, or subroutine), CHECK log_exp works outside a loop in the same way as:
IF NOT log_exp.
  RETURN.
ENDIF.

Example

This example shows a case where CHECK can be used outside a loop. At the start of a procedure, a prerequisite for executing the procedure is checked and the procedure exited if the check is not successful. In this case, the procedure must not be executed in the background.






TXBHW - Original Tax Base Amount in Local Currency   Vendor Master (General Section)  
This documentation is copyright by SAP AG.

Length: 3099 Date: 20240614 Time: 054922     sap01-206 ( 50 ms )