‎2008 Mar 14 11:49 AM
hi all,
iam using bapi fm BAPI_GL_ACC_GETCURRENTBALANCE which will give current balance
of gl account no, company code , currency type.
but the thing for one glaccount no it is getting, suppose if i give range of glaccount no in selct-options .
what is the logic?
‎2008 Mar 14 11:53 AM
Hi Srinivas,
From the select-option get GL account no into an internal table.
Now loop through the internal table and call the BAPI inside the loop
Reward if useful
Thanks Arjun
‎2008 Mar 14 11:55 AM
select-options: s_acc for .....
loop at s_acc.
call the BAPI by passing s_acc-low value.
endloop.
‎2008 Mar 14 12:00 PM
Hi,
Try this Code ,
select-options : hkont for bseg-hkont.
loop at hkont.
CALL FUNCTION 'BAPI_GL_ACC_GETCURRENTBALANCE'
EXPORTING
companycode = ccode
glacct = hkont
currencytype = ctype
IMPORTING
ACCOUNT_BALANCE = balance
RETURN =
.
endloop.
Regards,
Balakumar.G.
Reward Points if Helpful.