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_INCOMINGINVOICE_CHANGE with multipe receipt documents

ross_goodman
Participant
0 Likes
844

While trying to update an invoice item via BAPI_INCOMINGINVOICE_CHANGE the item line requires a reference document as the IR is GR based. However when there is more than one goods receipt document for the po line item this causes an error, as the bapi only checks the invoice quantity against the receipted quantity on that single reference document. This means it doesn't balance if the invoice is for a quantity that is different to the quantity on the supplied ref doc.

How can I force the BAPI to consider all the material documents in the po history when I am only allowed to enter on ref document?

I cannot think of a way around this.

Cheers,

Ross

While trying to update an invoice item via BAPI_INCOMINGINVOICE_CHANGE the item line requires a reference document as the IR is GR based. However when there is more than one goods receipt document for the po line item this causes an error, as the bapi only checks the invoice quantity against the receipted quantity on that single reference document. This means it doesn't balance if the invoice is for a quantity that is different to the quantity on the supplied ref doc.

How can I force the BAPI to consider all the material documents in the po history when I am only allowed to enter on ref document?

I cannot think of a way around this.

Cheers,

Ross

2 REPLIES 2
Read only

mvoros
Active Contributor
0 Likes
741

Hi,

have you tried to pass multiple lines for same INVOICE_DOC_ITEM?

Cheers

Read only

ross_goodman
Participant
0 Likes
741

fixed it myself, thanks to those who posted.