Skip to Content
0
Dec 02, 2009 at 06:01 AM

Can I use BAPI_ACC_DOCUMENT_POST for customer clearing(inter company)?

371 Views

Hi,

We were getting errors for object type. Object type is a mandatory field and it is not taking "BKPFF", "VBRK" and other object key as a valid object key( Check is present in SAP Include LACC9F20 for object type). We have created a new object type in TTYP table and passed in this BAPI "BAPI_ACC_DOCUMENT_POST " . Is this is a correct approach?

After this correction when we try to post clearing document using BAPI, getting error :- "FI interface: Small difference * USD 30 cannot be distributed".

We are passing parameters :-

Document Header :-

OBJ_TYPE ( Passing manually created entry of TTYP)

BUS_ACT( RFBU)

DOC_TYPE(YD)

Other entries which I am passing are OBJ_KEY, OBJ_SYS, USERNAME, COMP_CODE, DOC_DATE, POSTNG_DATE, FISC_YEAR, PERIOD.

ACCOUNTGL:-

Item No:-1

GL Account

ITEM_TEXT

AC_DOC_NO(AR Invoice of payment document which I want to clear) for e.g. 7100000001

Customer

Item No:-2

GL Account

ITEM_TEXT

AC_DOC_NO(AR Invoice of payment document which I want to clear) for e.g. 7100000002

Customer

ACCOUNTRECEIVABLE:-

Item No.:-3

Customer( same which i have passed in GL account parameter)

comp_code:- Header company code

CURRENCYAMMOUNT:-

item No:-1

CURR_TYPE: 10 (company code curr)

Currency (from document)

AMT_DOCCUR (amount of AR invoice of account GL item no 1).

item No:-2

CURR_TYPE: 10 (company code curr)

Currency (from document)

AMT_DOCCUR (amount of AR invoice of account GL item no 2)

item No:-3

CURR_TYPE: 10 (company code curr)

Currency (from document)

AMT_DOCCUR (Sum of above two AR invoice which will be against customer)

Do you have any solution for this error? kindly suggest.