ABAP Loops Internal Table Loop


Example

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.

Conditional Looping

If only lines that match a certain condition should be taken into the loop, addition WHERE can be added.

LOOP AT itab INTO wa WHERE f1 = 'Max'.
ENDLOOP.