ABAP Keyword Documentation → ABAP - Reference → Processing Internal Data → Internal Tables → Processing Statements for Internal Tables → REPLACE IN TABLE itab
REPLACE IN TABLE - options
Other versions: 7.31 | 7.40 | 7.54
Syntax
... [{RESPECTING|IGNORING} CASE]
[REPLACEMENT COUNT rcnt]
{ {[REPLACEMENT LINE rlin]
[REPLACEMENT OFFSET roff]
[REPLACEMENT LENGTH rlen]}
| [RESULTS result_tab|result_wa] } ...
Effect
The addition REPLACEMENT LINE returns the last row number in which the search
pattern was found (using the statement REPLACE
IN TABLE) in the data object rlin. A variable of the type
i is expected for rlin. If no replacement takes place, rlin retains its previous value.
The remaining additions for replacement in the individual table rows have the same
meaning as in the pattern-based replacement using
REPLACE in elementary character- and byte strings.
With the use of the addition RESULTS, the row number of every match position
is stored additionally in the component LINE of corresponding table row of result_tab or the row number of the last match position in result_wa.