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_GL_GETGLACCPERIODBALANCES

Former Member
0 Likes
790

CALL FUNCTION 'BAPI_GL_GETGLACCPERIODBALANCES'

EXPORTING

COMPANYCODE = wa_output-bukrs

GLACCT = wa_output-hkont

FISCALYEAR = wa_output-gjahr

CURRENCYTYPE = '10'

TABLES

ACCOUNT_BALANCES = it_balnce

but i am getting only data for single hkont(GL_ACCOUNT).

How to get the data for all.

Thanks in advance.

CALL FUNCTION 'BAPI_GL_GETGLACCPERIODBALANCES'

EXPORTING

COMPANYCODE = wa_output-bukrs

GLACCT = wa_output-hkont

FISCALYEAR = wa_output-gjahr

CURRENCYTYPE = '10'

TABLES

ACCOUNT_BALANCES = it_balnce

but i am getting only data for single hkont(GL_ACCOUNT).

How to get the data for all.

Thanks in advance.

2 REPLIES 2
Read only

Former Member
0 Likes
602

Hello Sanket

With this MF you can only get the balance for a single account. If you want to have the period balance for several accounts, you must do a loop to the MF. I don't know any MF to do you requirement.

Hope it helps...

Regards

Read only

Former Member
0 Likes
602

thanks