2006 Nov 27 10:31 AM
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
2006 Nov 27 10:33 AM
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
2006 Nov 27 10:33 AM
2006 Nov 27 10:42 AM
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'.
2006 Nov 27 10:45 AM
Look at the coding here
http://www.sapdevelopment.co.uk/reporting/alv/alvgrid_color.htm
Regards,
Ravi
Note - Please mark all the helpful answers