1. READ TABLE
itab [
additions
].
2. READ
TABLE itab WITH KEY key [
additions
].
3. READ
TABLE itab WITH KEY = v [BINARY SEARCH] [ additions].
Both variants are obsolete, and can be replaced with variants of the READ<>/
statement that specify the key explicitly in the form "k1 = v1 ... kn = vn" (see also Obsolete statements).
The syntax check performed in an ABAP Objects context is stricter than in other ABAP areas. See Obsolete READ variants not allowed.
READ TABLE itab [additions].
In an internal table with a header line, you can read a line of the table without specifying the key
or index. In this case, the system uses all of the fields in the table header that are not numeric fields
(types I, F, P) or tables themselves (see default key of internal
tables) as an implicit key
as long as their contents are not equal to SPACE.
The system looks for the first entry in which all key fields correspond to the header entry, and copies it into the output area.
READ TABLE itab WITH KEY key [additions].
This variant accesses the first entry (from the left) beginning with key.
The type of the specified key key is the basis for the comparison.
The key key may not be a table or a structure containing a table.
READ TABLE itab WITH KEY = v [BINARY SEARCH] [additions].
Accesses the first entry that corresponds to "v". The
entire line of the internal table is interpreted as the component. Instead of this, use an explicit
key definition with the pseudocomponent TABLE LINE.
Catchable Exceptions