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 ABAP Coding 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.
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved