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: 

abap count Opening Balance

former_member626380
Participant
0 Kudos
137

hi

in below i declared variable to be counted balance in line 5 but don't need total only but i want complete like pic tow

PIC 2

how to write this code

thanks

1 ACCEPTED SOLUTION

FredericGirod
Active Contributor
65
data lv_cumulative type something.

loop at my_table into field-symbol(<my_line>).
  <my_line>-cumulative_balance = lv_cumulative + <my_line>-debit + <my_line>-credit.
  lv_cumulative = <my_line>-cumulative_balance.
endloop.

1 REPLY 1

FredericGirod
Active Contributor
66
data lv_cumulative type something.

loop at my_table into field-symbol(<my_line>).
  <my_line>-cumulative_balance = lv_cumulative + <my_line>-debit + <my_line>-credit.
  lv_cumulative = <my_line>-cumulative_balance.
endloop.