Skip to content

ABAP Keyword Documentation →  ABAP - Short Reference 

READ TABLE itab - Short Reference

Reference

Other versions: 7.31 | 7.40 | 7.54

Syntax


READ TABLE itab 
           { {{FROM wa [USING KEY key_name|(name)]}
             |{WITH TABLE KEY [key_name|(name) COMPONENTS]
                              {comp_name1|(name1)} = dobj1
                              {comp_name2|(name2)} = dobj2
                              ...}
             | {WITH KEY comp1 = dobj1 comp2 = dobj2 ... [BINARY SEARCH]}
             | {WITH KEY key_name|(name)
                         COMPONENTS comp1 = dobj1 comp2 = dobj2 ... }
             | {INDEX idx [USING KEY key_name|(name)]} }
             | {WITH KEY dobj}
             | {WITH KEY = dobj [BINARY SEARCH]} }
           { {INTO wa
              [COMPARING { {comp1 comp2 ...}|{ALL FIELDS}|{NO FIELDS} }]
              [TRANSPORTING { {comp1 comp2 ...}|{ALL FIELDS} }]}
           | {ASSIGNING <fs> [CASTING]}
           | {REFERENCE INTO dref}
           | {TRANSPORTING NO FIELDS} }.

Effect

Reads a single line from an internal table itab.

Additions