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: 

Summation of automatically in alv fields

Former Member
0 Kudos
191

Hello guys,

I want to add summation of fields to last row in my alv table.

Like this:

Thank you for everyone.

Regards,

1 ACCEPTED SOLUTION

Former Member
0 Kudos
161

Hi ,

You can populate the do_sum in the fieldcatalog as 'X' for the key figures for which you require the sum.

Regards,

Sonal

7 REPLIES 7

Former Member
0 Kudos
161

Hi

Do you mean you need to export the total from ALV into your internal table used for ALV output?

Max

0 Kudos
161

Thank you Bianchi. Ok   . I think it should be easiest way for this.

0 Kudos
161

Yes I want to export the total  into alv output.

Former Member
0 Kudos
162

Hi ,

You can populate the do_sum in the fieldcatalog as 'X' for the key figures for which you require the sum.

Regards,

Sonal

0 Kudos
161

Thank you Sign .how can i use  'do_sum '. can you give an example.

Regards,

BY

0 Kudos
161

Hi

As Sign says you need to set the flag DO_SUM in the catalog table

I suppose you have to fill a catalog table in order to transfer the structure of your internal table to ALV, a field of catalog is DO_SUM

You should set it equal to X for all fields you need to calculate the total

Max

0 Kudos
161

Thanx its true. do_sum 'X'  solved my said.

Regards,

BY