Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to display subtotal text with different discription with eachgroupinALV

Former Member
0 Kudos

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

5 REPLIES 5

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Nagendra,

Check the sample code for subtotal description in

https://wiki.sdn.sap.com/wiki/x/PYPVAg

Regards,

Anirban

Former Member
0 Kudos

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.

0 Kudos

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

Former Member
0 Kudos

Hi,

I want to display with different descirption for each group depening on the group in output table.