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 for MIRO

Former Member
0 Likes
624

Hi,

While using BAPI_INCOMINGINVOICE_CREATE to post an invoice with a purchase order (MIRO), we are getting the error message

"Balance not zero: 165.60 debits: 0.00 credits: 165.60".

Please help us to detect where the error is.

We are entering values in 'ITEMDATA', 'GLACCOUNTDATA' and 'HEADERDATA' segments.

In 'ITEMDATA', we are giving the debit_creditor indicator as 'S' and in 'GLACCOUNTDATA' we are giving the debit_creditor indicator as 'H'.

In both 'ITEMDATA' and 'GLACCOUNTDATA' we are providing the item amount as 165.60.

In header data we have not provided a value for 'GROSS_AMOUNT'. (Even if we provide value of '165.60' in header, we get a similiar error)

The PO has got onlly one line item.

This is a high priority issue. Please help.

Thanks,

John

1 REPLY 1
Read only

Former Member
0 Likes
394

John,

I think we need to post debit and credit entries in the 'GLACCOUNTDATA' for the same amount.

Regards,

Kiran Bobbala