Skip to Content
author's profile photo Former Member
Former Member

Find original calling program or transaction...


I want to keep a User-exit from running when it is ran from LT23, but I want it to work from LT11. The problem is when the function to confirm the TO is executed in LT23, it does a call transaction to LT11.

So, in the user-exit SY-TCODE has LT11 in it.

I have tried using SYSTEM_CALLSTACK and the first program in there is the initiating program for LT11, SAPML03T.

So, does anyone know a way to be able to find that either LT23 or the program RLLT2300, was the calling program for the CALL Transaction to LT11?

Any help would be greatly appreciated.



Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Oct 13, 2005 at 09:19 PM

    Interesting. The only way that I can think of off the top of my head is to have a "Z" version of LT23 and hence a "Z" version of the program behind it. Just before calling the transaction LT11, set some flag in a memeory id using the EXPORT statement. Then in the user exit, IMPORT that flag, if the value is set, then exit out of the user exit.

    In the "Z" version of LT23.

    data: flag(1) type c.
    flag = 'X'.

    In the user exit function module.

    if flag = 'X'.

    Probably not the best way, but can't think of anything else right now.

    Welcome to SDN. Please remember to award points for any helpful answers that you might receive. Thanks.


    Rich Heilman

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.