SAP NetWeaver AS ABAP Release 740, ©Copyright 2014 SAP AG. All rights reserved.
ABAP Keyword Documentation → ABAP − Reference → Processing Internal Data → Character String and Byte String Processing → Expressions and Functions for String Processing → string_exp - String Expressions →string_exp - Character String Operator
One string operator is currently available for string expressions.
Syntax
Effect
The chaining operator && concatenates two operands in a string expression as a character string.
The operand positions operand are character-like expression positions, which means that character-like data objects, string expressions, and predefined functions, or functional methods and method chainings whose return code has a character-like data type, can be specified. In particular, this means that string templates can also be specified.
In operands with a fixed length, trailing blanks are ignored.
Notes
Example
Concatenation of four operands as the character string "Hello world!". The last operand is a string template that has only literal content.
DATA text TYPE string VALUE `Hello`.
text = text && ` ` && 'world' && |!|.