Skip to Content
avatar image
Former Member

Issue with material document creation using bapi (bapi_goodsmvt_create)

Hi Gurus,

We are working on a custom solution to create the goods movement document using a workflow.

The bapi (bapi_goodsmvt_create) is being used to create material document for scrap posting (movement type = 551). We are getting an error “Stock data of serial number not suitable for movement” for material with serialized part (serial category = ‘M’ Machines). For this category the stock check is set as 2 (Inconsistencies in stock data -> Error), in the t-code OIS2.

However for the same material, the document is created successfully using the t-code MIGO and MB1A.

It may be noted that the material documents are created successfully using the same bapi (bapi_goodsmvt_create) for materials with other serial category (except serial category 'M'). In these cases the stock check is set as 0, No stock validation in OIS2.

Please provide your inputs on how to resolve this issue.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    May 12, 2017 at 07:02 PM

    For same configuration & for same material:

    when done from Migo works fine

    when done from Bapi : gives you error

    it means you are missing some data/ fields to enter in the BAPI.

    Inorder to find what you are missing; put breakpoint on MB_CREATE_GOODS_MOVEMENT and compare the results from MIGO and BAPI.

    You will get what you are really missing.

    Add comment
    10|10000 characters needed characters exceeded