SAP REPLACE - Reference ABAP Statements
Get Example source ABAP code based on a different SAP table
Standard SAP Help for REPLACE
REPLACE
ABAP Code Snippet
ABAP Syntax
{[SUBSTRING] substring} | {REGEX regex} IN
{ {[SECTION [OFFSET off] [LENGTH len] OF] dobj}
| {TABLE itab [FROM lin1 [OFFSET off1]]
[TO lin2 [OFFSET off2]]} }
WITH new
[IN {CHARACTER|BYTE} MODE]
[{RESPECTING|IGNORING} CASE]
[REPLACEMENT COUNT rcnt]
{ {[REPLACEMENT OFFSET roff]
[REPLACEMENT LENGTH rlen]
[REPLACEMENT LINE rlen]}
| [RESULTS result_tab|result_wa] } }
| { SECTION [OFFSET off] [LENGTH len] OF dobj
WITH new
[IN {CHARACTER|BYTE} MODE] } }. >
ABAP Code Snippet
What does it do? Replaces character- or byte strings in a character- or byte-type data object
ABAP Addition
[SECTION [OFFSET off] [LENGTH len] OF]
Defines whether the first or all found locations are replaced with the content of data object
Defines whether a substring
Specifies a section of
Replacement in an internal
Determines character- or byte string processing.
Determines whether uppercase/lowercase is respected during the search.
Provides the number count of replacements in
Provides the table row of the last replacement in
Provides the offset of the last replacement in
Provides the length of the last replacement in
Provides the attributes of all replaced parts or the last replaced part in an internal table
Return to menu