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 Field into new Field

0 Kudos
291

Hi ABAP Sifus,

I have requirement like below.

1. To declare new field in i_glt0(sum of balance carry forward)

2. Do summation for i_gIt0 based on below criteria:

Company code

Account

Ledger

Fiscal year

Currency

Record type = 0

Controlling Area = ABC

And then store the value in the new field created in step 1.

Let say the field I created in step 1 is sum_bal-glt0-tslvt

What is the best approach to do the summation?

Appreciate your help thanks!

1 REPLY 1

Sandra_Rossi
Active Contributor
0 Kudos
209

Are you asking how to use LOOP AT, IF and +? I don't get where the difficulty is, please clarify.