Skip to Content

BAPI Incoming Invoice Receipt in LSMW

Aug 19, 2017 at 03:27 AM


avatar image
Former Member

Dear Guru,

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

these fields that i selected

This is template:


Converted File to TXT

Start IDoc Processing, there is error message

Do i miss any field? please help.



bapi.png (46.2 kB)
fields.png (23.7 kB)
template.png (13.3 kB)
template-co.png (4.4 kB)
error.png (2.4 kB)
error1.png (25.8 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Jürgen L
Aug 19, 2017 at 09: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 in the section "Prepare your field mapping and conversion rules"

10 |10000 characters needed characters left characters exceeded