Process Character Strings
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).
Note
ABAP syntax requires at least one blank after the opening bracket and at least one blank before the closing bracket.One string template can contain more than one embedded expression.
Inside the curly brackets you can place any kind of ABAP expression: variables, literals, or arithmetic expressions.

Joining String

You can join fields together using the concatenation operator &&. You can join any combination of data objects and string expressions.
The variables above (Part1 and Part2) of the expression are joined with no space or other separator between them. If you need spaces or another separator or character, you must remember to insert it yourself as part of the expression, as shown in the figure above.
Using the string example, users may wish to split their full name so that you can output just the first name.
