Skip to Content
0

Issue with material document creation using bapi (bapi_goodsmvt_create)

May 12, 2017 at 04:44 PM

72

avatar image

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.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Anand Sagar Sethi May 12, 2017 at 07:02 PM
1

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.

Share
10 |10000 characters needed characters left characters exceeded