ABAPCHECK_LOOP - CHECK LOOP
CL_GUI_FRONTEND_SERVICES - Frontend Services CPI1466 during BackupThis documentation is copyright by SAP AG.
CHECK - loop
Syntax
CHECK log_exp.
Effect
If the statement CHECK is executed 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. You can specify anylogicalexpression for log_exp.
Notes
- Inside a loop, CHECK log_exp functions just like
IF NOT log_exp.
CONTINUE.
ENDIF.
- Outside a loop, the statement CHECK exits the currentprocessingblock (see CHECK Processing Block).
Example
Termination of the loop pass using CHECK when the loop index sy-index is odd-numbered.
DATA remainder TYPE i.
DO 20 TIMES.
remainder = sy-index MOD 2.
CHECK remainder = 0.
WRITE / sy-index.
ENDDO.
Vendor Master (General Section) ABAP Short Reference
This documentation is copyright by SAP AG.
Length: 1868 Date: 20120518 Time: 203356 triton ( 73 ms )






