What does it do? The literal operator > can be used to combine two character literals> of the same type into a single character literal. The two categories of literals cannot be mixed. As a result, the definition of one literal can span multiple program lines. The content of the resulting literal must match its type and its length must not exceed the associated maximum length. The literal operator can normally be specified to combine literals in all read positions>. Exceptions to this are literals specified dynamically in parentheses>, literals in parenthesized lists separated by commas (here the only relevant operand position is WHERE IN>>) BEGIN_SECTION VERSION 5 OUT , and literals in embedded Native SQL> END_SECTION VERSION 5 OUT .
Latest notes:
The literal operator cannot be used for numeric literals>.
Apart from character literals, the literal operator can also be used to combine string templates>.
Any trailing blanks in text field literals are respected by the literal operator.
When used for literals, the literal operator > must not be confused with the concatenation operator >> that can be used in string expressions> to concatenate character-like operators. While literals are combined using the literal operator once when a program is compiled, the concatenation operator executes a real operation at runtime and concatenates any number of character-like operands. The trailing blanks of operands with fixed lengths, particularly text field literals, are ignored.
Character literals combined using the literal operator > are subject to the upper limit of 255 characters. Longer character strings can only be concatenated at runtime, for example using the concatenation operator >>. NON_V5_HINTS ABAP_HINT_END
ABAP_EXAMPLE_VX5 Construction of an HTML string from literals. ABEXA 01075 ABAP_EXAMPLE_END