2006 Oct 14 1:38 PM
1) how to specify sorting order on column in ALV ?
2) how to specify subtotal on column in ALV ?
2006 Oct 14 2:12 PM
1) You can simply fill the SORT parameter whening call the function module or the method(depending on which ALV you are using.
2) You will need to set the DO_SUM flag in the field catalog for that field, you also will need to add a sort to the SORT table and mark the flag for SUBTOTAL.
REgards,
Rich Heilman
2006 Oct 15 9:44 AM
Hi Sudarshan
Do like this ..
DATA: LS_SORT TYPE SLIS_SORTINFO_ALV.
CLEAR LS_SORT.
LS_SORT-FIELDNAME = 'MATNR'.
LS_SORT-SPOS = 1.
LS_SORT-UP = 'X'.
APPEND LS_SORT TO E06_LT_SORT.
2006 Oct 15 9:44 AM
2006 Oct 15 11:35 AM
hi sudhrsan,
pls chk this link.
http://www.sapdevelopment.co.uk/reporting/alv/alvgrid_enhanced.htm
its a good link for ALv. very hlpful.
rgds
anver
if hlped mark points