READ TABLE dbtab.
1. ... SEARCH
FKEQ
2. ...
SEARCH FKGE
3. ...
SEARCH GKEQ
4. ...
SEARCH GKGE
5. ...
WITH KEY key
6. ... VERSION vers
This variant is no longer maintained and should therefore not be used (see also obsolete
statements). Please use a SELECT (SINGLE) statement instead.
In some cases, the syntax rules that apply to Unicode programs are different than those for non-Unicode programs. See Key Specifications and Unicode.
This variant is not allowed in an ABAP Objects context. See Prohibit READ TABLE.
Accesses the database table
dbtab
The table dbtab
must be declared under TABLES
in the program. dbtab is a table name which begins with
"T" and comprises no more than five characters altogether.
You must fill the argument fields of
the table first; then you can use READ TABLE to make direct access to the table entry.
Declare table:
TABLES T006.
Fill argument fields:
MOVE: '001' TO T006-MANDT,
'STD' TO T006-MSEHI.
Access:
READ TABLE T006.
Process fields:
WRITE T006-DIMID.
... SEARCH FKEQ Full Key Equal (Default)
... SEARCH FKGE Full Key Greater or Equal
... SEARCH GKEQ Generic Key Equal
... SEARCH GKGE Generic Key Greater or Equal
Access table using one of the above search methods.
You can only specify one of the additions 1 - 4
... WITH KEY key
Access table with the key key.
... VERSION vers
You should use this addition only if absolutely necessary. In some cases, it is possible (and it makes
sense) to avoid this READ addition by using a generation program.
Specifies a dynamically definable table name. The field vers
must be a 4-character C field which contains the table name. It is generally declared under
PARAMETERS and evaluated at runtime.
The entry read is
always made available in the permanently assigned table T...
The return code value of SY-SUBRC specifies whether a suitable entry was found:
If the entry is not found, the system automatically sets the function part of the table entry to SPACE.