09-24-2008 5:23 AM
hi everyone,
I have a problem of finding which report calling my module pool program.
I have one module pool program and 5 reports. In all 5 reports i use
call transaction to fill up the screen values of that module pool program.
Now i have to change screen output depending upon the each report.
So i have to find out which report call my module pool program
Is there any possiblity to find out??? my client will not allow to use
SAP memory or ABAP memory.
Thanks in advance,
Florian
09-24-2008 5:26 AM
09-24-2008 5:31 AM
Hi
Pls check the SY-CPROG value in the debugging, if you are not getting the right value.
Than you can you use memory ID's.
Regards
MD
09-24-2008 5:33 AM
Hi,
Check this system field. This is for procedures
sy-cprog - In procedures called externally, the name of the calling program, Otherwise the name of the current program. If a procedure called externally calls another external procedure, sy-cprog contains the name of the framework program, and is not set to the name of the framework program of the subsequent calling program.
may be this works.
09-24-2008 5:50 AM
hi,
i tried sy-cprog is giving my module pool program name in debugging.
my question is "HOW TO FIND THE CALLING PROGRAM NAME
IN CALLED PROGRAM" ??
Regards,
Florian
09-25-2008 4:56 AM
Finally I found with some negotiations with my client and used the following code I fixed up,
DATA: para TYPE tpara-paramid VALUE 'RID',
prog TYPE sy-repid.
GET PARAMETER ID para FIELD prog.
Using this code I found the name of the code which program using my module pool program.
Thanks & Regards,
Florian