Application Development and Automation 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: 
Read only

Dynamic color display in hierarchical ALV

Former Member
0 Kudos
120

Hi Guru,

Can Any Body Guide me

how to dispaly colour in Heirachial ALV In my Item table

based on Certain Condition

Dynamically.

Send me Sample report

if any one have Heirachical ALV with dynamic Color display.

Best Regards

Prabir

1 REPLY 1
Read only

Former Member
0 Kudos
75

Hi,

Declare workarea and table for coloring

DATA: wa_tabcolor TYPE slis_specialcol_alv,

lt_tabcolor TYPE slis_t_specialcol_alv.

Then make use of the variables available, check the fieldname and then give color attributes to the column.

wa_tabcolor-fieldname = 'MATNR'.

wa_tabcolor-color-col = 5.

wa_tabcolor-color-int = 0.

wa_tabcolor-color-inv = 0.

wa_tabcolor-nokeycol = 'X'.

APPEND wa_tabcolor TO lt_tabcolor.

Insert a column in the final table with colortab TYPE slis_t_specialcol_alv, and pass the lt_tabcolor internal table to this field, while populating the final table