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...
goodsmvt_code LIKE bapi2017_gm_code. DATA: goodsmvt_headret LIKE bapi2017_gm_head_ret, materialdocument TYPE bapi2017_gm_head_ret-mat_doc, matdocumentyear TYPE bapi2017_gm_head_ret-doc_year. DATA:goodsmvt_item LIKE TABLE OF bapi2017_gm_item_create WITH HEADER LINE, goodsmvt_serialnumber L...
GOODSMVT_ITEM 里面含有待移动数量为0的行项目 但是此次比较特殊 ? ?跟了很久 都是这样的问题, 解决方案:BAPI BAPI_GOODSMVT_CREATE的?GOODSMVT_ITEM的RES_TYPE 记录类型赋值 FUNCTION ZBOM_MM_CJLL. *"--- *"*"局部接口: *" IMPORTING *" VALUE(VBELN) TYPE AUFNR *" VALUE(LGORT) TYPE LGORT_D *"...
公众号:matinal 本文作者:matinal 原文出处:http://www.cnblogs.com/SAPmatinal/ 原文链接:【MM系列】SAP MM模块-BAPI:BAPI_GOODSMVT_CREATE的CODE分析 前言部分 大家可以关注我的公众号,公众号里的排版更好,阅读更舒适
下面介绍一下使用bapi BAPI_GOODSMVT_CREATE为委外订单创建物料移动凭证。 例子代码: [crayon-672dba750e33f425688806/] 代码不复杂,需要注意的是字段line_id,parent_id,line_depth要
2.选择MB_BAPI_GOODSMVT_CREATE->实施,右键,点击”创建BADI实施”,结果如图。 3.双击新生成的实施“ZMB_BAPI_GOODSMVT_CREATE”,打开实施方法IF_EX_MB_BAPI_GOODSMVT_CREATE~EXTENSIONIN_TO_MATDOC,编辑代码如下。 1 2 3 4 5 6 7 8 9 10 11 12 ...
[BAPI]BAPI_GOODSMVT_CREATE中的GM_CODE汇总 在使用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...
函数使用三:采购过账BAPI_GOODSMVT_CREATE 一、货物移动。bapi BAPI_GOODSMVT_CREATE 其中 参数 : GOODSMVT_CODE 有 GMCODE Table T158G - 01 - MB01 - Goods Receipts for Purchase Order * 02 - MB31 - Goods Receipts for Prod Order * 03 - MB1A - Goods Issue...
Solved: hello i'm facing some problems with the bapi BAPI_GOODSMVT_CREATE with a material with serial number. in the order i have a material with 10 serial numbers. i'm
FORM BAPI_GZ_WWSH.CLEAR:L_GM_CODE,L_GM_HEAD,L_GM_ITEM,LI_GM_CODE[],LI_GM_HEAD[],LI_GM_ITEM[].DATA:S_MESG TYPE STRING.CLEAR:S_MESG.*填写表头数据L_GM_HEAD-PSTNG_DATE = TBLDAT.L_GM_HEAD-DOC_DATE = TBUDAT.L_GM_HEAD-BILL_OF_LADING = TTHUOD.L_GM_HEAD-REF_DOC_NO = T...