Skip to Content

Color in the output list

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 01, 2006 at 11:37 AM

    PURPLE color i don't think this color is possible.:-)

    write: 'kishan' color n.

    n =1,2,3...

    for diffrent color.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 01, 2006 at 11:44 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 01, 2006 at 11:45 AM

    hi,

    check the program <b>DEMO_LIST_FORMAT_COLOR_1</b>

    for the colors that are allowed in lists.

    Regards,

    Sailaja.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 01, 2006 at 11:47 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 01, 2006 at 12:26 PM

    Run the report SHOWCOLO it will display all the possible colors that can be achieved.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.