Ansicht
Dokumentation
ABAPMODIFY_ITAB_TABLE_KEY - MODIFY ITAB TABLE KEY
Addresses (Business Address Services) PERFORM Short ReferenceThis documentation is copyright by SAP AG.
MODIFY itab, table_key
... TABLE itab $[USING KEY keyname$] ...
Effect
For wa, a work area compatible to the row type of the internal table must be specified. This concerns functional operand positions. The first row of the internal table found, whose values in the columns of the table key used match those of the corresponding components of wa, is processed. If the key fields in wa are empty, no entries are processed.
If the USING KEY addition is not specified, the primary table key is used. If the USING KEY addition is specified, the table key specified in keyname is used.
The same applies when searching for a line to be modified as to key access using the statement READ.
If the primary table key is used to access a standard table and the key is empty, the first line of the internal table is deleted. If this is known statically, the syntax check produces a warning.
Note
When using the primary table key, it should be noted that this key can be the standard key, which can also have unexpected consequences:
- For structured line types, the standard key covers all character-like and byte-like components.
- The standard key of a standard table can be empty.
Example
Conversion of the local currency of an airline using primary key access to the internal table scarr_tab.
The structure of the work area is constructed using the value operator VALUE from the result of a read with a
table expression,
in which the component currcode is assigned the new value. The addition TRANSPORTING modifies this component only in the associated table line.
ABAP Short Reference TXBHW - Original Tax Base Amount in Local Currency
This documentation is copyright by SAP AG.
Length: 3078 Date: 20240328 Time: 194311 sap01-206 ( 49 ms )