08-26-2010 10:07 AM
Hello,
I would like to write text on a report with a color on the background text and a different color on the foreground text.
I checked the WRITE instructions, but it doesn't seem possible.
Is it a way to do this ?
Thanks.
J.
Moderator message: very basic, please search for available information before asking, e.g. ABAP online documentation
locked by: Thomas Zloch on Aug 26, 2010 11:21 AM
08-26-2010 10:14 AM
08-26-2010 10:14 AM
Yes , but you have to write your "write" statements twice.
if sy-batch = 'X'.
Color 1.
else.
color 2.
endif.
08-26-2010 10:19 AM
Just check this :
FORMAT [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].
just write FORMAT in the report and press F1 help u will surely get the required Output.
08-26-2010 10:20 AM
at first only u have to write it this way:
FORMAT COLOR COL_HEADING INTENSIFIED ON.
Syntax of color value in col color
0 GUI-specific
{ 1 | COL_HEADING } 1 Gray-blue
{ 2 | COL_NORMAL } 2 Light gray
{ 3 | COL_TOTAL } 3 Yellow
{ 4 | COL_KEY } 4 Blue-green
{ 5 | COL_POSITIVE } 5 Green
{ 6 | COL_NEGATIVE } 6 Red
{ 7 | COL_GROUP } 7 Violet
Edited by: saurabh s kerkar on Aug 26, 2010 11:21 AM