Skip to content

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 →  Examples of string templates 

String Templates, Control Characters

The example demonstrates the formatting of a text using control characters.

Other versions: 7.31 | 7.40 | 7.54

Source Code

    cl_demo_output=>display(
      |First line.\r\ttab\ttab\ttab\n\ttab\ttab\ttab\rLast line.| ).

Description

A string template with literal text and control character is output using the class CL_DEMO_OUTPUT. The text output is formatted with line breaks and tabulators.