sapdev logo background
sapdev logo sapdev logo
Comments

ABAP REPLACE ITAB OPTIONS Statement syntax, information and example SAP source code



Return to Statement index



REPLACE IN TABLE - options

Short Reference

ABAP Syntax ... [{RESPECTING|IGNORING} CASE]
[REPLACEMENT COUNT rcnt]
{ {[REPLACEMENT LINE rlin]
[REPLACEMENT OFFSET roff]
[REPLACEMENT LENGTH rlen]}
| [RESULTS result_tab|result_wa] } ...

What does it do? The addition REPLACEMENT LINE returns the last row number in which the search pattern was found using the statement REPLACE IN TABLE in rlin . The following can be specified for rlin :
An existing variable that expects the data type i .
An inline declaration DATA(var) . The declared variable has the data type i .
If no replacement is made, rlin retains its existing value or stays initial.
The remaining additions used for making replacements in individual table rows have the same meaning as pattern-based replacements made using
REPLACE in elementary character strings or byte strings.
When the RESULTS addition is used, the row numbers of each occurrence in the component LINE of the table row in question in result_tab or the row number of the last occurrence are saved to result_wa .
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved




REPLACE_ITAB
REPLACE_OBSOLETE




comments powered by Disqus