Get Example source ABAP code based on a different SAP table
• VERBATIM REPLACE IN TABLE • RESPECTING CASE REPLACE IN TABLE • IGNORING CASE REPLACE IN TABLE • REPLACEMENT COUNT REPLACE IN TABLE • REPLACEMENT OFFSET REPLACE IN TABLE • REPLACEMENT LENGTH REPLACE IN TABLE • REPLACEMENT LINE REPLACE IN TABLE
What does it do? The addition REPLACEMENT LINE> returns the last line 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)>> or FINAL(var)>>. The declared variable has the data type i>. If no replacement is made, rlin> retains its existing value or remains initial. The remaining additions used for making replacements in individual table lines 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 line numbers of each occurrence in the component LINE> of the table line in result_tab> or the line number of the last occurrence are stored in result_wa>.
ABAP_EXAMPLE_VX5 This example performs the same replacement as the replacement range> example. Here, the positions of the replaced occurrences are returned. ABEXA 00551 ABAP_EXAMPLE_END