05-23-2005 11:39 AM
Hi abap gurus,
I am using ALV List in my program, I want to display the sub totals and want to draw a line at a new material.. can anyone help me..
Thanks & Regards
Guhapriyan.
05-23-2005 12:02 PM
Hi,
U can do as
LOOP AT output into anotherworkarea.
AT END OF new material.
SUM.
APPEND .....
sy-uline.
ENDAT.
ENDLOOP.
Try this one.
Thanks & Regards,
Judith.
05-23-2005 11:55 AM
You can achieve it using sort criteria.
If you are using methods, then you can create a strucutre of type LVC_T_SORT, assign field name on which you want subtotal to LVC_T_SORT-FIELDNAME and set LVC_T_SORT-SUBTOT = 'X' and pass it to method SET_TABLE_FOR_FIRST_DISPLAY.
otherwise if you are using function module REUSE_ALV_LIST_DISPLAY then in that function module there is an import parameter IT_SORT of type SLIS_T_SORTINFO_ALV.
asign field name on which you want subtotal to SLIS_T_SORTINFO_ALV-FIELDNAME and set SLIS_T_SORTINFO_ALV-SUBTOT = 'X' and pass it to function REUSE_ALV_LIST_DISPLAY.
Courtesy : SDN forums
Manohar
05-23-2005 12:02 PM
Hi,
U can do as
LOOP AT output into anotherworkarea.
AT END OF new material.
SUM.
APPEND .....
sy-uline.
ENDAT.
ENDLOOP.
Try this one.
Thanks & Regards,
Judith.
05-23-2005 12:20 PM
05-23-2005 12:33 PM
Judith and Jayanthi,
The solutions you are proposing wont work in ALV List. Mano Sri has already provided the soltuion.
Regards
Raja
05-23-2005 12:48 PM
Hi,
U have rewarded wrongly i guess plz check it once.
Thanks & Regards,
Judith.
05-23-2005 1:02 PM
05-24-2005 8:29 AM
yeah am very sorry, i tried to reward.. after which any click i get an error message that the message is locked for rewarding.
i am not able to change that...
am sorry....