ABAP Keyword Documentation → ABAP - Reference → User Dialogs → Classic Lists → Create lists → WRITE
WRITE - int_format_options
Other versions: 7.31 | 7.40 | 7.54
Syntax
... [LEFT-JUSTIFIED|CENTERED|RIGHT-JUSTIFIED]
{ { [EXPONENT exp]
[NO-GROUPING]
[NO-SIGN]
[NO-ZERO]
[CURRENCY cur]
{ { [DECIMALS dec]
[ROUND scale] }
| [UNIT unit] } }
| { [ENVIRONMENT TIME FORMAT]
[TIME ZONE tz]
[STYLE stl] }
[USING { {NO EDIT MASK}|{EDIT MASK mask} }]
[ DD/MM/YY | MM/DD/YY
| DD/MM/YYYY | MM/DD/YYYY
| DDMMYY | MMDDYY
| YYMMDD ] ... .
Effect
These formatting options override the predefined formats
of the statement WRITE
for list outputs. The formatting result is adjusted to the
output length. If the system executes a
conversion routine during output, the other format_options
are ignored.
The formatting options are the same as for the statement WRITE ... TO
, with the following differences:
-
If you use the additions
NO-SIGN
,CURRENCY
, DECIMALS,ROUND
,UNIT
with the length specification*
or**
afterAT
, they are applied first and the output length is determined based on the result you get. -
The cutoff behavior is different when using the addition
TIME ZONE
for time stamps. -
If you use
USING EDIT MASK
and specify the output length explicitly usinglen
, the conversion routine is executed for the length specified; in all other cases, it is executed for the implicit output length. If*
or**
is specified for the output length, the corresponding rules are applied to the converted result. -
If you use
USING EDIT MASK
and specify the output length*
, the system precisely sets the length required in the list display. If in Unicode systems characters of the edit mask are replaced by characters occupying more than one column on the list, the system extends the output length accordingly and fills the output in the list buffer with blanks. -
If you use
USING EDIT MASK
and specify the output length**
, the system uses the double length of the edit maskmask
. -
If you use
USING EDIT MASK
in Unicode systems, you must note that a character "_" in the edit mask does not necessarily correspond to one column in the list display since the space required for the display depends on the replacement character. -
If you use
DD/MM/YY ...
and specify the output length using*
or**
, the system sets the length to the length of the specified edit mask (6, 8, or 10).