Application Development 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: 

How do i know whether a User Exit has been used in a particular Transaction

Former Member
0 Kudos

Hi All,

I want to know whether user exit EXIT_SAPLIPW1_001

or EXIT_SAPLIPW1_008 are usedin trasaction CO01 or CO02.Is there any way of knowing that.

Thanks in Advance,

SAket.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

HI you can refer to MODACT table.

MODACTis the table store the customer enhancement projects.

MODSAP is the table store all the enhancements.

1) Go to CMOD transaction and give the enhancement what you like.

2) if it is already used in any projects then it shows in which project that enhancement was used

3)check that project .

:Reward points if useful

Edited by: Gaurav Deep on Apr 18, 2008 1:04 PM

11 REPLIES 11

S0025444845
Active Participant
0 Kudos

Hi,

Copy paste this program and give transaction code in input and execute.

You will get the list of enhancements u just click the enhancement and get the exits used.

&----


*& Report ZUSER_EXIT

*&

&----


*&

*&

&----


REPORT ZUSER_EXIT NO STANDARD PAGE HEADING.

TABLES : tstc, "SAP Transaction Codes

tadir, "Directory of Repository Objects

modsapt, "SAP Enhancements - Short Texts

modact, "Modifications

trdir, "System table TRDIR

tfdir, "Function Module

enlfdir, "Additional Attributes for Function Modules

tstct. "Transaction Code Texts

DATA : jtab LIKE tadir OCCURS 0 WITH HEADER LINE.

DATA : field1(30).

DATA : v_devclass LIKE tadir-devclass.

&----


*& Selection Screen Parameters

&----


SELECTION-SCREEN BEGIN OF BLOCK a01 WITH FRAME TITLE text-001.

SELECTION-SCREEN SKIP.

PARAMETERS : p_tcode LIKE tstc-tcode OBLIGATORY.

SELECTION-SCREEN SKIP.

SELECTION-SCREEN END OF BLOCK a01.

&----


*& Start of main program

&----


START-OF-SELECTION.

  • Validate Transaction Code

SELECT SINGLE * FROM tstc

WHERE tcode EQ p_tcode.

  • Find Repository Objects for transaction code

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 = enlfdir-area.

MOVE : tadir-devclass TO v_devclass.

ENDIF.

ENDIF.

  • Find SAP Modifactions

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.

  • Take the user to SMOD for the Exit that was selected.

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.

Rewards points if useful.

Regards,

Sudha

Former Member
0 Kudos

hi,

one way to find that is keep a BREAK-POINT in USER EXITS and then goto that transaction and execute it.

if user exit works for that transaction then it will be open in debugging mode for a particular screen. if user exit doesn't work for the transaction then it won't be open in debugging mode.

i think it will solves ur problem.

thanks

raji

reward if helpful.

former_member772790
Participant
0 Kudos

Hi Saket,

Just open the function modules: EXIT_SAPLIPW1_001

or EXIT_SAPLIPW1_008 and then open the includes, now u can able to see the code. if any body has written the code in that includes and also need to check in CMOD transaction for their corresponding project are in the active mode or not. so that we can say those 2 user exits has been used for those transaction. or else the better way is put the break points in the include programs(first line) and run the transactions.

-Prasanth

Former Member
0 Kudos

Hi,

Goto Se93-->type co01 .Find the Program name of the Tcode.

Go inside the Program.In find type call function EXIT_SAPLIPW1_001 or call function EXIT_SAPLIPW1_008

If this pattern is Found .Then the user Exit is called in this Transaction code.

Regards,

Balakumar.G.

Former Member
0 Kudos

HI you can refer to MODACT table.

MODACTis the table store the customer enhancement projects.

MODSAP is the table store all the enhancements.

1) Go to CMOD transaction and give the enhancement what you like.

2) if it is already used in any projects then it shows in which project that enhancement was used

3)check that project .

:Reward points if useful

Edited by: Gaurav Deep on Apr 18, 2008 1:04 PM

0 Kudos

This message was moderated.

0 Kudos

great answer

Former Member
0 Kudos

Hi,

Gothrough the below link.

http://www.sap-img.com/ab038.htm

Former Member
0 Kudos

Hi,

1) Get the package from EXIT_SAPLIPW1_001 attribute tab as IQSM.

2)go to se80 give that package as IQSM,Then you will get the transactions where the exit is called..I have seen there is 3 t.codes.

3)The T.code (CO01) which you mentioned is Not calling the exit.

Regards

Kiran Sure

Former Member
0 Kudos

Hi,

goto tcode>system>status>program

and make a global search with the exit name or call customer-function.

also check the package for the same transaction by the menu GOTO>attribute.

goto se80 and check the exit in that package also.

http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm

http://www.erpgenie.com/abap/code/abap26.htm

please reward points if useful.

Former Member
0 Kudos

Thanks for all help.