SAP-BADI-使用增强清单

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

1、使用BADI的增强清单.......................................................................................................21.1.ZMB_MIGO_BADI......................................................................................................21.1.1.Method:PUBLISH_MATERIAL_ITEM..........................................................21.2.ZMB_RESERVATION_BADI......................................................................................61.2.1.Method:DATA_CHECK...................................................................................61.3.ZME_HOLD_PO..........................................................................................................91.3.1.Method:IS_ALLOWED...................................................................................91.4.ZME_PROCESS_PO_CUST......................................................................................101.4.1.Method:PROCESS_ITEM.............................................................................101.5.ZME_PROCESS_REQ_CUST...................................................................................141.5.1.Method:OPEN................................................................................................141.5.2.Method:PROCESS_ITEM...............................................错误!未定义书签。1.5.3.Method:PROCESS_ACCOUNT......................................错误!未定义书签。1.6.ZME_REQ_POSTED.................................................................................................271.6.1.Method:POSTED...........................................................................................271.7.ZMRM_HEADER_CHECK.......................................................................................291.7.1.Method:HEADERDATA_CHECK................................................................292、使用USER_EXIT的增强清单......................................................................................332.1.Project:ZMM1外部采购文件审批的增强处理项目...............................................332.1.1.UserExit:M06E0004......................................................................................332.2.Project:ZMM2采购申请审批的增强处理项目.......................................................412.1.2.UserExit:M06B0002.....................................................................................412.3.Project:ZMM3.............................................................................................................412.1.3.UserExit:LMEKO001....................................................................................432.1.4.UserExit:LMEKO002....................................................................................442.4.Project:ZMM5采购文件建立的增强......................................................................442.1.5.UserExit:MM06E005在采购凭证中的客户字段.......................................442.5.Project:ZMM6............................................................................................................512.1.6.UserExit:MBCF0002物料凭证项目中的段文本........................................511、使用BADI的增强清单1.1.ZMB_MIGO_BADI1.1.1.Method:PUBLISH_MATERIAL_ITEMmethodIF_EX_MB_MIGO_BADI~PUBLISH_MATERIAL_ITEM.dataabc(40)value'(SAPLMIGO)GODYNPRO-DETAIL_TAKE'.data:texttypestring,ZGOITEMTYPEGOITEM.DATAzMETYPEC.data:ctr(70).data:p_linetypetableofTLINEinitialsize0.DATAP_INLINEStypetableofTLINEinitialsize0.field-symbols:f01typeany.assign(abc)tof01.MOVELS_GOITEMTOZGOITEM.*---------------------------------------------------------------**检查物料的ABC状态*----------------------------------------------------------------*IFZGOITEM-EKORG='2000'andZGOITEM-MATNRisnotinitialand(ZGOITEM-BWART='103'orZGOITEM-BWART='101')ANDf01='X'.CALLFUNCTION'Z_MIGO_DIS_MAT'EXPORTINGzmatnr=ZGOITEM-MATNRzwerks=ZGOITEM-werks*CHANGING*DT=EXCEPTIONSCANCELLED=1NO_VALUES=2OTHERS=3.IFsy-subrc0.*MESSAGEIDSY-MSGIDTYPESY-MSGTYNUMBERSY-MSGNO*WITHSY-MSGV1SY-MSGV2SY-MSGV3SY-MSGV4.ENDIF.endif.*---------------------------------------------------------------**对设备备件103收货后是否进行检验结果纪录进行检查*---------------------------------------------------------------*IFzgoitem-bwart='105'ANDzgoitem-ekorg='2000'ANDzgoitem-xdetermination=''.库存确定选择才进行判断IFzgoitem-webre=''.MESSAGEw000(zz)WITH'非基于收货的发票校验情况下,不确定是否已有检验结果'.ELSE.*concatenateZGOITEM-LFBNRZGOITEM-LFBJAZGOITEM-LFPOSintoctr.*CALLFUNCTION'ZTEXT_READ_CHECK'*EXPORTING*ID='F00'*INLINE_COUNT='1'*LANGUAGE='1'*NAME=CTR*OBJECT='MSEG'**LOCAL_CAT=''*IMPORTING**HEADER=*ME=zME*TABLES*INLINES=P_INLINES*LINES=P_LINE**EXCEPTIONS**ID=1**LANGUAGE=2**NAME=3**NOT_FOUND=4**OBJECT=5**REFERENCE_CHECK=6**OTHERS=7*.*IFSY-SUBRC0.**MESSAGEIDSY-MSGIDTYPESY-MSGTYNUMBERSY-MSGNO**WITHSY-MSGV1SY-MSGV2SY-MSGV3SY-MSGV4.*ENDIF.*ifzme=1.*messageI024(zz)withzGOITEM-LFBNRZGOITEM-LFBJAZGOITEM-LFPOS.*LEAVETOTRANSACTION'MIGO'.*endif.*clearctr.*&------------------------------------------------------------**&CHANGETHELOGICFORTHERESULTOFQUALITYMAINTAINENCE*&------------------------------------------------------------*SELECTSINGLE*FROMzm01_s_103INTOwa_zm01_s_103WHEREzmblnr=zgoitem-lfbnrANDzmjahr=zgo

1 / 57
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功