2010 May 21 2:07 PM
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
2010 May 21 2:26 PM
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
2010 May 21 2:27 PM
this is the amount in the PO. I am using PO_GETDETAIL to get the PO data.
2010 May 21 2:44 PM
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
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |