Skip to Content
avatar image
Former Member

Subtotal in CL_GUI_ALV_GRID only for multiple items

I am using CL_GUI_ALV_GRID class in a report. In this report, I have to generate a summary report where the report has to look summarized based on six fields which are :

1.Company Code (BUKRS)

2.Accounting Document Number (BELNR)

3.Fiscal Year (GJAHR)

4.Number of Line Item Within Accounting Document (BUZEI)

5.Amount in local currency(DMBTR)

6.Currency (PSWSL)

from table BSEG in the given order above. The subtotalling has to be done on the amount field (DMBTR), but only in the case where there is more than 1 record with the same BELNR.

So in this example in the photo, the subtotallling has to be done only in the case where Document Number is 5000000003.

Can someone please let me know, as how can this be done? Do let me know, if you require any other information from my side.

Thanks & Regards,


3alv.png (9.0 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers