08-19-2017 4:27 AM
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
08-19-2017 10:04 AM
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"