Get Example source ABAP code based on a different SAP table
ARTICLE • ABAP_OPERATOR
string_exp - Character String Operator One string operator is currently available for string expressions.
Syntax... operand1 <(> <)><(> <)> operand2 ...
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
We recommend string functions with character-like return codes when predefined functions are specified as operands.
Do not confuse the chaining operator <(> <)><(> <)> with the literal operator <(> <)>, which joins two character literals as a literal. The literal operator is generally used if a literal string template is to be defined across multiple program lines. The operator is executed only once, when the program is compiled and trailing blanks of character literals are always respected. A character string expression with a chaining operator, on the other hand, is recalculated each time (like all expressions) and can be used to concatenate any number of character-like operands.
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' <(> <)><(> <)> |!|.