Ansicht
Dokumentation

ABAPCHECK_LOOP - CHECK LOOP

ABAPCHECK_LOOP - CHECK LOOP

ABAP Short Reference   CPI1466 during Backup  
This documentation is copyright by SAP AG.
SAP E-Book

CHECK, loop

Short Reference



CHECK log_exp.

Effect

If the statement CHECK is listed in a loop and log_exp is incorrect, the statement CHECK immediately terminates the current loop pass and the program continues with the next loop pass. Any logical expression can be specified for log_exp.

Notes

  • Within a loop, CHECK log_exp has the same effect as:
IF NOT log_exp.
  CONTINUE.
ENDIF.
  • Outside a loop, the statement CHECK exits the current processing block (see CHECK), however it is recommended that only CHECK is used inside loops.

Termination of a loop pass using CHECK if the loop index sy-index is an odd number.

Termination of a loop pass using CHECK if the loop index sy-index is an odd number.






PERFORM Short Reference   rdisp/max_wprun_time - Maximum work process run time  
This documentation is copyright by SAP AG.

Length: 1685 Date: 20240623 Time: 190130     sap01-206 ( 27 ms )