I am creating a report to get the opening balance for the given date.For the select option I am giving the input fields -
company code, g/l account number, posting date.
Is there any function module to get closing balance of the previous period , so that I can directly use it as the opening balance for the required date(period).
The following BAPI's might help you.
BAPI_GL_GETGLACCBALANCE - closing balance of G/L account for a chosen year.
BAPI_GL_GETGLACCCURRENTBALANCE - closing balance of G/L account for the current year
BAPI_GL_GETGLACCPERIODBALANCES - Posting period balances for each G/L account.
Reward if useful.
Thanx & Rgds.