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

Error in BAPI_ACC_DOCUMENT_POST

Former Member
0 Likes
672

Hi,

I receive an Error 'A balance has occurred in transaction currency 'EUR''

The values in the internal table passed to the parameter CURRENCYAMOUNT are not balanced.

(ie the sum of the values of field AMT_DOCCUR do not sum to 0).

Is this the cause of the error returned by the BAPI.

Is it necessary that the values passed to CURRENCYAMOUNT always need to balance to 0.

Thanks for the help.

regards,

Karen

4 REPLIES 4
Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
641

>

> Is this the cause of the error returned by the BAPI.

> Is it necessary that the values passed to CURRENCYAMOUNT always need to balance to 0.

Thumb rule: you need to match the Debit & the Credit line items for an a/c'ing doc to be posted successfully. This clearly means the net balance should be zero.

BR,

Suhas

PS: You can refer to the SAP demo program ACC_BAPI_TEST_DOCUMENT.

Read only

ThomasZloch
Active Contributor
0 Likes
641

Congratulations, you have found the fundamental concept of double entry bookkeeping

Thomas

Read only

Former Member
0 Likes
641

not answered

Read only

0 Likes
641

First of all, your question was answered. Second, there is a new status for "closed but unanswered", please make use of it. Third, please do not leave meaningless comments when closing threads, the text box is optional.

Thomas