Application Development and Automation 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: 
Read only

knowing which transaction the program has been called

Former Member
0 Likes
1,316

Hi all,

I have a module pool which could be called from some other program. Is there any system variable that helps in knowing the transaction where it is started from???

The sy-repid and sy-tcode only helps in knowing the current transaction, but i want to know where it started from or where it is called from?

Thanks,

madhu

Hi all,

I have a module pool which could be called from some other program. Is there any system variable that helps in knowing the transaction where it is started from???

The sy-repid and sy-tcode only helps in knowing the current transaction, but i want to know where it started from or where it is called from?

Thanks,

madhu

7 REPLIES 7
Read only

Former Member
0 Likes
1,054

Hi

<b>SY-CPROG</b> - ABAP program, caller in external procedures

Regards,

Raj

Read only

Former Member
0 Likes
1,054

Check sy-CPROG ABAP program, caller in external procedures.

If it doesn't work, then use set parameter and get parameter statement to mimic the same.

Regards,

Ravi

Read only

Former Member
0 Likes
1,054

Hi

U should transfer the name of calling program in ABAP MEMORY by IMPORT/EXPORT PARAMETERS stataments

Max

Read only

Former Member
0 Likes
1,054

Check the <u><b>sy-cprog</b></u> field it gives the calling pgm name.

Message was edited by: Anurag Bankley

Read only

Former Member
0 Likes
1,054

you can try out like this.

in the program(your Module pool program ) display/change screen,

choose WHERE USED LIST button and select PROGRAMS on the coming screen-> here you will get the list of programs using this module pool program.

Regards

srikanth

Read only

Former Member
0 Likes
1,054

Hi,

use sy-tcode.

Regards

Amole

Read only

Former Member
0 Likes
1,054

Hi,

use import export parameters to know

histrory of transaction calls

export to memory id 'ZTCODE' field sy-tcode

import from memory id 'ZTCODE' field sy-tcode

regards

Amole