cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with material document creation using bapi (bapi_goodsmvt_create)

aditya_ranjan
Discoverer
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

anand_sagarsethi
Contributor

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.

Answers (0)