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."凭证行的唯一标识 0001ls_goodsmvt_item-move_type ='101'."移动类型ls_goodsmvt_item-mvt_ind ='B'."移动标识ls_goodsmvt_item-po_number ='4600000020'."采购订单ls_goodsmvt_item-po_item ='00010'."采购订单行项目ls_goodsmvt_item-material ='0000000100000000...
CALL FUNCTION 'BAPI_GOODSMVT_CREATE' EXPORTING GOODSMVT_HEADER = GMHEAD ”抬头数据,记账日期、凭证日期、用户、抬头文本等。 GOODSMVT_CODE = GMCODE ”Tcode对应的两位码 * TESTRUN = ' ' IMPORTING * GOODSMVT_HEADRET = GOODSMVT_HEADRET MATERIALDOCUMENT = MATERIALDOCUMENT ”货物移动凭证号 * MATDOCUMEN...
BADI:MB_BAPI_GOODSMVT_CREATE 调用方法IF_EX_MB_BAPI_GOODSMVT_CREATE~EXTENSIONIN_TO_MATDOC IMSEG结构中也要新增增强字段,用于传值 增强代码 "---@斌将军--- METHOD IF_EX_MB_BAPI_GOODSMVT_CREATE~EXTENSIONIN_TO_MATDOC. DATA: c_lenstruc TYPE i VALUE 30, wa_bapi_mb_header TYPE bapi_te_xmkpf, ...
在使用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使⽤⽅法* 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(调拨收货发货入库退货)BAPI_GOODSMVT_CREATE(调拨收货发货⼊库退货)code-gm_code取值:01 MB01 按采购订单的货物移动 02 MB31 按⽣产订单的货物移动 03 MB1A 货物提取(⼯单退料 04 MB1B 转移过帐 05 MB1C 其他收货 06 MB11 货物移动 07 MB04 "物料供应"消耗的事后调整 itab-...
BAPI_GOODSMVT_CREATE Post goods movements with MB_CREATE_GOODS_MOVEMENT Functionality You can use this method to create a material document for a goods movement. You can only create one material document each time you call up the method. ...
下面介绍一下使用bapi BAPI_GOODSMVT_CREATE为委外订单创建物料移动凭证。 例子代码: [crayon-6758ed608ca2c304408915/] 代码不复杂,需要注意的是字段line_id,parent_id,line_depth要
[BAPI]使⽤BAPI_GOODSMVT_CREATE创建委外订单 (subcontrac。。。下⾯介绍⼀下使⽤bapi BAPI_GOODSMVT_CREATE为委外订单创建物料移动凭证。例⼦代码:*&---* *& Report YTEST_SUBCONTRACT_MIGO *&---* *& *&---