‎2009 May 18 8:15 AM
hi Experts,
I have a query like i have to print Report like for example-
date Quan bal(MENGE1)
01/09 2 2
02/09 3 5 This 5 comes when 2 is added with 3.
so, for this my code is,
LOOP AT ITAB .
READ TABLE ITAB INDEX SY-INDEX.
*APPEND ITAB.
ITAB-MENGE1 = ITAB-MENGE + ITAB-MENGE1.
MODIFY ITAB.
WRITE 😕 ITAB-EBELN,ITAB-MEINS,ITAB-MENGE,ITAB-MENGE1..
ENDLOOP.
ITAB contain all the data like date and Quan.
Bal is the variable i have created for cal.
Can anyone give me the solution for this.
Thanks in advance.
Regds,
Vipul
‎2009 May 18 8:25 AM
‎2009 May 18 8:40 AM
hi mahesh ,
Thanks for your reply but i have already tried it is not effective.
Regs
Vipul
‎2009 May 18 8:44 AM
Loop at itab.
at first.
bal = 0.
endat.
bal = bal + itab-menge.
write: itab-ebeln, itab-menge, itab-bal. "If only write will suffice or modify itab transporting bal.
endloop.
‎2009 May 18 9:12 AM
hi Richa,
Thanks for your reply,but my second row quantity like 2 is not added with 3.
it is printing same as Quan = bal.
Regds,
Vipul
‎2009 May 18 9:38 AM