2007 Apr 12 1:19 PM
Hello,
I have an ALV-Grid with the fuction module REUSE_ALV_GRID_DISPLAY_LVC and I need to get sub-totals and totals in fuction of two fields.
Thanks in advance.
2007 Apr 12 1:21 PM
Hi,
Sort the Internal table by the fields and build the I_SORT table with the right fields
and pass it to GRID_DISPLAY fun module
and Assign DO_SUM = 'X' in the field catalog for the fields to which you need SUM.
reward if useful
regards,
ANJI
Message was edited by:
Anji Reddy Vangala
2007 Apr 12 1:25 PM
2007 Apr 12 1:49 PM
In the Field Caatalog for which field u want totals
make them
IT_FIELDCAT-DO_SUM = 'X'.
Regards,
Ramesh.
2007 Apr 12 1:52 PM
Hi,
to get the sum u have to use do_sum = 'X'.
while preparing the fieldact.and make sure that that field is numeric.
rgds,
bharat.
2007 Apr 12 1:53 PM
chk this for subtotal
http://www.geocities.com/mpioud/Z_DEMO_ALV_SORT.html
and for total
wa_fieldcatalog-do_sum = 'X'.
2007 Apr 12 2:38 PM
Na Lorena, dejalo, no se puede hacer
That can't be done!!!!
Dame los puntos coño!!!!
jajaajaj