ABAP Keyword Documentation → ABAP - Reference → Processing Internal Data → Character String and Byte String Processing → Expressions and Functions for String Processing
string_exp - String Expressions
Other versions: 7.31 | 7.40 | 7.54
Syntax
... { |string_template| }
| { operand1 && operand2 [
&& operand3 ... ] } ...
Effect
A string expression formulates an operation (calculation) with character-like operands. The result of a string expression is a character string. A string expression consists of
-
precisely one string template
|string_template|
or -
two or more operands
operand1
,operand2
..., concatenated as a character string using the string operator&&
, where one of the operands can itself be a string template.
String expressions can occur in the reader positions of
certain statements, in particular on the right side of an
assignment with the assignment operator =
.
Notes
- The program DEMO_EXPRESSIONS shows examples of how to use string expressions.
- String expressions and arithmetic expressions can not be mixed. Arithmetic expressions can also be listed as embedded expressions of string templates. In addition, the formatting options of embedded expressions or string functions in operand positions can contain arithmetic expressions as arguments.
-
In obsolete
non-Unicode programs, no
string templates are possible. Here, string expressions are limited to joins with
&&
.