10-07-2008 10:30 AM
Hi,
I nead to display for each group with different description in ALV report.
Group Material number
1 1
1 2
1 3.....and so on up to 10
For above group i need to disply with subtotal description as "Total of Material group1 "
Group Material numbers
2 11
2 12
2 13....upto 20.
For second group i need to disply with subtotal description as "Total of Materials group 11 to 20 "
So like that i need to display with different text for subtotal summary in ALV report and finally i do not want to display summary of the toal.
Please help me how to do this one.
regards
Nagendra
10-07-2008 10:40 AM
Hi,
For removing total summary, you can set the flag no_totalline in layout.
For subtotal text there is one flag subtotals_text
data ls_layout TYPE slis_layout_alv.
ls_layout-no_totalline = 'X'.
ls_layout-subtotals_text = 'Subtotal'
Cheers,
Kothand
10-07-2008 10:41 AM
Hi Nagendra,
Check the sample code for subtotal description in
https://wiki.sdn.sap.com/wiki/x/PYPVAg
Regards,
Anirban
10-07-2008 10:54 AM
Hi,
But in my report, i need to display with different descriptions for each group.
EX:-
groupId Material numbers
1 1
1 2
1 3
1 4
total of first group (Subtotal text)
Group id Material numbers
2 1
2 2
2 3
2 4
total of the Second group (subtotal text)
3rd group i dont want to do any subtotal.
Please help me how to do this one.
10-07-2008 11:00 AM
Hi,
For that check the program in the link given by Anirban which will exactly suit your requirement
Hi Nagendra,
Check the sample code for subtotal description in
https://wiki.sdn.sap.com/wiki/x/PYPVAg
Cheers,
Kothand
10-07-2008 11:06 AM
Hi,
I want to display with different descirption for each group depening on the group in output table.