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 dislay the cumulative balance

Former Member
0 Kudos

hi ABAPERS,

how r u all, please solve my problem

how to dislay the present cumulative balance by adding the previous cumulative +

normal balance.

Thanks & Regards

farhee.

3 REPLIES 3

Former Member
0 Kudos

Hi,

Let me know clearly what u want.

If u have some values needs to be added in a itab.

LOOP AT itab.

AT END OF MATNR.
SUM.
 v_cum = v_cum + itab-bal
ENDAT.
ENDLOOP.

Write:/ v_cum.

Former Member
0 Kudos

In which context r u asking , if it is in a loop

loop at itab.
 cum_bal = cum_bal + itab-cum_bal .
 write : cum_bal.
endloop.

Message was edited by:

Chandrasekhar Jagarlamudi

Former Member
0 Kudos

if ur data is in internal table then...

loop at itab.

cum_bal = cum_bal + itab-cum_bal .

endloop.