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

pre def function module.

Former Member
0 Likes
637

hello gurus ,

Sir i m generating a program in FI ,I have faceied a problem regarding to get the opening balance

CALL FUNCTION 'Z_GET_OPENING_BALANCE1'

EXPORTING

KUNNR = ITAB-KUNNR

GJAHR = GJAHR

MONTH = MONTH

IMPORTING

OPBAL = OPBAL

EXCEPTIONS

OTHERS = 1.

is there any prdefined function module in sap like above .

plz rply its urjent .

Thanks in advance .

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
595

I want to get the opening balance , through function module sap standard for a perticular customer .

4 REPLIES 4
Read only

Former Member
0 Likes
595

Hi

Choose the one which is most relevant for you...

BAPI_AR_ACC_GETCURRENTBALANCE Closing balance of customer account in current fiscal year

BAPI_AR_ACC_GETKEYDATEBALANCE Customer account balance at a key date

BAPI_AR_ACC_GETPERIODBALANCES Posting period totals per customer account in current fiscal year

REgards

Arun

Read only

Former Member
0 Likes
596

I want to get the opening balance , through function module sap standard for a perticular customer .

Read only

0 Likes
595

Hi

These BAPI's are for getting the customer balance.

Closing balance of the previous period/year is the opening balance for the next period/year when you carry forward balances!!

Please check the above BAPI's in SE37!!

In case you need the GL balances use:

BAPI_GL_ACC_GETBALANCE Closing balance of G/L account for chosen year

BAPI_GL_ACC_GETCURRENTBALANCE Closing balance of G/L account for current year

BAPI_GL_ACC_GETPERIODBALANCES Posting period balances for each G/L account

Read only

0 Likes
595

Use FM FDBL_BALANCES_DISPLAY. Also refer program RFGLBALANCE on how to use/call this function.

Cheers,

Sougata.