Skip to Content
Jan 17, 2006 at 09:05 AM

How do I get the calling program?



I have been using a function module for a long time which is called by quite a number of programs. Now I want it to react differently dependent on the calling program.

I could use a new optional parameter of course transferring the program id. In that case I have to change quite a number of programs.

I was just wondering if there is a possibility to get the information of the calling program on the fly. (In the debugger you can find your calling program easily in the 'call stacks'). Does anyone know how to retrieve this information?

Thanks in advance.

Regards Johannes