用户A需要创建物料主数据,其中用到了 BAPI_MATERIAL_SAVEDATA 和 MD_MRP_LEVEL_CREATE_DATA 。 其中MD_MRP_LEVEL_CREATE_DATA (这里主要更改MRP范围,也可以用录屏做)需要用到MM02的权限。但是实际 情况是不允许该用户在前台修改物料主数据的。 然后这里需要在创建物料主数据的时候,临时有权限更改物料主数据的。
LS_MDMA-BERID = LV_MRPAREA. LS_MDMA-MATNR = LV_MATNR. CALL FUNCTION 'MD_MRP_LEVEL_CREATE_DATA' EXPORTING I_MATNR = LV_MATNR I_WERK = LV_WERK I_MRP_AREA = LV_MRPAREA I_SELFIELDS = LS_SELFIELDS I_MDMA = LS_MDMA I_DPOP = LS_DPOP I_QUEUE_FLAG = 'X' I_SAVE_FLAG = ''...
CMV1 Create variable 生成变量 CMV2 Change variable 更改变量 CMV3 Display variable 显示变量 CMV4 Delete value variable 删除值变量 CTOB Object overview: Table entries 对象总览 :表项 OPCU Strategy levels 策略层次 OPDN Change variable 更改变量 OPDO Display variable 显示变量 MD00 MRP : external ...
METHOD if_ex_md_purreq_change~change_before_save_mrp. "检查采购申请增强开关 DATA ls_zexit TYPE zexit. DATA:lt_werks TYPE RANGE OF eban-werks, ls_werks LIKE
MRP RecordsMDKP->MRP Document Header DataPLSC->Planning Scenario (Long-term Planning)MDFD->MRP Firming DatesMDVM->Planning File EntriesS094->LIS Stock/Requirements AnalysisReservationsRESB->Reservations/Dependent RequirementsPlanned OrdersPLAF->Planned OrdersDiscrete ProductionAFKO->Order HeaderAFPO->Order...
5,Payroll: ABAP dictionary containing data as well meta data. 6, Model object connot be created in a local package (only create the object after consulting sap,create the object in an sap package). 7,the lock objects deal with the problem which some users synchronize access to the same da...
[管理信息化SAP实施]SAP方丈ABAPSAP增强应用实例.docx,{管理信息化SAP实施}SAP方丈ABAPSAP增强应用实例 通过功能退出增加增强语句:如图4: 双击程序后加入如下语句~~~ ifsy-tcodeCK11Nandsy-tcodeCK40N. data: beginofl_matnr, matnrlikembew-matnr, VPRSVlikembew-VPRSV,
管理信息化 SAP 实施 SAP 方丈 ABAPSAP 增强应用实例 通过功能退出增加增强语句:如图 4: 双击程序后加入如下语句~~~ ifsy-tcode<>'CK11N'andsy-tcode<>'CK40N'. data: beginofl_matnr, matnrlikembew-matnr, VPRSVlikembew-VPRSV, vjvprlikembew-vjvpr, pprdllikembew-pprdl, lplprlikembew-lplpr, en...
LS_MDMA-BERID = LV_MRPAREA. LS_MDMA-MATNR = LV_MATNR. CALL FUNCTION 'MD_MRP_LEVEL_CREATE_DATA' EXPORTING I_MATNR = LV_MATNR I_WERK = LV_WERK I_MRP_AREA = LV_MRPAREA I_SELFIELDS = LS_SELFIELDS I_MDMA = LS_MDMA I_DPOP = LS_DPOP ...
lv_mrpTYPEbapi_mrp_mat_param-mrp_area. lv_datum= p_datum +21.DATA(lv_len) = strlen( gs_ywbk-ywbk )."根据导入模版-工厂PBIM- WERKS并且PBIM~loevr NE 'D'(没有删除标识)取:PBIM-MATNR(物料编号);SELECTmatnrFROMpbimINTOTABLE@DATA(lt_pbim)WHEREwerks = @gs_ywbk-werksANDloevrNE'D'....