What does it do? These formatting options override the predefined formats> of the statements WRITE ... TO>> and WRITE>>. Without these additions, the content of the source field is formatted only according to its data type. The result of the formatting is adapted to the available length. In the case of WRITE ... TO>, this is the length of the target variable and for WRITE>, this is the output length>. In some cases, the behavior of the additions used with WRITE>> can differ from the general behavior in the case of WRITE ... TO>. If a conversion routine> is executed during formatting, the other formatting options are ignored. The additions can be used together, with the following restrictions:
The additions ENVIRONMENT TIME FORMAT> and TIME ZONE> are mutually exclusive and cannot be used with the additions CURRENCY> , DECIMALS>, EXPONENT>, NO-GROUPING>, NO-SIGN>, NO-ZERO>, ROUND>, STYLE>, or UNIT>.
The addition STYLE> cannot be used together with the additions CURRENCY>, DD/MM/YY>, ..., YYMMDD>, ROUND>, ENVIRONMENT TIME FORMAT>, TIME ZONE>, and UNIT>.
The addition UNIT> cannot be used together with the additions DECIMALS>, ROUND>, STYLE>, ENVIRONMENT TIME FORMAT >, and TIME ZONE>.
Latest notes: Since the definition of a decimal floating point number in the ABAP Dictionary> always defines an output format, the same exclusions apply to the output of data objects declared with reference to this type in the ABAP Dictionary as when using the addition STYLE>. ABAP_HINT_END
ABAP Addition
What does it do? This addition determines whether the content of the source field that is formatted according to the other options is adjusted within the available length to the right, the center, or to the left. Trailing blanks are ignored for fields of type c> and are handled like all other characters for fields of type string>. The alignment is done by filling surplus positions in the result either from the right or from the left or alternately from the left and right with blanks. If the available length is not sufficient, source fields of the types c> and string> are truncated on the left in right-aligned alignment, unlike the usual truncation behavior>.
Example ABAP Coding
Left-aligned, centered, and right-aligned assignment of three text field literals to a text field of 50 characters length. ABEXA 00791 ABAP_EXAMPLE_END
ABAP Addition This addition cannot be used together with additions ENVIRONMENT TIME FORMAT> and TIME ZONE>.
What does it do? This addition determines the exponent when formatting floating point numbers>. The addition EXPONENT> affects source fields of the type f > or when the addition STYLE> is specified. Otherwise it is ignored.