SAP READ TABLE ITAB - Reference ABAP Statements
Get Example source ABAP code based on a different SAP table
Standard SAP Help for READ_ITAB
READ TABLE
ABAP Code Snippet
ABAP Syntax
{ {{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 ... }
| { • idx [USING KEY key_name|(name)]} }
| {WITH KEY dobj [BINARY SEARCH]}
| {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} }.
ABAP Code Snippet
What does it do? Reads a single row from an internal table
ABAP Addition
Specifies the row to be read by matching it with the key values of a work area
{comp_name1|(name1)} = dobj1 {comp_name2|(name2)} = dobj2 ...
Specifies the row to be read by specifying components of the primary table key statically or dynamically.
Specifies the row to be read by specifying components
Specifies the row to be read by specifying components
Specifies the row to be read by specifying the row number
Specifies (statically or dynamically) a (secondary) table key used to find the row to be read.
Assigns the read row to a work area
Compares the components
Assigns the specified components
Assigns the row read to a field symbol
Assigns the reference to the read row to a reference variable
The read row is not assigned.
Return to menu