CALL FUNCTION 'BAPI_GOODSMVT_CREATE' EXPORTING GOODSMVT_HEADER = GMHEAD ”抬头数据,记账日期、凭证日期、用户、抬头文本等。 GOODSMVT_CODE = GMCODE ”Tcode对应的两位码 * TESTRUN = ' ' IMPORTING * GOODSMVT_HEADRET = GOODSMVT_HEADRET MATERIALDOCUMENT = MATERIALDOCUMENT ”货物移动凭证号 * MATDOCUMEN...
itab-move_type ='311'."移动类型(库储存地点<->库存地点)ELSE.*itab-move_type = '301'. "移动类型(工厂<->工厂)ENDIF.APPENDitab.CLEARitab.ENDLOOP.CALLFUNCTION'BAPI_GOODSMVT_CREATE'EXPORTINGgoodsmvt_header=goodsmvt_header goodsmvt_code='04'IMPORTINGmaterialdocument=mat_docTABLESgoodsmvt_item=itab ...
ls_goodsmvt_item-line_id = lv_line_id."凭证行的唯一标识 0002ls_goodsmvt_item-move_type ='543'."移动类型ls_goodsmvt_item-mvt_ind ='O'."移动标识ls_goodsmvt_item-material ='000000010000000003'."物料ls_goodsmvt_item-plant ='1011'."工厂ls_goodsmvt_item-entry_qnt ='1'."数量ls_goodsmvt_it...
BAPI_GOODSMVT_CREATE使用方法 BAPI_GOODSMVT_CREATE使⽤⽅法* GMCODE Table T158G - 01 - MB01 - Goods Receipts for Purchase Order * 02 - MB31 - Goods Receipts for Prod Order * 03 - MB1A - Goods Issue * 04 - MB1B - Transfer Posting * 05 - MB1C - Enter Other Goods Rec...
BAPI_GOODSMVT_CREATE的几个应用 只讲下 goodsmvt_item的输入参数: mb1a 移动类型261对应输入参数: CLEAR lw_body3. LOOP AT gt_body3 INTO lw_body3. lw_goodsmvt_item-plant = ‘1201′.“工厂 lw_goodsmvt_item-stge_loc = ‘L001′.“库存地点 ...
在使用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 ...
BAPI_GOODSMVT_CREATE(调拨收货发货入库退货)BAPI_GOODSMVT_CREATE(调拨收货发货⼊库退货)code-gm_code取值:01 MB01 按采购订单的货物移动 02 MB31 按⽣产订单的货物移动 03 MB1A 货物提取(⼯单退料 04 MB1B 转移过帐 05 MB1C 其他收货 06 MB11 货物移动 07 MB04 "物料供应"消耗的事后调整 itab-...
我先对原供应商做562K的货物移动,再对新供应商做561K类型的货物移动,这样,原来供应商的库存就可转移到新供应商这里。但我在做第二步 561K的时候 ,调用BAPI_GOODSMVT_CREATE会报错,在return参数中 会报找不到 采购信息记录的错误。 具体错误描述如下:M7 165 在采购组织 1000 中不能找到采购信息记录...
各位大佬求助一个有关..FORM BAPI_GZ_WWSH. CLEAR:L_GM_CODE,L_GM_HEAD,L_GM_ITEM,LI_GM_CODE[],LI_GM_HEAD[],LI_GM_ITEM[]. D
[BAPI]使⽤BAPI_GOODSMVT_CREATE创建委外订单 (subcontrac。。。下⾯介绍⼀下使⽤bapi BAPI_GOODSMVT_CREATE为委外订单创建物料移动凭证。例⼦代码:*&---* *& Report YTEST_SUBCONTRACT_MIGO *&---* *& *&---