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: 

ALV : How to Print the totals of 1 column under another column ..

Former Member
0 Kudos

Hi all,

I have an internal table with 3 fields A, B, C .

I want to print the subtotal of the column 'C' under the column 'A'.

eg:

Material_Group Matnr Cost

-


-


-


MG1 M1 C1

MG1 M2 C2

-


  • (C1 + C2)

-


(This should come under the column "Material_Group" instead of the column "Cost" )

Hope that the requirement is clear. Please help me out in this ..

Thanking you in advance,

Shankara Narayanan T.V

6 REPLIES 6

0 Kudos

u want it as sub totals or one final composite total at the end of the list

sharad

Message was edited by:

Sharad Dubey

0 Kudos

I want it as Sub total ..

0 Kudos

SAALE.

0 Kudos

Hi Ravi,

wt is SAALE,can u help me?

thanx in adv

Former Member
0 Kudos

Hi Shankara,

Try calculating the subtotals before displaying and inserting it as a separate row.

Regards,

Ravi.

0 Kudos

Hi,

But that wont help me because when the user changes the sorting order and hence the sub-total conditions, it will fail to display the totals properly .

I am afraid that this is not the right way to do it ..

Thanks & Regards,

Shankar