Documentation View

We are hiring and constantly growing! Have a look through our vacancies to find the right role for you!

ABAPREPLACE_ITAB_OPTIONS - REPLACE ITAB OPTIONS

ABAPREPLACE_ITAB_OPTIONS - REPLACE ITAB OPTIONS

Vendor Master (General Section)   CPI1466 during Backup  
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.






Fill RESBD Structure from EBP Component Structure   General Data in Customer Master  
This documentation is copyright by SAP AG.

Length: 2659 Date: 20230207 Time: 083528     sap01-206 ( 42 ms )