‎2005 May 25 1:58 PM
Hi,
How can we find out where a User Exit(function module) is being triggered exactly(on what action) ?
Can we define this triggering ? If yes how can we do it ?
Thanks in advance.
‎2005 May 25 2:02 PM
Hi Archana,
1. Put a soft break point in the user exit function module, and then return to the transaction and perform your processing. When it hits the break point then you know that this action triggers the user exit.
2. No, when userexits are called is fixed. If its called from multiple locations, however, you can implement in your userexit code how to handle the seperate contexts.
Cheers,
Brad
‎2005 May 25 2:02 PM
Hi Archana,
1. Put a soft break point in the user exit function module, and then return to the transaction and perform your processing. When it hits the break point then you know that this action triggers the user exit.
2. No, when userexits are called is fixed. If its called from multiple locations, however, you can implement in your userexit code how to handle the seperate contexts.
Cheers,
Brad
‎2005 May 25 3:20 PM
Hi Brad...
thanx so much...
but I've tried doing that but it is not helping...thats why I want to find out from where is it getting triggered...b'cos it does not go to the debugger on the transaction that I want it to trigger...thats why was also wondering if we could define where it can be triggered...do u have any solution ?
‎2005 May 25 3:28 PM
Hi Archana,
First step, have you activated the userexit in CMOD? If its not activated then it wont be executed and wont stop at your break point.
Next (if already activated) did you look at the exit documentation? You can look at the component documentation in CMOD or the function module documentation in SE37, or in the relevant IMG application help.
If you are still stuck, then post the userexit function and perhaps we can shed some more light on it.
Brad
‎2005 May 25 3:28 PM
Do a where used on the user exit function module to see from where it is called. In those programs, set a breakpoint before the call to the user exit function module. Step through the code. Is your user exit being fired? If not, are you sure that you have activated it via CMOD/SMOD.
Regards,
Rich Heilman
‎2005 May 25 3:49 PM
‎2005 May 25 5:21 PM
Hi,
Make sure the calling program that has your user exit code is not called in the background.Assuming you have taken care of all the notes in the previous posts, In your user exit try to write the system variable SY-BATCH and some other import parameter values passed to your User Exit from the calling program to an ITAB and write the ITAB to your local desktop as a text file.This will tell you atleast if the user exit code is called and what values goes in if the file is written.If no file, then your user exit is not called.Hopefully you will find the file.
Thx
Gisk