Skip to Content
author's profile photo
Former Member

COLORING LINE IN ALV REPORT

Hi Experts,

I want to make color to parrticular line when it satisfies the condition in ALV report.

I am not using SLIS.

so is there any alternavite to clolor row on specific condition like...NETWR > 10000,

that row shold be in RED color.

Please give me Example of code.

Poins will be awarded soon.

Thanks,

Rohan

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • author's profile photo
    Former Member
    Posted on Aug 20, 2007 at 03:40 PM

    Hi,

    You have to expand your internal table with a field named eg. LINE_COLOR wich has 4 char's.

    Then in building your internal table you can set that field with the appropriate value.

    eg. wa_itab-line_color = C600. "( red )

    Then when calling your first display of your ALV you do this

    alv_grid_layout-info_fname = 'LINE_COLOR'.

    Then

    call method alv_grid->set_table_for_first_display

    ......

    That should do the trick.

    Best regards,

    Dirk.

    Add comment
    10|10000 characters needed characters exceeded