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: 

BAPI Incoming Invoice Receipt in LSMW

ratana_pouy
Participant
0 Kudos

Dear Guru,

I am using LSMW to create incoming invoice of vendor by using BAPI

these fields that i selected

This is template:

Origin:

Converted File to TXT

Start IDoc Processing, there is error message

Do i miss any field? please help.

Thanks,

Rtn

1 REPLY 1

JL23
Active Contributor

the message is M8_2 057 Incoming invoice status &1 is not allowed

as you see there is a variable for the status

Your message has no value for a variable, it is blank, and it seems a blank status is not allowed, you need to tell SAP into which status you want to post the invoice.

find the docu to bapi_incominginvoice_create1 and see if it explains more.

I think it has an import parameter INVOICESTATUS which should have a value.

Make sure you have set your your LSMW Mapping rules to a professional layout, in the menu of step 5 Extras > Layout, I described it in my blog https://blogs.sap.com/2012/12/27/lsmw-material-master-by-bapi-method-part-1/ in the section "Prepare your field mapping and conversion rules"