Skip to Content
0
Former Member
May 12, 2008 at 10:34 AM

ALV grid sub-totals

35 Views

Hi All,

I have written a code to show sub totals in ALV.

But, is there any way by which I can show *Only the sub total

lines* and not the individual line items that form the sub total ?

e.g.:-

KeyField1 KeyField2 Field1 Field2

A 1 10 12

A 1 15 8

SUBTOTAL 25 20

B 2 15 12

SUBTOTAL 15 12

C 1 10 8

C 2 8 12

C 3 7 2

SUBTOTAL 25 22

Now I want only the SUBTOTAL rows to be visible in ALV not the individual rows as follows :-

KeyField1 KeyField2 Field1 Field2

SUBTOTAL 25 20

SUBTOTAL 15 12

SUBTOTAL 25 22

Regards,

Ashish