lw_p2_goodsmvt_item-order_itno = lw_posnr.“订单项目编号 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_G...
CALL FUNCTION 'BAPI_GOODSMVT_CREATE' “”调用BAPI EXPORTING GOODSMVT_HEADER = GMHEAD GOODSMVT_CODE = GMCODE * TESTRUN = ' ' * GOODSMVT_REF_EWM = IMPORTING GOODSMVT_HEADRET = MTHEAD MATERIALDOCUMENT = MAT_DOC * MATDOCUMENTYEAR = TABLES GOODSMVT_ITEM = ITAB * GOODSMVT_SERIALNUMBER = RETURN...
此过程,可调用BAPI ‘BAPI_GOODSMVT_CREATE’实现。 完整代码: 注意:如果不是特殊库存物料移动,则不用输入’E'和对应的销售订单和行项目。 REPORT z_goods_mov. DATA:lit_return LIKE STANDARD TABLE OF bapiret2, "bapi return lwa_return TYPE bapiret2, "bapi return lit_movs LIKE STANDARD TABLE OF bap...
下面介绍一下使用bapi BAPI_GOODSMVT_CREATE为委外订单创建物料移动凭证。 例子代码: [crayon-6781fae104693035456954/] 代码不复杂,需要注意的是字段line_id,parent_id,line_depth要
货物移动的bapi BAPI_GOODSMVT_CREATE其中 参数 : GOODSMVT_CODE 有 GMCODE Table T158G GM_Code 01: Goods receipt for purchase orderGM_Code 02: Goods receipt for production orderGM_Code 03: Goods issueGM_Code 04: Transfer postingGM_Code 05: Other goods receiptsGM_Code 06: Reversal of goods ...
GOODSMVT_ITEM-MOVE_STLOC = 'C902'. ENDIF. append GOODSMVT_ITEM. endloop. 冲销时与正常创建凭证一样,只是BAPI2017_GM_ITEM_CREATE-XSTOB = 'X'. "冲销标志 移动类型为正向,比如261发料,做262的冲销,移动类型仍给261,不需要修改,此处打叉即可
Hi Team, I am using BAPI_GOODSMVT_CREATE for creating Goods Receipt in MB01 with 101 mvt type and i need automatic posting for 543 mvt with the same input
一般是?BAPI_GOODSMVT_CREATE的参数 GOODSMVT_ITEM 里面含有待移动数量为0的行项目 但是此次比较特殊 ? ?跟了很久 都是这样的问题, 解决方案:BAPI BAPI_GOODSMVT_CREATE的?GOODSMVT_ITEM的RES_TYPE 记录类型赋值 FUNCTION ZBOM_MM_CJLL. *"--- *"*"局部接口: *" IMPORTING *" VALUE(VBELN) TYPE AUFNR *"...
我用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...
Hi I have found a BAPI "BAPI_GOODSMVT_CREATE" , I want to use it for delivery, now I have given all relevant information, but I get an error " Goods