一般命令

要断开循环,可以使用命令 EXIT

DO.
    READ TABLE itab INDEX sy-index INTO DATA(wa).
    IF sy-subrc <> 0.
        EXIT. "Stop this loop if no element was found
    ENDIF.    
    " some code
ENDDO.

要跳到下一个循环步骤,可以使用命令 CONTINUE

DO.
    IF sy-index MOD 1 = 0.
        CONTINUE. " continue to next even index
    ENDIF.
    " some code  
ENDDO.

CHECK 语句是有条件的 CONTINUE。如果条件结果为,则将执行 CONTINUE。换句话说: 如果条件为真,循环将仅继续执行步骤

这个例子是 CHECK ……

DO.
    " some code
    CHECK sy-index < 10.        
    " some code
ENDDO.

……相当于……

DO.
    " some code
    IF sy-index >= 10.
        CONTINUE.
    ENDIF.
    " some code
ENDDO.