SAP COMPUTE STRING ABAP Statements

Get Example source ABAP code based on a different SAP table
  


Standard SAP Help for STRING_EXPRESSION

string_exp - String Expressions

Short Reference


ABAP Syntax ... { |string_template|
}
| { operand1 <(> <)><(> <)> operand2 [ <(> <)><(> <)> operand3 ... ] } ... .

What does it do? 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 =.

Latest 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 orstring 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 <(> <)><(> <)> .

Return to menu