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 be used in the statement COMPUTE
or in
read positions in certain statements.
Notes
- The program DEMO_EXPRESSIONS shows you 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 non-Unicode programs,
string templates are not possible. Here, string expressions are limited to joins with
&&
.