Application Development and Automation 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: 
Read only

Function module to sum field

former_member626380
Participant
0 Likes
1,232

Hi ,

Any Function module to show total only in field .

I have internal table and I have field price

I want to sum only this field to assign it in Adobe form to show total under the field

2 REPLIES 2
Read only

Sandra_Rossi
Active Contributor
978

I guess your question is not about how to do a sum in ABAP, that is so easy, so could you please refine your question?

Read only

Patrick_vN
Active Contributor
0 Likes
978

Have you considered adding a global variable inside of the Adobe form and just add a loop-statement in the 'Code Initialization' section of the form to calculate the total?

That way you add your new global variable as the value of your new field and you're done.

(I don't think there is a function module that accepts random internal tables and then will calculate totals of any column of your choice.)