SAP NetWeaver AS ABAP Release 740, ©Copyright 2014 SAP AG. All rights reserved.
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 - embedded_expressions →Embedded Expressions - Predefined Formats
The following predefined formatting rules apply to embedded expressions in string templates. These rules can be overridden by explicit formatting options format_options.
Text Length
The predefined text length is the minimum length required to represent the whole result of the embedded expression.
Alignment
The predefined alignment for all data types is left-aligned.
Character-Like Data Types
For all character-type data types with fixed lengths (c, d, n, and t), the full content is used and any trailing blanks ignored. The content of text strings with the type string is used in full.
Note
Unlike in WRITE TO, no formatting is applied for the data types d and t and no separators are inserted.
Byte-Like Data Types
Values of the byte-like data types x and xstring are formatted in hexadecimal format, where a byte is represented by two characters.
Numeric Data Types
The following rules apply to the representation of numeric values:
The following applies to the individual numeric data types: