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: 

Grouping in ALV Grid

Sujai
Participant
0 Kudos

Hi,

I am using ALV in OOP to display the output. I have a couple of fields in which the values are repeated. i have to group the data based on these fields and display the subtotal for each group.

the scenario is something like this.

I have to display the invoice numbers and totals for all vendors in the grid including the vendor number and name. I want the vendor name and number to be displayed only once and the various invoice numbers and totals for each vendor and the subtotal for each vendor and finally the grand total.

how should i do it? Pls help.

thanx

Sujai

2 REPLIES 2

Former Member
0 Kudos

Make sure you specify the SORT criteria the IT_SORT table.

In the layout set NO_MERGING to space.

Repitition will not occur.

Regards,

Ravi

Note - Please mark all the helpful answers

sarath_k
Participant
0 Kudos

Hi ,

sort internal table on vendor number and set

'NO_SUM' equal to SPACE in field catalog .

Regards,

Sarath