內部表迴圈
LOOP AT itab INTO wa.
ENDLOOP.
FIELD-SYMBOLS <fs> LIKE LINE OF itab.
LOOP AT itab ASSIGNING <fs>.
ENDLOOP.
LOOP AT itab ASSIGNING FIELD-SYMBOL(<fs>).
ENDLOOP.
LOOP AT itab REFERENCE INTO dref.
ENDLOOP.
LOOP AT itab TRANSPORTING NO FIELDS.
ENDLOOP.
有條件的迴圈
如果只有符合特定條件的行應該進入迴圈,則可以新增 WHERE
。
LOOP AT itab INTO wa WHERE f1 = 'Max'.
ENDLOOP.