‎2008 Jan 31 12:41 PM
hi all,
BAPI_GL_ACC_GETCURRENTBALANCE .can any tell me how to use this function module.
‎2008 Jan 31 6:56 PM
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.
‎2013 Aug 08 10:30 AM
‎2008 Apr 30 12:52 PM