MIGO GMCode

忘记看的哪里的blog了

调用物料移动的Bapi需要用到GMCode

BAPI_GOODSMVT_CREATE 里面需要传入 GOODSMVT_CODE参数

There is not a GMCODE for transaction MIGO in table T158G.
You have the list of equivalences in the table T158G:
GMCODE TCODE
01 MB01
02 MB31
03 MB1A
04 MB1B
05 MB1C
06 MB11
07 MB04
GM_Code 01: Goods receipt for purchase order
GM_Code 02: Goods receipt for production order
GM_Code 03: Goods issue
GM_Code 04: Transfer posting
GM_Code 05: Other goods receipts
GM_Code 06: Reversal of goods movements
GM_Code 07: Subsequent adjustment to a subcontract order

BAPI_MATPHYSINV_CHANGECOUNT Change count for particular items of a phys. inv. doc.
BAPI_MATPHYSINV_COUNT Enter count for particular items of a phys. inv. doc.
BAPI_MATPHYSINV_CREATE Create physical inventory document
BAPI_MATPHYSINV_CREATE_MULT Create physical inventory document
BAPI_MATPHYSINV_GETDETAIL Read items for a physical inventory document
BAPI_MATPHYSINV_GETITEMS Read list of physical inventory documents with items
BAPI_MATPHYSINV_GETLIST Read list of phys. inv. documents
BAPI_MATPHYSINV_POSTDIFF Post differences for certain items in a phys. inv. document