版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
資料范本本資料為word版本,可以直接編輯和打印,感謝您的下載SAP開發(fā)SD相關(guān)的增強(qiáng)BADI地點(diǎn): 時(shí)間: 說(shuō)明:本資料適用于約定雙方經(jīng)過(guò)談判,協(xié)商而共同承認(rèn),共同遵守的責(zé)任與義務(wù),僅供參考,文檔可直接下載或修改,不需要的部分可直接刪除,使用時(shí)請(qǐng)?jiān)敿?xì)閱讀內(nèi)容SD相關(guān)的BADIsap的用戶出口總共有三代:1、 第一代sap提供一個(gè)空代碼的子過(guò)程,在這個(gè)子過(guò)程中用戶可以添加自己的代碼,控制自己的需求。這類增強(qiáng)都需要修改sap的標(biāo)準(zhǔn)代碼。示例:USEREXIT..inSAPMV45A2、 第二代sap提供的是CUSTOMER-FUNCTION,它是通過(guò)SMOD和CMOD完成實(shí)現(xiàn)。參見我的/CompassButton/archive/2006/08/31/1150258.aspx"/CompassButton/archive/2006/08/31/1150258.aspx"/CompassButton/archive/2006/08/31/1150258.aspx3、 第三代sap提供的第三代的用戶出口就是BADI,他的調(diào)用方式是CALLMETHOD(instance),(相關(guān)的TCODE是SE18和SE19),你可以通過(guò)EXIT_HANDLER這個(gè)單詞查找BADI。另外還有一種出口叫BTE相關(guān)TCODE:FIBFBusinessTransactionEvents(OpenFI)TheOpenFIenhancementtechniquewasdevelopedintheFinancialAccountingcomponent.OpenFIisbaseduponthefollowingprinciples:Applicationdevelopersmustdefinetheirinterfaceinafunctionmodule,anassignmenttableisreadintheaccompanying(generated)code,andthecustomermodulesassignedarecalleddynamically.Thistechniquedifferentiatesbetweenenhancementsthatareonlyallowedtohaveoneimplementationandenhancementsthatcancallmultipleimplementationsinanysequencedesired.Bothindustryspecificandcountry-specificenhancementsmaybedefined.TheconceptsbehindtheBusinessAdd-InsenhancementtechniqueandOpenFIarebasicallythesame.However,thetwoenhancementtechniquesdodifferfromeachotherinthefollowingpoints:OpenFIcanonlybeusedtomakeprogramenhancements,thatis,youcanonlyenhancesourcecodeusingOpenFI.YoucannotenhanceuserinterfaceelementswithOpenFIlikeyoucanwithBusinessAddIns.OpenFIassumesthatenhancementwillonlytakeplaceonthreelevels(SAP-partners-customers),whereaswithBusinessAdd-Insyoucancreateandimplementenhancementsinasmanysoftwarelayersasyoulike.OpenFIusesfunctionmodulesforprogramenhancements.WithBusinessAdd-Ins,ABAPObjectsisusedtoenhanceprograms./CompassButton/archive/2006/08/31/1150258.aspx"/CompassButton/archive/2006/08/31/1150258.aspx"如何使用SMOD和CMOD進(jìn)行SD的用戶增強(qiáng)1、關(guān)于增強(qiáng)的簡(jiǎn)單介紹SMOD包含具體的增強(qiáng),而CMOD是包含一組SMOD編寫的增強(qiáng).Userexits(Functionmoduleexits)是sap提供出口,它的命名規(guī)則如下:EXIT_<programname><3digitsuffix>示例:sd的VA01事務(wù),對(duì)應(yīng)的程序是SAPMV45A,你會(huì)在程序里查到(用CALLCUSTOMER-FUNCTION字符串)如下代碼:CALLCUSTOMER-FUNCTION'003'exportingxvbak = vbakxvbuk = vbukxkomk = tkomkimportinglvf_subrc=lvf_subrctablesxvbfa=xvbfaxvbap=xvbapxvbup=xvbup.則exitcallsfunctionmodule的名稱就是:EXIT_SAPMV45A_0032、 先試用SMOD建立一個(gè)SAP增強(qiáng)2.1、 選擇一個(gè)增強(qiáng),如:SDVFX001,點(diǎn)擊修改,進(jìn)入sap增強(qiáng)維護(hù)屏幕;2.2、 點(diǎn)擊“組件”按鈕,進(jìn)入組件維護(hù)屏;2.3、 將光標(biāo)移到“功能模塊名”,輸入模塊名,如:EXIT_SAPLV60B_001;2.4、 選擇“代碼修改”按鈕進(jìn)入函數(shù)模塊;2.5、 雙擊函數(shù)模塊的包含單元,進(jìn)入包含單元加入自定義代碼并激活保存;3、 使用CMOD建立增強(qiáng)項(xiàng)目3.1、 輸入自定義的項(xiàng)目名,點(diǎn)擊“創(chuàng)建”;3.2、 進(jìn)入增強(qiáng)項(xiàng)目,選擇“配置增強(qiáng)”,進(jìn)入增強(qiáng)配置屏幕;3.3、 輸入增強(qiáng)名如:SDVFX0013.4、保存,并退出;4、使用CMOD將增強(qiáng)項(xiàng)目激活,便大工告成。如何查找*判斷是否存在相應(yīng)增強(qiáng)的定義(SMOD)selectsinglenamefrommodsapaintomod0-namewherename='PPCO0002'.ifsy-subrc=0.endif.selectsingle*fromtadirintops_tadir_dbwherepgmid ='R3TR'andobject ='SMOD'andobj_name= 'PPCO0002'.*判斷是否存在相應(yīng)增強(qiáng)項(xiàng)目的定義(CMOD)SELECTSINGLEnameFROMMODATTRintomod0-nameWHERENAME='PPCO0002'..*提取增強(qiáng)的定義的組件(可以用此反查增強(qiáng)定義)select*frommodsapwherename='PPCO0002'.*判斷該增強(qiáng)是否移植到BADI實(shí)現(xiàn)*Enhancement&hasalreadybeenmigratedinBusinessAdd-Indefinitionselectsinglemigratedbadi_def into(migrated,exit_name)frommodsapawherename=modname.ifsy-subrc=0andmigrated=seex_true.messages621withmodnameexit_name.checkmodene'CHAM'.endif.MODTYP類型:E:功能退出S:屏幕T:表C:GUI代碼sap增強(qiáng)存在MODSAP表內(nèi)*獲取增強(qiáng)組件的參見函數(shù)MOD_SAP_MEMBER_TEXT*獲得退出功能模塊的信息selectsingle*fromtftitwhere"SPRAS"='1'AND"FUNCNAME"='EXIT_SAPLCORE_001ifsy-subrc=0.endif.*值得學(xué)習(xí)的函數(shù)MOD_KUN_ACTIVATE(會(huì)操作相關(guān)報(bào)表)/CompassButton/archive/2006/09/16/1231652.aspx"/CompassButton/archive/2006/09/16/1231652.aspx"如何從SAP中查找BADIBADI作為SAP的第三代用戶出口,他的應(yīng)用也越來(lái)越廣泛,但如何找到合適的badi是許多abap程序員的困惑。我這里就介紹一下我個(gè)人的應(yīng)用的經(jīng)驗(yàn),供大家參考。1、badi對(duì)象的信息存儲(chǔ)在SXS_INTER,SXC_EXIT,SXC_CLASS和SXC_ATTR這四個(gè)表中(參見SECE包);2、 sap程序都會(huì)調(diào)用cl_exithandler=>get_instance來(lái)判斷對(duì)象是否存在,并返回實(shí)例;其實(shí)get_instance就是對(duì)上述幾個(gè)表和他們的視圖(V_EXT_IMP和V_EXT_ACT)進(jìn)行查詢和搜索。3、 基于這個(gè)機(jī)理,我查用ST05來(lái)監(jiān)控一個(gè)TCODE來(lái)跟蹤,然后選擇查找有關(guān)上述幾個(gè)表和視圖的操作,就可獲得相關(guān)BADI。4、 se18查找接口,se19實(shí)現(xiàn)接口就可以實(shí)現(xiàn)用戶增強(qiáng)。示例:用LE_SHP_DELIVERY_PROC控制跨月CancelMETHODIFEXLESHPDELIVERYPROC~CHANGEDELIVERYHEADER. data:thismonth(2)typec.data:wa_likptypelineofSHP_LIKP_T.data:wa_logtypelineofSHP_BADI_ERROR_LOG_T.clearct_log[],thismonth.thismonth=sy-datum+4(2)." >逼一彳固月的月份loopatit_xlikpintowa_likp.checkIS_V50AGL-WARENAUSG_STORNO='X'.〃--->代表作GIcancelifwa_likp-WADAT_IST+4(2)<thismonth.wa_log-VBELN=cs_likp-vbeln.wa_log-MSGTY='E'.〃金昔森^息wa_log-MSGID='ZDN_ERROR'.〃是一固class要自己建wa_log-MSGNO='001'.appendwa_logtoct_log."ErrorlogWAendif.endloop.ENDMETHOD./CompassButton/archive/2007/03/19/1533453.aspx"/CompassButton/archive/2007/03/19/1533453.aspx"如何實(shí)現(xiàn)標(biāo)準(zhǔn)TCODE的屏幕增強(qiáng)(HOWTO:ImplementascreenexittoastandardSAPtransaction)IntroductionSAPprovidesstandardtransactionstoenterdataintodatabase.ButaclientmaywanttomaintainsomeadditionalinformationinSAPotherthanwhatisprovided.Tomakeprovisionsforthis,additionalscreenshavetobeprovidedandadditionalfieldsmustbeaddedintoappropriatedatabasetable.Topavewayforthis,SAPhasprovidedtheoptionforscreenexits.Usually,SAPprovidesthefollowing:Anappendstructureinthedatabasetablewiththenewfields.Asubscreenareaintothestandardscreen-wheretheprogrammercanattachhissubscreenofhisownprogramwiththenewfields.Afunctiongroupunderwhichthenewsubscreenhastobecreatedwiththenewfields.FunctionexitstosynchronizethePBOandPAIofthestandardSAPprogramwiththePBOandPAIofthesubscreen-sothatdatacanflowbackandforthbetweenthestandardSAPprogramandtheprogramwrittenbythedeveloperforthesubscreen.Thesefunctionmodulesalsoexistinthesamefunctiongroupunderwhichthesubscreenwillhavetobedeveloped.Finally,alinkagehastobedonebetweenthesubscreenareaofstandardSAPscreenwiththecustomsubscreenconstructedbythedeveloper.Typically,SAPprovidesanenhancementinwhichthedevelopercancreateanappendstructure,usethefunctionexitstosynchronizethePBOandPAIofthestandardSAPprogramandthecustomsubscreenprogram,andmakethenecessarylinking(asmentionedaboveinstep4.But,again,thisisnotahardandfastrule.Linkinginsomecase,isalsodonebyconfigurations.)SAPalsousuallyprovidesthenameofthefunctiongroupunderwhichthesubscreenhastobedeveloped.NecessaryguidanceaboutimplementingascreenexitdevelopmentisusuallyavailableintheDocumentationsectionoftheenhancement(canbeavailedbytransactionSMOD).Pre-RequisitesThedevelopertoworkonscreenexitshouldhaveessentialknowledgeonthefollowing:DDICconcepts,includingtheknowledgeofappendstructure.ConceptofSAPEnhancementsandimplementingthemusingProjects.Conceptoffunctionexits.KnowledgeonModulePool-includingsubscreens,Tabstripcontrolsetc.StepsGuidelinesSo,adevelopercanfollowtheguidelinesmentionedbelowtoimplementascreenexittoastandardSAPtransaction,asandwhenrequired:FindouttheRequiredEnhancementsGotoSMOD.PressF4intheEnhancementfield.Inthenextpopupwindow,clickpushbutton‘SAPApplications'.Alistwillappearthatcontainsinformationonalltheenhancements,categorizedunderfunctionalareas.Developermustsearchfortheenhancementsrelevanttohisfunctionalareaofinterest-fore.g.,Purchasing,AssetAccounting,etc.Notedowntheenhancements.Then,cometotheinitialscreenofSMODandviewthedocumentationofeachenhancementtofindoutwhichoneisrequiredforyourdevelopment.UtilizetheEnhancementinaProjectAfteryouhavefoundone,d
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 二零二五版城市住宅抵押借款合同示范4篇
- 二零二五年度農(nóng)產(chǎn)品電商平臺(tái)農(nóng)產(chǎn)品質(zhì)量保險(xiǎn)合同4篇
- 二零二五年度滅鼠防治項(xiàng)目監(jiān)理合同3篇
- 2025年度紡織面料品牌形象設(shè)計(jì)與推廣合同4篇
- 2025年度自然人與音樂(lè)制作人創(chuàng)作合同3篇
- 二零二五年度出境領(lǐng)隊(duì)培訓(xùn)基地建設(shè)合同4篇
- 2025物業(yè)保潔與緊急維修值班服務(wù)一體化項(xiàng)目合同9篇
- 2025年度智能停車設(shè)施門面房產(chǎn)權(quán)轉(zhuǎn)讓合同4篇
- 2025年度個(gè)人與公司租賃合同糾紛處理?xiàng)l款4篇
- 二零二五年度啤酒品牌市場(chǎng)推廣代理合同3篇
- 中國(guó)人民銀行清算總中心直屬企業(yè)2023年招聘筆試上岸歷年典型考題與考點(diǎn)剖析附帶答案詳解
- 2024年湖南高速鐵路職業(yè)技術(shù)學(xué)院?jiǎn)握新殬I(yè)技能測(cè)試題庫(kù)及答案解析
- (正式版)SJT 11449-2024 集中空調(diào)電子計(jì)費(fèi)信息系統(tǒng)工程技術(shù)規(guī)范
- 廣州綠色金融發(fā)展現(xiàn)狀及對(duì)策的研究
- 人教版四年級(jí)上冊(cè)加減乘除四則混合運(yùn)算300題及答案
- 合成生物學(xué)技術(shù)在生物制藥中的應(yīng)用
- 消化系統(tǒng)疾病的負(fù)性情緒與心理護(hù)理
- 高考語(yǔ)文文學(xué)類閱讀分類訓(xùn)練:戲劇類(含答案)
- 協(xié)會(huì)監(jiān)事會(huì)工作報(bào)告大全(12篇)
- WS-T 813-2023 手術(shù)部位標(biāo)識(shí)標(biāo)準(zhǔn)
- 同意更改小孩名字協(xié)議書
評(píng)論
0/150
提交評(píng)論