Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Color Background and foreground on a report

Former Member
0 Kudos

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

4 REPLIES 4

Former Member
0 Kudos

Do a F1 on statement FORMAT

Sandeep_Kumar
Advisor
Advisor
0 Kudos

Yes , but you have to write your "write" statements twice.

if sy-batch = 'X'.

Color 1.

else.

color 2.

endif.

0 Kudos

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.

0 Kudos

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