data:goodsmvt_header type bapi2017_gm_head_01. data:goodsmvt_code type bapi2017_gm_code. data:materialdocument type bapi2017_gm_head_ret-mat_doc. data:matdocumentyear type bapi2017_gm_head_ret-doc_year. data:goodsmvt_item type table of bapi2017_gm_item_create with header line. data:retur...
程序实现库存批次自动确定,不弹出下述窗口 代码如下: FORM FRM_CHARG_DETEMINE TABLES LT_GOODMVT_POST STRUCTURE BAPI2017_GM_ITEM_CREATE ... 查看原文 SAP 免费交货 :gm_headerTYPEbapi2017_gm_head_01.DATA:gm_codeTYPEbapi2017_gm_code.DATA:gm_headretTYPEbapi2017_gm_head_ret.DATA:gm_itemTYPETABLEOF...
DATA:lit_returnLIKESTANDARDTABLEOFbapiret2,"bapi return lwa_return TYPE bapiret2, "bapireturn lit_movsLIKESTANDARDTABLEOFbapi2017_gm_item_create,"mat doc item lwa_movs TYPE bapi2017_gm_item_create, "mat doc item lwa_headerLIKEbapi2017_gm_head_01,"mat doc hdr lwa_code LIKE bapi2017_gm_...
过账后你会在mmbe里查看物料的库存时发现有提供给供应商的库存 委外采购过账 因为涉及系统之间的传输,所以并不能完整给出代码,但是主体处理是没有问题的,部分参数我也写死了,根据自己需要改写即可 DATA: ls_header LIKE bapi2017_gm_head_01, lv_code LIKE bapi2017_gm_code VALUE '01', lv_doc TYPE bapi20...
INCLUDE STRUCTURE bapi2017_gm_code. DATA: END OF gmcode.DATA: BEGIN OF mthead.INCLUDE STRUCTURE bapi2017_gm_head_ret. DATA: END OF mthead.DATA: BEGIN OF itab OCCURS 100.INCLUDE STRUCTURE bapi2017_gm_item_create. DATA: END OF itab.DATA: BEGIN OF errmsg OCCURS 10.INCLUDE STRUCTURE bapi...
DATA: END OF WA_GOODSMVT_CODE. DATA: BEGIN OF IT_BAPI_ITEM OCCURS 0. INCLUDE STRUCTURE BAPI2017_GM_ITEM_CREATE. DATA: END OF IT_BAPI_ITEM. DATA: BEGIN OF IT_CMTMSG OCCURS 0. INCLUDE STRUCTURE BAPIRET2. DATA: END OF IT_CMTMSG. DATA: G_MBLNR LIKE MSEG-MBLNR, G_MJAHR LIKE MSE...
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT' EXPORTING WAIT = 'X'. ITAB_SHOW-SCDDH = I_ORDER_NUMBER. ITAB_SHOW-YCXX2 = '订单创建成功'. *** 更新自定义表 FLAG_MATNR = ITAB_SHOW-MATNR. PERFORM UPDATE_ZGLDDCL USING FLAG_RSNUM I_ORDER_NUMBER FLAG_MATNR. ...
gmheadLIKEbapi2017_gm_head_01.DATA:BEGINOFgmcode.INCLUDESTRUCTUREbapi2017_gm_code.DATA:ENDOFgmcode.DATA:BEGINOFmthead.INCLUDESTRUCTUREbapi2017_gm_head_ret.DATA:ENDOFmthead.DATA:BEGINOFitabOCCURS100.INCLUDESTRUCTUREbapi2017_gm_item_create.DATA:ENDOFitab.DATA:BEGINOFerrmsgOCCURS10.INCLUDESTRUCTURE...
REPORT :mseg,mkpf,rm07m,t158b,t001l,: mat_doc LIKE bAPI2017_gm_head_ret-:save_code LIKE sy-ucomm,ok_code LIKE sy-ucomm,loc_msg(50),gmnga LIKE afru-gmnga,mtsnr LIKE rm07m-mtsnr,errflag..DATA:BEGIN OF gt_afpo OCCURS STRUCTURE :END OF :gmhead LIKE : BEGIN OF STRUCTURE :...
216 . SAP ABAP 业务对象 BUS1030 CostType 成本要素 BAPI 清单和相关 TCODE 215 . SAP ABAP 业务对象 BUS0004 ControllingArea 成本控制范围 BAPI 清单和相关 TCODE 214 . SAP ABAP 业务对象 BUS1031 ActivityType 作业类型 BAPI 清单和相关 TCODE