通過TCODE查詢User Exit

2021-04-20 18:34:59 字數 2556 閱讀 6873

report zfind_userexit 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. 

通過TCODE查詢User Exit

z find user exit report z find user exit no standard page heading.tables tstc,tadir,modsapt,modact,trdir,tfdir,enlfdir.tables tstct.data jtab like tad...

根據T CODE,查詢USER EXIT的報表

abap report zfind userexit no standard page heading.tables tstc,tadir,modsapt,modact,trdir,tfdir,enlfdir.tables tstct.data jtab like tadir occurs 0 wi...

如何查詢SAP的舊TCODE對應新的TCODE

分享一下我老師大神的人工智慧教程!零基礎,通俗易懂!sap隨著新版本的發布,我們知道sap已經更新了很多的程式和tcode。sap提供了很多新的tcode來替換舊的tcode,新tcode有很多的新特性和新功能。在這個這種情況下,很多舊tcode就會被廢棄。我們如何查詢這個替換呢?sap提供了乙個資...