SAP STRING TEMPLATES LITERALS

Get Example source ABAP code based on a different SAP table
  


ARTICLE

String Templates - literal_text

Syntax
c...c

Effect
Within a string template |...|, a literal text c...c represents its exact character string. Literal text consists of all characters in c that
are not included in curly brackets { }
are not control characters
not the special characters |, {, }, or .
Blanks in string templates in particular are always significant. To display a special character |, { , }, or as a literal character, you can prefix it with the escape symbol .

Example
The following string template displays the text 'Characters |, {, and } have to be escaped by in literal text.'. DATA txt TYPE string.

txt = |Characters |, {, and } have to be escaped by in literal text.|.