Application Development and Automation 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: 
Read only

bapi fm

Former Member
0 Likes
537

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?

3 REPLIES 3
Read only

Former Member
0 Likes
505

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

Read only

Former Member
0 Likes
505

select-options: s_acc for .....

loop at s_acc.

call the BAPI by passing s_acc-low value.

endloop.

Read only

Former Member
0 Likes
505

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.