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

BAPI - BAPI_ACC_DOCUMENT_POST Error due to Currency table.

Former Member
0 Likes
3,811

Hi Guys ,

I am facing an error while posting documents using BAPI_ACC_DOCUMENT_POST. The error occurs is in the tables parameters "currencyamount" .I am appending Amt in document currency, Amt in Local currency, Amount in 2nd Currency and Amount in 3rd Currency using Currency type (CURR_TYP) 00,10,30 and 60 respectively for every line item. All these 4 currency fields might have different values.The error in the "return" parameter says "Balance in currencies".

Can anyone suggest an appropriate way to pass all the above 4 currency fields to the same line item ?

Thanks,

Venkat.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,048

Hi

I think you are passing wrong values to currency table.

Based on the line item numbers of GL / Account Payable / Account receivable data, pass the credit / debit values to currency table.

Basically When you sum up the currency values, it should become zero.

Regards

Madhan D

5 REPLIES 5
Read only

Former Member
0 Likes
2,049

Hi

I think you are passing wrong values to currency table.

Based on the line item numbers of GL / Account Payable / Account receivable data, pass the credit / debit values to currency table.

Basically When you sum up the currency values, it should become zero.

Regards

Madhan D

Read only

0 Likes
2,048

Hi Madhan,

Thanks for the resolution. It works fine now.

Regards,

Venkat.

Read only

0 Likes
2,048

Hi Madhan, Rahul,

Your response helped me.

Thanks,

Janete

Read only

RahulKeshav
Active Contributor
0 Likes
2,048

Hi VG,

while using this bapi...the total amount or net amount should be zero.

Thru Txn we assign posting key ..and system autiomatically take the sign on the basiss of Posting key..but in this bapi we dont have posting key field....so we have to give the amount with the sign...and total of all the line items should be zero ...

Thnx

RK

Read only

0 Likes
2,048

Hi Rahul ,

Thanks for the resolution. The error is resolved now.

Thanks,

Venkat.