ABAP Keyword Documentation → ABAP - Quick Reference
MODIFY itab - Quick reference
Other versions: 7.31 | 7.40 | 7.54
Syntax
MODIFY { { { {TABLE itab}|{itab INDEX idx}
[USING KEY key_name|(name)] }
| { itab [USING KEY loop_key] }
FROM wa
[TRANSPORTING comp1 comp2 ...]
[{ASSIGNING <fs> [CASTING]}|{REFERENCE INTO dref}] }
| {itab FROM wa [USING KEY key_name|(name)]
TRANSPORTING comp1 comp2 ...
WHERE log_exp|(cond_syntax)} }.
Effect
Changes rows in internal tables. A restricted variant works withmesh paths.
Additions
-
TABLE itab
Specifies a row to be changed by matching the key values of thewa
work area. -
itab INDEX idx
Specifies a row to be changed by specifying a row numberidx
of a table index. -
itab [USING KEY loop_key]
Specifies the rows in a loop to be changed using the current rows. -
FROM wa
Specifies the new content in awa
work area. -
TRANSPORTING comp1 comp2 ...
Specifies the componentscomp1
,comp2
, ... to be changed. -
ASSIGNING <fs> [CASTING]
Assigns a changed single row to a field symbol<fs>
for casting. -
REFERENCE INTO dref
Assigns the reference to a changed single row to a reference variabledref
. -
WHERE log_exp|(cond_syntax)
Specifies the rows to be changed by specifying a static conditionlog_exp
or a dynamic condition incond_syntax
. -
USING KEY key_name|(name)
Specifies (statically or dynamically) a secondary table key to search for the rows to be changed.