Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to find enhancements for a TCode

Former Member
0 Likes
24,736

Hi,

We are doing a study for upgrading from 4.7 to ECC 6.

For this I would like to know the enhancements done in particular (critical transactions). I have searched on the forum and found 2 approaches.

1) Go to the program of the transaction and in the program search for call customer.

2) Go to the program of the transaction and then take the package of the program and then in SE80 enter package name and then we will get all the enhancements for the transaction.

However for eg for TCode CJ01 when I search the program I am able to find a few customer exits. However when I take the package name in SE80 I do not get any enhancements. So how do I find out the enhancements for a Transaction code (User exits, BADIS, exit programs, etc).

Thanks,

Mick

7 REPLIES 7
Read only

viquar_iqbal
Active Contributor
0 Likes
13,659

Find enhancement

GOTO SMOD first..

u find enhancement with empty field afterwards that.

ENTER some s* and press F4.

u will get a pop up screen with some list of values then in that screen--> click new selection button

u will go to new screen,

u find a + button at last or shift+f7.

screen will expand

check the check box fmodule exits...below that u find component name ..type ur fexit name Exit_XXX-001 etc.

NOTE: before u click enter remove the one S* which u have given earlierclick enter..

u will get corresponding name.

Goto SE84 ->Expand the Enhancements node->you can find some reports using which you can search Enhancements

Read only

Former Member
0 Likes
13,659

Hi,

To find the user exits associated, execute following code in SE38

&----


*& Report Y_USER_EXIT_SEARCH *

*& *

&----


*& *

*& *

&----


REPORT Y_USER_EXIT_SEARCH .

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.

WRITE: 'sy ucom=', SY-UCOMM.

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.

Read only

0 Likes
13,659

Hi, thx for the code

Read only

Former Member
0 Likes
13,659

Hi,

Refer below link

Regards

Md.MahaboobKhan

Read only

0 Likes
13,659

Thanks to all for your prompt response.

But can anybody please try it for TCode CJ01 and see if your approaches work. I have tried it and it doesnt work. What happens if the user exit s not part of a project? And also let me know the userexits for CJ01 and please let me know how did you find it.

Peter

Read only

0 Likes
13,659

Use this badi.

WORKBREAKDOWN_UPDATE.

Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
13,659

projectdef_update(Project)/workbreak*_update(WBS Element)

Nabheet