on 05-12-2017 5:44 PM
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
103 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.