用户出口教材.doc

用户出口教材.doc

ID:49574795

大小:338.50 KB

页数:5页

时间:2020-03-02

用户出口教材.doc_第1页
用户出口教材.doc_第2页
用户出口教材.doc_第3页
用户出口教材.doc_第4页
用户出口教材.doc_第5页
资源描述:

《用户出口教材.doc》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库

1、增强包括3种:1\USER-EXIT用户出口2\BADI用户增强3\替代BADI所用事务码:SE18查看        SE19激活并实现USER-EXIT所用事务码:SMOD查看           CMOD 激活并实现查找用户出口代码:可以用以下程序实现:Findingtheuser-exitsofaSAPtransactioncode**Enterthetransactioncodeinwhichyouarelookingfortheuser-exit*anditwilllistyouthelistofuser-exitsinthetransacti

2、oncode.*AlsoadrilldownispossiblewhichwillhelpyoutobranchtoSMOD.**Writtenby:SAPBasis,ABAPProgrammingandOtherIMGStuff**reportzuserexitnostandardpageheading.tables:tstc,tadir,modsapt,modact,trdir,tfdir,enlfdir.tables:tstct.data:jtabliketadiroccurs0withheaderline.data:field1(30).data:

3、v_devclassliketadir-devclass.parameters:p_tcodeliketstc-tcodeobligatory.selectsingle*fromtstcwheretcodeeqp_tcode.ifsy-subrceq0.selectsingle*fromtadirwherepgmid='R3TR'andobject='PROG'andobj_name=tstc-pgmna.move:tadir-devclasstov_devclass.ifsy-subrcne0.selectsingle*fromtrdirwherenam

4、e=tstc-pgmna.iftrdir-subceq'F'.selectsingle*fromtfdirwherepname=tstc-pgmna.selectsingle*fromenlfdirwherefuncname=tfdir-funcname.selectsingle*fromtadirwherepgmid='R3TR'andobject='FUGR'andobj_nameeqenlfdir-area.move:tadir-devclasstov_devclass.endif.endif.select*fromtadirintotablejta

5、bwherepgmid='R3TR'andobject='SMOD'anddevclass=v_devclass.selectsingle*fromtstctwheresprsleqsy-languandtcodeeqp_tcode.formatcolorcol_positiveintensifiedoff.write:/(19)'TransactionCode-',20(20)p_tcode,45(50)tstct-ttext.skip.ifnotjtab[]isinitial.write:/(95)sy-uline.formatcolorcol_hea

6、dingintensifiedon.write:/1sy-vline,2'ExitName',21sy-vline,22'Description',95sy-vline.write:/(95)sy-uline.loopatjtab.selectsingle*frommodsaptwheresprsl=sy-languandname=jtab-obj_name.formatcolorcol_normalintensifiedoff.write:/1sy-vline,2jtab-obj_namehotspoton,21sy-vline,22modsapt-mo

7、dtext,95sy-vline.endloop.write:/(95)sy-uline.describetablejtab.skip.formatcolorcol_totalintensifiedon.write:/'NoofExits:',sy-tfill.else.formatcolorcol_negativeintensifiedon.write:/(95)'NoUserExitexists'.endif.else.formatcolorcol_negativeintensifiedon.write:/(95)'TransactionCodeDoe

8、sNotExist'.endif.atline-selection

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。