Ansicht
Dokumentation

ABAPREPLACE_ITAB_OPTIONS - REPLACE ITAB OPTIONS

ABAPREPLACE_ITAB_OPTIONS - REPLACE ITAB OPTIONS

CPI1466 during Backup   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.
SAP E-Book

REPLACE IN TABLE, options

Short Reference



... $[VERBATIM$]
    $[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 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.

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.

Example

This example performs the same replacement as the replacement range example. Here, the positions of the replaced occurrences are returned.






Addresses (Business Address Services)   Addresses (Business Address Services)  
This documentation is copyright by SAP AG.

Length: 2659 Date: 20240328 Time: 123108     sap01-206 ( 39 ms )