2006 Sep 01 12:36 PM
Hi all,
In the output list I want to display some rows in the PURPLE color.
If it is possible please help me
Thanks,
Santhosh
2006 Sep 01 12:37 PM
PURPLE color i don't think this color is possible.:-)
write: 'kishan' color n.
n =1,2,3...
for diffrent color.
2006 Sep 01 12:44 PM
hi Santosh,
write:/ a color n.
n can be col_background.
1 or col_heading ( Blue)
2 or col_normal (White)
3 or col_total (Yellow)
4 or col_key (Olive green)
5 or col_positive (Green)
6 or col_negative (red)
7 or col_group (violet)
I guess it is not possible to print it in Purple color..
Regards,
Santosh
2006 Sep 01 12:45 PM
hi,
check the program <b>DEMO_LIST_FORMAT_COLOR_1</b>
for the colors that are allowed in lists.
Regards,
Sailaja.
2006 Sep 01 12:47 PM
HI
GOOD
The options COLOR, INTENSIFIED, and INVERSE of the FORMATstatement influence the colors of the output list.
To set colors in the program, use:
Syntax
FORMAT COLOR n INTENSIFIED ON INVERSE ON.
To set colors at runtime, use:
Syntax
FORMAT COLOR = c INTENSIFIED = int INVERSE = inv.
These formatting options do not apply to horizontal lines created by ULINE. They have the following functions:
· COLOR sets the color of the line background. For n you can set either a color number or a color specification. Instead of color number 0, however, you must use OFF. If you set the color numbers at runtime, all values of c that are less than zero or greater than seven, lead to undefined results. The default setting is COLOR OFF.
· INTENSIFIED determines the intensity of the background color.
The default setting is INTENSIFIED ON. For COLOR OFF, the system changes the foreground color instead of the background color.
· INVERSEdetermines whether the background color or the foreground color is set with the COLORaddition.
The following statements have the same effect:
FORMAT INTENSIFIED ON. and SUMMARY.
FORMAT INTENSIFIED OFF. and DETAIL.
SAP recommends always using the FORMAT statement to improve legibility (the statements SUMMARY and DETAIL are thus obsolete).
The following examples show the colors possible in lists and how to use them.
For another demonstration of colors in lists, call the executable program SHOWCOLO in any system.
Demonstrating the Colors Available in Lists
The following example shows the different combinations of the color formatting options:
REPORT demo_list_format_color_1.
DATA i TYPE i VALUE 0.
DATA col(15) TYPE c.
WHILE i < 8.
CASE i.
WHEN 0. col = 'COL_BACKGROUND '.
WHEN 1. col = 'COL_HEADING '.
WHEN 2. col = 'COL_NORMAL '.
WHEN 3. col = 'COL_TOTAL '.
WHEN 4. col = 'COL_KEY '.
WHEN 5. col = 'COL_POSITIVE '.
WHEN 6. col = 'COL_NEGATIVE '.
WHEN 7. col = 'COL_GROUP '.
ENDCASE.
FORMAT INTENSIFIED COLOR = i.
WRITE: /(4) i, AT 7 sy-vline,
col, sy-vline,
col INTENSIFIED OFF, sy-vline,
col INVERSE.
i = i + 1.
http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dba1ae35c111d1829f0000e829fbfe/content.htm
THANKS
MRUTYUN
2006 Sep 01 1:26 PM
Run the report SHOWCOLO it will display all the possible colors that can be achieved.