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

User Exits

Former Member
0 Likes
883

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
771

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

6 REPLIES 6
Read only

Former Member
0 Likes
772

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

Read only

Former Member
0 Likes
771

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 ?

Read only

0 Likes
771

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

Read only

0 Likes
771

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

Read only

0 Likes
771

FYI - The following thread will help you find the enhancement in CMOD (for your function):

Brad

Read only

0 Likes
771

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