‎2010 Mar 25 5:31 AM
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,
Sachin
‎2010 Mar 29 8:52 AM
Hello,
i was able to solve this issue on my by using the same BAPI (BAPI_ACC_DOCUMENT_POST). Just needed to enter the vendor info in the accounts payable internal table and the GL info in the GL table with the amount in the currency amount table. Needed to reverse the sum in GL against the amount in accounts payable entry.
Regards
Sachin