2009 Nov 17 1:06 PM
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
2009 Nov 17 1:33 PM
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