02-09-2009 2:04 PM
Hai Friends,
We can get subtotal from SET_SORTS and SET_AGGREGATIONS.
I want to get the average like subtotals. Is there any function for this.
Material Date Quantity
A 01-01-2009 20
03-01-2009 10
04-01-2009 30
-----------------------------------------------------
20
-----------------------------------------------------
B 05-01-2009 100
06-01-2009 50
----------------------------------------------------
75
-----------------------------------------------------
02-10-2009 5:53 AM
02-10-2009 5:53 AM
02-11-2009 7:10 AM
Hi,
If you want your output in ALV format then you have to make use of DO_SUM= 'X' and SUB_TOTAL = 'X',
and if you want your outout in classical report then you have to make use of statements AT END OF and then SUM of your Quantity field.
Hope it helps
Regrds
Mansi
02-12-2009 8:24 AM
Hi,
1. Just use :
ls_fieldcat-do_sum = 'C'.
(use 'C', and not 'X')
Thanks
Arun