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

AlV Layout display using oops

Former Member
0 Likes
512

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

4 REPLIES 4
Read only

Former Member
0 Likes
465

hi,

Pass blank value to field zebra inthe layout structure..not the one color is displayed for all lines in ALV.

Read only

Former Member
0 Likes
465

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...!

Read only

0 Likes
465

Hi,

Refer to this link...

Read only

Former Member
0 Likes
465

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