Process Character Strings in a Program
Processing Strings

String templates are ABAP expressions of result type string. You can use string templates in any reading operand position, for example, the right-hand side of a value assignment.
A string template begins and ends with a pipe symbol (|). The simplest possible string template contains nothing but literal text. In this form a string template is not really different from a string literal.
What distinguishes a string template from a string literal is the ability to embed expressions. An embedded expression is an ABAP expression surrounded by a pair of curly brackets ( { } ). At runtime, ABAP evaluates the embedded expression and translates the result into a string. In the result, this string replaces the embedded expression (together with the surrounding curly brackets).
One string template can contain more than one embedded expression.
Inside the curly brackets you can place any kind of ABAP expression: arithmetic expressions, as in the example above, but single variables or eve literals can serve as embedded expressions.
