Skip to Content
Former Member
Mar 25, 2010 at 05:31 AM

Issue while trying to post using BAPI_ACC_DOCUMENT_POST


Hello All,

I am trying to create a vendor credit memo using the BAPI BAPI_ACC_DOCUMENT_POST. Here in the header I am passing username,company code, doc date,posting date,doc type (as KG for credit memo) and reference document number.

In the account payable internal table I am passing itemacc as 1, vendor number,payment currency and payment amount.

In account GL internal table I am passing Item no (for 2 line items 2 and 3) the GL account

In Currency Amount internal table I have 3 entries 1 for the accounts payable and 2 for teh GL entered as above. The line items numbers are 1 (for accounts payable item) and 2,3 for the GL account items.

First amount value is 15680 and the other 2 in GL are -14000 and -1680 (so the sum is matching with vendor amount). Upon execution I am receiving 2 errors in the return tables

as Error in document BKPFF and

Enter a payment currency different to USD.

Could any one let me know what I am missing ? Why an error stating enter a payment currency different to USD ?

Waiting for a response.

Thanks and Regards,