‎2008 Dec 15 5:23 AM
Hi,
Can you please help me out how to resolve the below query
In an Alv display(using objetc oriented) for an single sold to party ,if we get 5 no's of schedule agreements and if we declared as Zebra Layout.then we are getting the different line colour display for that 5 schedule agreements.but we need that 5 no's to be in same colour.
Thanks & Regards,
Praneeth.K
‎2008 Dec 15 5:31 AM
hi,
Pass blank value to field zebra inthe layout structure..not the one color is displayed for all lines in ALV.
‎2008 Dec 15 5:57 AM
Hi,
My exact requirement is in an alv display if we have multiple vbeln documents and for each VBELN consists of 3 or more records.so i need to display alternate color pattern for each set of VBELN records .
Thanks in Advance...!
‎2008 Dec 15 6:13 AM
‎2008 Dec 15 6:26 AM
Hi,
If you want the different colors for the for different vbeln values,
Use row_coloring based upon the criteria.
sample example for coloring it may useful:
types: row_color(4) type c.
*cellstyles TYPE lvc_t_styl. " table type for Style Table for Cells
..............................
..............................
perform populate_data.
perform populate_layout.
FORM populate_data .
data: color(1) type c.
select vbeln
erdat
ernam from vbak into CORRESPONDING FIELDS OF TABLE t_vbak up to 10 rows.
coloring all the rows
*----
loop at t_vbak into w_vbak.
color = color + 1.
if color = 8.
color = 1.
endif.
CONCATENATE 'C' color '11' into w_vbak-row_color.
modify t_vbak from w_vbak.
endloop.
FORM populate_layout." CHANGING P_GW_LAYOUT type lvc_s_layo.
gw_layout-info_fname = 'ROW_COLOR'. "row coloring
gw_layout-stylefname = 'CELLSTYLES'. "styles
ENDFORM. " populate_layout
Thanks and regards