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

Need Help - BAPI INCOMINGINVOICE_CREATE: Balance not zero error

Former Member
0 Likes
2,193

Hi - I used IncomingInvoice_Create BAPI to post an invoice. I ensured that the amounts specified in the invoice match what is available on the PO. This invoice needs tax to be calculated so the tax indicator is set. However BAPI execution fails with a message "Balance not zero: 10.920,00- debits: 10.920,00 credits: 0,00". 10.920,00 is the correct amount after calculating tax. There are no invoices posted earlier for the PO and the PO is not exhausted. I understand that the post can happen only when Balance is zero. Please help in understanding what is missing.

Here is the code:

Moderator message - Please respect the 2,500 character maximum when posting. Post only the relevant portions of code

Laksh

Edited by: gklaksh on May 21, 2010 3:08 PM

Edited by: gklaksh on May 21, 2010 3:10 PM

Edited by: gklaksh on May 21, 2010 3:11 PM

Edited by: Rob Burbank on May 21, 2010 9:29 AM

Hi - I used IncomingInvoice_Create BAPI to post an invoice. I ensured that the amounts specified in the invoice match what is available on the PO. This invoice needs tax to be calculated so the tax indicator is set. However BAPI execution fails with a message "Balance not zero: 10.920,00- debits: 10.920,00 credits: 0,00". 10.920,00 is the correct amount after calculating tax. There are no invoices posted earlier for the PO and the PO is not exhausted. I understand that the post can happen only when Balance is zero. Please help in understanding what is missing.

Here is the code:

Moderator message - Please respect the 2,500 character maximum when posting. Post only the relevant portions of code

Laksh

Edited by: gklaksh on May 21, 2010 3:08 PM

Edited by: gklaksh on May 21, 2010 3:10 PM

Edited by: gklaksh on May 21, 2010 3:11 PM

Edited by: Rob Burbank on May 21, 2010 9:29 AM

3 REPLIES 3
Read only

Former Member
0 Likes
1,369

Hi there,

An invoice is posted agianst a PO is this the amount in the PO and do you have a reference ID for the PO so the link can take place?

Regards

Tatenda

Read only

0 Likes
1,369

this is the amount in the PO. I am using PO_GETDETAIL to get the PO data.

Read only

0 Likes
1,369

Hi

Sorry about that but when you use the BAPI you must also populate the offsetting value in the ACCOUNTINGDATA structure, this essentially states where the data you are sending should get its funds, to pay for the products or services.

Cheers

Edited by: Tatenda Humphrey Itai Chaibva on May 21, 2010 3:46 PM