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_INCOMINGINVOICE_CREATE Function Module ?

Former Member
0 Likes
10,269

Hi,

I got error while testing BAPI_INCOMINGINVOICE_CREATE Function Module as

" Enter a reference to a valid goods receipt (line 000001) " for Creating Invoice liike as MIRO.

Please Tell me how to solve & how to ( MIRO ) Create Invoice for Purchase Order .

4 REPLIES 4
Read only

former_member156446
Active Contributor
0 Likes
5,072

[Check this reference link|https://forums.sdn.sap.com/search.jspa?q=BAPI_INCOMINGINVOICE_CREATE&objID=f50&dateRange=last90days&searchID=23224575&forumID=50&rankBy=10001&start=0]

Read only

Former Member
0 Likes
5,072

Hello Ramana,

I encountered this same error. Your PO GR-Bsd IV (ekpo-webre = 'X') is checked. You have to add the following fields when you populate your ItemData Table;

MOVE: rseg-lfbnr TO i_item-ref_doc,

rseg-lfgja TO i_item-ref_doc_year,

rseg-lfpos TO i_item-ref_doc_it.

Hope this helps. Good Luck!

Dodie

Read only

0 Likes
5,072

Well in my case the problem was solved enabling the option "GR-Bsd IV" on infoRecord information but your tip gave me the idea.

Read only

Former Member
0 Likes
5,072

Thanks