lw_p2_goodsmvt_item-MOVE_REAS = ‘0002′.“移动原因 lw_p2_goodsmvt_item-mvt_ind = ‘F’. “移动标识 APPEND lw_goodsmvt_item to lt_goodsmvt_item. ENDIF. endloop. IF lt_goodsmvt_item is NOT INITIAL . CALL FUNCTION ‘BAPI_GOODSMVT_CREATE’ EXPORTING GOODSMVT_HEADER = lw_goodsmvt_header ...
下面介绍一下使用bapi BAPI_GOODSMVT_CREATE为委外订单创建物料移动凭证。 例子代码: [crayon-6758ed608ca2c304408915/] 代码不复杂,需要注意的是字段line_id,parent_id,line_depth要
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...
ls_goodsmvt_item-mvt_ind = 'B'."采购订单 READ TABLE lt_goodsmvt_item ASSIGNING WITH KEY material = ls_goodsmvt_item-material plant = ls_goodsmvt_item-plant stge_loc = ls_goodsmvt_item-stge_loc move_type = ls_goodsmvt_item-move_type move_plant = ls_goodsmvt_item-move_plant move_stloc...
我用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...
itab-mvt_ind = 'F'. itab-plant = pcitab-plant. itab-orderid = pcitab-prod_doc. itab-entry_qnt = pcitab-qty. itab-move_batch = pcitab-batch. itab-move_stloc = pcitab-stge_loc. append itab. endloop. call function 'BAPI_GOODSMVT_CREATE' exporting goodsmvt_heade...
创建商品接收 选择创建按钮。 输入采购订单编号。 选择采购订单编号旁边的向右箭头,查看: 供应商编号和名称 采购订单项目 根据需要调整接收数量。 选择保存来过账商品接收。 字段映射 该表提供了申请屏幕到功能模块字段的映射。 BAPI_GOODSMVT_CREATE 映射 另请参见...
GOODSMVT_ITEM-RES_ITEM = '1'. GOODSMVT_ITEM-MVT_IND = 'X'. GOODSMVT_ITEM-MOVE_TYPE = '301'. APPEND GOODSMVT_ITEM. CALL FUNCTION 'BAPI_GOODSMVT_CREATE' EXPORTING GOODSMVT_HEADER = GOODSMVT_HEADER GOODSMVT_CODE = GOODSMVT_CODE TABLES GOODSMVT_ITEM = GOODSMVT_ITEM RETURN = RETURN . Problem...
L_GM_ITEM-MVT_IND = 'B'.APPEND L_GM_ITEM TO LI_GM_ITEM.WHEN OTHERS.ENDCASE.ENDLOOP.105 过帐一直报错 对于采购订单4500025328 00010无收货可能 但是MIGO过帐正常,请指教下105情况下参数问题,感谢! 时光的水晶 tomy55 吧主 15 已经收货了。ME23N查这个PO,点采购历史,就可以看到已经收货的数量。