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

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

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

Hi

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

Max

0 Kudos

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

0 Kudos

Yes I want to export the total  into alv output.

Former Member
0 Kudos

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

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

Regards,

BY

0 Kudos

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

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

Regards,

BY