SAP REPLACE TABLE RANGE ABAP Statements



Get Example source ABAP code based on a different SAP table
  


• FROM REPLACE IN TABLE
• TO REPLACE IN TABLE
• OFFSET REPLACE IN TABLE

REPLACE IN TABLE, table_range
Short Reference

ABAP_SYNTAX
... $[FROM lin1 $[OFFSET off1$]$]
$[TO lin2 $[OFFSET off2$]$] ...

What does it do?
This addition restricts the search performed by the statement REPLACE IN TABLE on the table section specified in the numeric expression positions lin1, off1, lin2, and off2. The syntax and semantics are the same as for the statement FIND.

ABAP_EXAMPLE_VX5
The following replacement creates the result shown below. It should be noted that the OFFSET addition of TO defines the end of the replacement range.
ABEXA 00558
Result: <(>col1<)><(>col2<)>
abcdeabcde
abcdeabXXe
abXXeabXXe
abXXeabcde
abcdeabcde
ABAP_EXAMPLE_END

Return to menu