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_ACC_GETCURRENTBALANCE

Former Member
0 Likes
843

hi all,

BAPI_GL_ACC_GETCURRENTBALANCE .can any tell me how to use this function module.

3 REPLIES 3
Read only

Former Member
0 Likes
655

Hi,

Its very simple to use, refer to the example below -

pass the company code and G/L account number and currencytype as 00 - for getting acc balance in the transaction currency and 01- for getting the account balance in local currency.

Sample code-

DATA : accbalance TYPE bapi3006_3,

ret2 TYPE bapireturn.

CALL FUNCTION 'BAPI_GL_ACC_GETCURRENTBALANCE'

EXPORTING

companycode = '1000'

glacct = '1012000201'

currencytype = '00'

IMPORTING

account_balance = accbalance

return = ret2.

IF ret2-type NE 'E'.

MESSAGE 'BAPI Executed successfully' TYPE 'S'.

ENDIF.

Hope this helps.

Read only

0 Likes
655

This message was moderated.

Read only

Former Member
0 Likes
655

Do any one know how to get gl balance business area-wise?