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

Colourful Lists

Former Member
0 Likes
556

Hello All,

I am trying to display an ALV list of the SLIS type ( Type pools slis ).

The requirement goes like the first and the last line must be distinguished from the others. This may be done using colours / a diff font / Font size.

But in FM reuse_alv_list_display, is this possible??

Thanks,

Ravi Bhatnagar

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
532

Yes you can have colors in ALV,

Refer these threads,

Hello All,

I am trying to display an ALV list of the SLIS type ( Type pools slis ).

The requirement goes like the first and the last line must be distinguished from the others. This may be done using colours / a diff font / Font size.

But in FM reuse_alv_list_display, is this possible??

Thanks,

Ravi Bhatnagar

3 REPLIES 3
Read only

Former Member
0 Likes
533

Yes you can have colors in ALV,

Refer these threads,

Read only

Former Member
0 Likes
532
Hi Ravi,

  Follow these steps

1. Add one more field to ur final internal table named COLOR(4).
2.before u display ALV
   data : v_lines type i.
  describe table itab lines v_lines.

  loop at itab.
    if sy-tabix = 1 or sy-tabix = v_last.
       itab-color = 'C510'.
       modify itab index sy-tabix.
    endif.
endloop.

3.in ur layout

   wa_layout-box_fieldname = 'COLOR'.
Read only

Former Member
0 Likes
532

Look at the coding here

http://www.sapdevelopment.co.uk/reporting/alv/alvgrid_color.htm

Regards,

Ravi

Note - Please mark all the helpful answers