ABAP Keyword Documentation →  ABAP − Reference →  Processing Internal Data →  Internal Tables →  Processing Statements for Internal Tables → 

MODIFY itab  Syntax Diagram

Short Reference

Syntax

MODIFY { itab_line | itab_lines }.

Effect

This statement changes the content of one or more rows itab_line or itab_lines, specified using a table key or a table index.

The following limitations apply when modifying key fields of the primary and secondary table keys:

The administration of unique secondary keys is updated directly after a modification using MODIFY, and produces an unhandleable exception if duplicate entries were to result. The non-unique secondary keys are updated when the secondary table key is next used explicitly (lazy update).

System Fields

sy-subrc Meaning
0 At least one row was changed.
4 No rows were changed, since no suitable row was found during the search using a table key or in the logical expression, or the specified index was greater than the current number of rows for the search using a table index.

The system field sy-tabix is not set.

Notes

Exceptions

Catchable Exceptions

CX_SY_ITAB_DYN_LOOP

Non-Catchable Exceptions




Continue
MODIFY itab - itab_line
MODIFY itab - itab_lines
MODIFY itab - result