SAP MODIFY ITAB - Reference ABAP Statements

Get Example source ABAP code based on a different SAP table
  


Standard SAP Help for MODIFY_ITAB

MODIFY itab

ABAP Reference
ABAP Code Snippet


ABAP Syntax MODIFY { { { {TABLE itab}|{itab • idx}

[USING KEY key_name|(name)] }
| { itab [USING KEY loop_key] }
FROM wa
[TRANSPORTING comp1 comp2 ...]
[{ASSIGNING <(><)> [CASTING]}|{REFERENCE INTO dref}] }
| {itab FROM wa [USING KEY key_name|(name)]
TRANSPORTING comp1 comp2 ...
WHERE log_exp |(cond_syntax)} }.
ABAP Code Snippet

What does it do? Changes rows in internal tables.

ABAP Addition TABLE itab
Specifies a row to be changed by matching it with the key values of the wa work area.
itab • idx
Specifies a row to be changed by specifying a row number (idx) of a table index.
itab [USING KEY loop_key]
Defines the row in a loop to be changed using the current row.
FROM wa
Specifies the new content in a wa work area.
TRANSPORTING comp1 comp2 ...
Specifies the components to be changed (comp1, comp2, and so on).
ASSIGNING <(><<)>fs> [CASTING]
Assigns a single changed row to a field symbol <(><<)>fs>; casting can be executed.
REFERENCE INTO dref
Assigns the reference for a single changed row to a reference variable dref.
WHERE log_exp|(cond_syntax)
Specifies the rows to be changed by specifying a static condition ( log_exp) or a dynamic condition in cond_syntax.
USING KEY key_name|(name)
Statically or dynamically specifies a (secondary) table key that is to be used to search for the rows to be changed.

...More SAP MODIFY Examples

Return to menu