在使用BAPI BAPI_GOODSMVT_CREATE需要通过制定GM_CODE来确定bapi 模拟的货物移动的事务代码(Tcode)。
相关GM_code保存在表T158G中,
GMCODE TCODE:
- 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
以上。