SAP STRING EXPRESSION POSITIONS



Get Example source ABAP code based on a different SAP table
  



Character-Like Expression Positions
Character-like expression positions are read positions where character-like data objects, constructor expressions, string expressions, table expressions, and built-in functions can be specified, as well as functional method calls and method chainings whose return value has a character-like data type. The following character-like expression positions exist:
Operand positions in string expressions
Character-like arguments in processing functions
Character-like arguments in description functions
Operand comp of the statement ASSIGN COMPONENT comp OF STRUCTURE
Regular expression regex in the statements FIND ... PCRE$|REGEX regex ... IN ...
REPLACE ... PCRE$|REGEX regex ... IN ...
Search pattern substring in the statements FIND ... SUBSTRING substring ... IN ...
REPLACE ... SUBSTRING substring ... IN ...
Operand dobj in the statement FIND ... IN dobj ...
Operand new in the statement REPLACE ... WITH new ...
REPLACE ... IN TABLE ... WITH new ...
Operand substring in the statement SHIFT ... UP TO substring
Operand mask in the statement SHIFT ... DELETING ... mask
Operands dobj and sep in the statement SPLIT dobj AT sep INTO ...
Operand text in the statement CONVERT text INTO SORTABLE CODE ...
Operands text2 and text2 in the statement OVERLAY ... WITH text2 USING mask
Operand mask in the statement TRANSLATE ... USING mask
Operand sub in the statement ASSERT ... SUBKEY sub ... LOG-POINT ... SUBKEY sub ...
Operands text and dobj1 to dobj4 in the statements MESSAGE text ...
MESSAGE ... WITH dobj1 ... dobj4

ABAP_EXAMPLE_VX5
Use of a string expression `(` sub `)+` to form a regular expression in the statement FIND to make it possible to find groups of a substring sub.
ABEXA 01294
ABAP_EXAMPLE_END