Skip to content

ABAP Keyword Documentation →  ABAP - Quick Reference 

LOOP AT itab - Quick reference

Reference

Other versions: 7.31 | 7.40 | 7.54

Syntax


LOOP AT itab { { INTO wa } 
             | { ASSIGNING <fs> [CASTING] }
             | { REFERENCE INTO dref }
             | { TRANSPORTING NO FIELDS } }
             [ USING KEY key_name|(name) ]
             [ FROM idx1] [TO idx2][WHERE log_exp|(cond_syntax) ]
             [ GROUP BY key | ( key1 = dobj1 key2 = dobj2 ...
                                [gs = GROUP SIZE] [gi = GROUP INDEX] )
                 [ASCENDING|DESCENDING [AS TEXT]]
                 [WITHOUT MEMBERS]
                [ {INTO group}
                | {ASSIGNING <group>}
                | {REFERENCE INTO group_ref} ] ].
  ...
ENDLOOP.

Effect

Reads an internal table itab in a loop. A restricted variant works withmesh paths.

Additions