根据 T-Code 获取相关的 User-Exit / Finding the user-exits of a SAP transaction code
来源:互联网 发布:淘宝禁售管理规范 编辑:程序博客网 时间:2024/05/16 08:52
可使用以下Program ,输入 T-Code 之后,即可取得相关的 User-Exit 。然后可直接双击对应的User-Exit 来查看对应的Function Module 和 Function Group 等信息。
*&---------------------------------------------------------------------*
*& Report ZUSEREXIT
*&
*&---------------------------------------------------------------------*
*&* Finding the user-exits of a SAP transaction code
*
* Enter the transaction code in which you are looking for the user-exit
* and it will list you the list of user-exits in the transaction code.
* Also a drill down is possible which will help you to branch to SMOD.
*&
*&---------------------------------------------------------------------*
report zuserexit no standard page heading.
tables : tstc, tadir, modsapt, modact, trdir, tfdir, enlfdir.
tables : tstct.
data : jtab like tadir occurs 0 with header line.
data : field1(30).
data : v_devclass like tadir-devclass.
parameters : p_tcode like tstc-tcode obligatory.
select single * from tstc where tcode eq p_tcode.
if sy-subrc eq 0.
select single * from tadir where pgmid = 'R3TR'
and object = 'PROG'
and obj_name = tstc-pgmna.
move : tadir-devclass to v_devclass.
if sy-subrc ne 0.
select single * from trdir where name = tstc-pgmna.
if trdir-subc eq 'F'.
select single * from tfdir where pname = tstc-pgmna.
select single * from enlfdir where funcname =
tfdir-funcname.
select single * from tadir where pgmid = 'R3TR'
and object = 'FUGR'
and obj_name eq enlfdir-area.
move : tadir-devclass to v_devclass.
endif.
endif.
select * from tadir into table jtab
where pgmid = 'R3TR'
and object = 'SMOD'
and devclass = v_devclass.
select single * from tstct where sprsl eq sy-langu and
tcode eq p_tcode.
format color col_positive intensified off.
write:/(19) 'Transaction Code - ',
20(20) p_tcode,
45(50) tstct-ttext.
skip.
if not jtab[] is initial.
write:/(95) sy-uline.
format color col_heading intensified on.
write:/1 sy-vline,
2 'Exit Name',
21 sy-vline ,
22 'Description',
95 sy-vline.
write:/(95) sy-uline.
loop at jtab.
select single * from modsapt
where sprsl = sy-langu and
name = jtab-obj_name.
format color col_normal intensified off.
write:/1 sy-vline,
2 jtab-obj_name hotspot on,
21 sy-vline ,
22 modsapt-modtext,
95 sy-vline.
endloop.
write:/(95) sy-uline.
describe table jtab.
skip.
format color col_total intensified on.
write:/ 'No of Exits:' , sy-tfill.
else.
format color col_negative intensified on.
write:/(95) 'No User Exit exists'.
endif.
else.
format color col_negative intensified on.
write:/(95) 'Transaction Code Does Not Exist'.
endif.
at line-selection.
get cursor field field1.
check field1(4) eq 'JTAB'.
set parameter id 'MON' field sy-lisel+1(10).
call transaction 'SMOD' and skip first screen.
*---End of Program
- 根据 T-Code 获取相关的 User-Exit / Finding the user-exits of a SAP transaction code
- Finding the user-exits of a SAP transaction code
- 根据T-CODE,查找USER-EXIT的报表
- 根据T-CODE,查找USER-EXIT的报表
- ABAP code to find all the User Exits and BADIs for any transaction
- 用T-CODE查询USER EXIT的程序
- Finding User Exits...
- Report to Find User-Exit for Transaction Code
- IE02 SAP Transaction Code (T-code) Details
- SAP用户出口(User Exits)
- Visual Studio Emulator报错:Unable to add user to the Hyper-V Administrators group exit code 2220 的解决方法
- the tables of the user in SAP
- USER EXITS
- SAP所有模块用户出口(User Exits)
- SAP所有模块用户出口(User Exits)
- SAP所有模块用户出口(User Exits)
- SAP所有模块用户出口(User Exits)
- 【转载】SAP用户出口清单(User Exits)
- 测试存在风险及解决方法
- 差分约束系统专题
- 读《某石化公司SAP项目存储管理和备份方案》有感
- 软件缺陷的原则
- 获取Android手机中所有的短信
- 根据 T-Code 获取相关的 User-Exit / Finding the user-exits of a SAP transaction code
- 一次表空间配额错误的处理ORA-01536
- 2.14
- java正则表达式
- 文档测试
- poj3667
- 在Excel Add-in中使用log4NET
- fatal error LNK1104: cannot open file 'MSCOREE.lib'
- 一个怀疑染毒文件所做的简单比较