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 - String Templates
String Templates - control_characters
Other versions: 7.31 | 7.40 | 7.54
Syntax
... \n ... \r ... \t ...
Effect
String templates interpret the character combinations \n
, \r
, and \t
as control characters.
Control Character | Meaning | Hexadecimal Value |
---|---|---|
\n |
Line break | 0A |
\r |
Return | 0D |
\t |
Tabulator | 09 |
A control character is replaced by its hexadecimal value (appropriate to the current code page) in the memory of the character string created by the string template.
Notes
- If a control character is to be displayed as literal text, it can be escaped by being prefixed with the escape character
\
.
- The control characters in string templates replace the use of some attributes of the class CL_ABAP_CHAR_UTILITIES.
Example
See String Templates, Control Characters
This translation does not reflect the current version of the documentation.