10-09-2008 10:19 AM
Hello,
how is it possible to detect who is calling a function module?
Thanks a lot,
Tanguy Mezzano
10-09-2008 10:21 AM
In case you mean the calling program, that is in SY-CPROG. Function SYSTEM_CALLSTACK gives you the complete call stack.
Thomas
10-09-2008 10:20 AM
10-09-2008 10:21 AM
In case you mean the calling program, that is in SY-CPROG. Function SYSTEM_CALLSTACK gives you the complete call stack.
Thomas
10-09-2008 10:25 AM
Hi, May i know why you need the caller name. If suppose you want to know currently who is executing the function. then you can check the sy-uname inside the calling program or function module that will have. If you want to know from another program then you need to pass some parameter id in side the function module and check your second program for the parameter id having any value.
Thanks.
Regards,
Jey
10-16-2008 2:30 PM
Thanks Thomas!
Function SYSTEM_CALLSTACK made the trick.
Regards,
Tanguy Mezzano