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: 

HOW TO DO FIFO LOGIC??

former_member198275
Active Contributor
0 Kudos

In the internal table, amount field is contains these data

100

30

150

-20

-180

0

-10

-


Now I have to apply FIFO ligic here.First I have to subtract (-20) from 100.it will come

80

30

150

0

-180

0

-10

Then (-180) will be subtracted 1st from 80 and then rest from 30,and the rest from 150...so it will come

0

0

80

0

0

-10

And lastly (-10) will be subracted from 80..

So final result comes

0

0

70

0

0

0......

So in one internal i have to do this...how to do???

3 REPLIES 3

Former Member
0 Kudos

Please give me reward point If it is useful

Thanks

Murali Poli

0 Kudos

I got the idea but not properly....But in the one internal table how to do it..

former_member198275
Active Contributor
0 Kudos

solved