on 07-23-2018 9:56 PM
I used BAPI_GOODSMVT_CREATE to cancel good receipt (GMCODE 01 for purchase order and 02 for production order) with MVT=101 AND XSTOB='X'. I didn't use BAPI_GOODSMVT_CANCEL because since I need to set movement reason and also pass serial numbers in some case.
After executing the BAPI, the stock is successfully reversed however the inspection lot created during goods receipt were still exist. How do I removed the inspection lot?
Another thing I noticed is that in MSEG table, Goods Recipt that are cancelled through MIGO has the field SMBLN (material document) populated but via BAPI this field is not populated.
I solved it by using function module 'MB_CANCEL_GOODS_MOVEMENT' and passing the table IMSEG table and MBLNR_TAB.
MBLNR_TAB: material doc, item, doc year
IMSEG: material doc, item, doc year, reason for movement
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
movement type must be 102 for reversal of GR
MVT = 102
please check once
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
107 | |
12 | |
11 | |
6 | |
6 | |
4 | |
4 | |
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.