Application Development 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: 

Find which report invoke my module pool program

Former Member
0 Kudos

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

5 REPLIES 5

Lakshmant1
Active Contributor
0 Kudos

Hi Florian,

check TSTC table.

Thanks

Lakshman

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

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