Skip to content

ABAP Keyword Documentation →  ABAP - Reference →  User Dialogs →  Classic Lists →  Creating Lists →  WRITE 

WRITE - ext_format_options

Short Reference

Other versions: 7.31 | 7.40 | 7.54

Syntax


... [COLOR       {[=]{color [ON]}|OFF}|{= col}] 
    [INTENSIFIED [{ON|OFF}|{= flag}]]
    [INVERSE     [{ON|OFF}|{= flag}]]
    [HOTSPOT     [{ON|OFF}|{= flag}]]
    [INPUT       [{ON|OFF}|{= flag}]]
    [FRAMES      [{ON|OFF}|{= flag}]]
    [RESET] ...

Effect

The meaning of the additions is the same as for the statement FORMAT, with the difference that they only affect the output of the current WRITE statement. If the additions are not specified, the standard settings described in FORMAT or the settings set by the previous FORMAT statements are used.


Note

The use of such an addition in the WRITE statement overrides the standard settings or the formats set by the previous FORMAT statements for exactly one output and for exactly the property concerned. All the other properties and the subsequent WRITE statements are not affected.


Example

Changes the background color for output of the data object sum. All the other outputs and spaces between the outputs have the background color that is set in the FORMAT statement.

DATA sum TYPE i. 

FORMAT COLOR COL_NORMAL. 

DO 10 TIMES. 
  WRITE / sy-index. 
  sum = sum + sy-index. 
  WRITE sum COLOR COL_TOTAL. 
ENDDO. 
ULINE. 
WRITE sum UNDER sum COLOR COL_GROUP. 

Continue

Lists, Using Colors - Example