sapdev logo background
sapdev logo sapdev logo
Comments

ABAP REPLACE PATTERN Statement syntax, information and example SAP source code



Return to Statement index



REPLACE - pattern

Short Reference

ABAP Syntax ... {[SUBSTRING] substring} | {REGEX regex} ... .

What does it do? Definition of a search pattern for the statements REPLACE and
REPLACE IN TABLE . The search can either search for a substring substring or for a regular expression regex . substring and a directly specified regex are character-like expression positions . The syntax and semantics are the same as in the definition of a search pattern for the statement
FIND .

Latest notes: A regular expression can be have correct syntax, but be too complex for the execution of the statement REPLACE , which raises a handleable exception of the class
CX_SY_REGEX_TOO_COMPLEX . Refer to
Exceptions in Regular Expressions .
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved




REPLACE_OPTIONS
REPLACE_TABLE_RANGE




comments powered by Disqus