Skip to Content
avatar image
Former Member

BAPI Incoming Invoice Receipt in LSMW

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

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)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • 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 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"

    Add comment
    10|10000 characters needed characters exceeded