Ansicht
Dokumentation
ABENSTRING_TEMPLATES_SEPARATORS - STRING TEMPLATES SEPARATORS
CPI1466 during Backup ROGBILLS - Synchronize billing plansThis documentation is copyright by SAP AG.
- control_characters
... \n ... \r ... \t ...
Effect
String templates interpret the character combinations \n, \r, and \t as control characters.
Control Character | Meaning | Hexadecimal value (UTF-8) |
\n | Line feed | 0A |
\r | Return | 0D |
\t | Tabulator | 09 |
In place of a control character, its hexadecimal value according to the current code page is inserted into the character string created by the string template.
Notes
- If a control character is to be included as literal text, its special meaning can be removed by prefixing it with the escape character \.
- The control characters in string templates replace the use of some attributes of the class CL_ABAP_CHAR_UTILITIES.
- The control characters have no effect on classical dynpros and lists. They appear in a list output as the # character. However, you can see the effect in the textedit control, for example.
The following example generates in code the representation of the results of a string template with the three possible control characters in the code page UTF-8, namely 0A0D09. The hexadecimal values 0A, 0D, and 09 stand for line feed, return, and tabulator.
Example
The following example produces a three line output in the textedit control.
String Templates, Control Characters
BAL_S_LOG - Application Log: Log header data General Material Data
This documentation is copyright by SAP AG.
Length: 2794 Date: 20240424 Time: 124503 sap01-206 ( 39 ms )