Application Development 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: 

Error in BAPI_INCOMINGINVOICE_CREATE

Former Member
0 Kudos

Hi Experts,

I am trying to run a BAPI:

BAPI_INCOMINGINVOICE_CREATE

I am getting an error: The error is:

' Enter a reference to a valid goods receipt (line 000010) '

Which field to fill to remove this error?

Please suggest.

Regards,

Sangeeta.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

In Headerdata-REF_DOC_NO has to be filed.

Rhea.

6 REPLIES 6

Former Member
0 Kudos

Hi

Check the following:

This example specifies the header data that you need to enter in table Headerdata, the item data that you need to enter in table Itemdata and the tax information that you need to enter in table TaxData to post an invoice in a foreign currency.

Purchase order:       10 pc of material A @ $10/pc
First goods receipt:  4 pc of material A
Second goods receipt: 6 pc of material A

You receive an invoice against this purchase order referencing PO number 4500007505, PO item 10, goods receipt document 50010095, 2000, item 1. The invoice is for a quantity of 4 pc of material A, a gross amount of $46.60 and 16% tax ($6.60). Enter the following data:

HeaderData table

INVOICE_IND (Post invoice/credit memo): X
DOC_DATE (Document date): 05.20.2000
PSTNG_DATE (Posting date): 05.23.2000
COMP_CODE (Company code): 1000
CURRENCY (Currency key): USD
GROSS_AMOUNT (Gross amount): 46.60
ItemData table

INVOICE_DOC_ITEM (Invoice document item): 00001
PO_NUMBER (Purchase order number): 4500007505
PO_ITEM (Purchase order item): 00010
REF_DOC (Goods receipt document): 50010095
REF_DOC_YEAR (Fiscal year of current period): 2000
REF_DOC_ITEM (Goods receipt document item): 1
TAX_CODE (Tax code): VN
ITEM_AMOUNT (Item amount): 40.00
QUANTITY (Quantity): 4
PO_UNIT (Unit of measure): PC
TaxData table

TAX_CODE (Tax code): VN
TAX_AMOUNT (Tax amount in document currency): USD 6.60

Regards,

Vishwa.

Former Member
0 Kudos

Hi,

In Headerdata-REF_DOC_NO has to be filed.

Rhea.

0 Kudos

Hi,

I have passed all the fields mentioned above and also reference fields but still it is showing the error.

please suggest.

Regards,

Sangeeta.

0 Kudos

Hi

Pass the field first into the conversion_exit_alpha_input and then pass it to the BAPI...hope this works.

Regards,

Vishwa.

0 Kudos

i am also facing same issue please tell me the solution for tht

Former Member
0 Kudos

how you resolved your issue.could you share this.