SAP MODIFY ITAB MULTIPLE ABAP Statements



Get Example source ABAP code based on a different SAP table
  


• TRANSPORTING WHERE MODIFY itab

MODIFY itab, itab_lines
Short Reference

ABAP_SYNTAX
ABAP_KEY ... itab FROM wa $[USING KEY keyname$]
TRANSPORTING comp1 comp2 ... WHERE log_exp $|(cond_syntax).

ABAP Addition
1 ... WHERE log_exp
2 ... USING KEY keyname
3 ... WHERE (cond_syntax)

What does it do?
In this variant, the statement MODIFY assigns the content of the components comp1 comp2 ... of the work area wa specified after TRANSPORTING to all lines of the table itab that meet the condition after WHERE. wa is a functional operand position. The work area wa must be compatible with the line type of the internal table.
The addition TRANSPORTING has the same effect as changing individual lines. The addition WHERE can only be specified together with the addition TRANSPORTING.



Latest notes:

NON_V5_HINTS
Outside of classes, an obsolete short form is possible where FROM wa can be omitted if the internal table has an identically named header line itab. The statement then uses the header line as the work area implicitly. Furthermore, USING KEY cannot be specified without FROM wa.
ABAP_HINT_END

ABAP Addition