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 ...
lw_goodsmvt_item-stge_loc = ‘L001′. “库位 lw_goodsmvt_item-move_type = ‘122′. “移动类型 lw_goodsmvt_item-batch = lw_body2-fgoph.“批号 lw_goodsmvt_item-entry_qnt = lw_body2-zl.“数量 lw_goodsmvt_item-entry_uom = ‘KG’. “单位 lw_goodsmvt_item-orderid = lw_body2-fgd...
下面介绍一下使用bapi BAPI_GOODSMVT_CREATE为委外订单创建物料移动凭证。 例子代码: 代码不复杂,需要注意的是字段line_id,parent_id,line_depth要填写正确, line_id是用来唯一标识行项目的,委外行要正确制定上层行项目ID,也就是把上层行
下面介绍一下使用bapi BAPI_GOODSMVT_CREATE为委外订单创建物料移动凭证。 例子代码: [crayon-6758ed608ca2c304408915/] 代码不复杂,需要注意的是字段line_id,parent_id,line_depth要
双击实施类,可以看到方法:IF_EX_MB_BAPI_GOODSMVT_CREATE~EXTENSIONIN_TO_MATDOC 方法里面可以看到如下代码: 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创建委外订单 (subcontrac。。。下⾯介绍⼀下使⽤bapi BAPI_GOODSMVT_CREATE为委外订单创建物料移动凭证。例⼦代码:*&---* *& Report YTEST_SUBCONTRACT_MIGO *&---* *& *&---
BAPI_GOODSMVT_CREATE(调拨收货发货⼊库退货)code-gm_code取值:01 MB01 按采购订单的货物移动 02 MB31 按⽣产订单的货物移动 03 MB1A 货物提取(⼯单退料 04 MB1B 转移过帐 05 MB1C 其他收货 06 MB11 货物移动 07 MB04 "物料供应"消耗的事后调整 itab-mvt_ind = 'B'. "移动标识 ⽆参考的...
I try to use BAPI_GOODSMVT_CREATE to post GR with D/O no, I use the following parameters for calling BAPI gm_code = 01 mvt_ind = 'B' goodsmvt_header goodsmvt_item-deliv_num = '80760728' goodsmvt_item-deliv_item = '00010' goodsmvt_item-move_type = '101' According to SAP documentat...
我用java调用BAPI_GOODSMVT_CREATE进行采购订单收货,程序如下: JCoFunction function1=destination.getRepository().getFunction("BAPI_GOODSMVT_CREATE"); JCoFunction function2 =destination.getRepository().getFunction("BAPI_TRANSACTION_COMMIT"); JCoFunction function3 =destination.getRepository().getFunction("BAPI...
wa_item-MVT_IND = 'F'. APPEND wa_item TO t_item. CLEAR : wa_item . ** CALL FUNCTION 'BAPI_GOODSMVT_CREATE' EXPORTING goodsmvt_header = g_gmhead goodsmvt_code = g_gmcode TABLES goodsmvt_item = t_item return = t_errmsg . ** *read table t_errmsg with key type = 'E'. *if...