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: 

How to find called T-code/Program of another T-code/Program

Former Member
0 Kudos

Hi Experts,

Transaction 1 calls Transaction 2. I need to know, which transaction called transaction 2, being in transaction 2. How?

i.e., Can I find the program which called the current program which is running?? Is there any function module to find out??

Thanks and regards,

Venkat

6 REPLIES 6

Former Member
0 Kudos

Hello,

Check if the system field SY-CPROG holds the program name of the called program of transaction

Vikranth

0 Kudos

Sy-cprog is having newly called program. I need the program, which called the new program

0 Kudos

Hello,

What about SY-TCODE? Does it hold the called or the calling transaction name?

If both the programs are custom, then may be you can try to implement some innovative solution. But for std. codes i have some reservations

BR,

Suhas

0 Kudos

Sy-tcode has the called new t-code only.

Calling program is a standard program where I don't find any user exit also. I cannot export anything from there.

newly called program is a custom program. There only I want to take the invoking t-code/ program

Edited by: VENKAT RAMAN on Dec 9, 2009 3:29 PM

0 Kudos

Hello,

I dont get the picture clearly. Your custom code is calling a standard code, and you want to know which program is calling the standard code?

I think you need to explain the req. more clearly.

BR,

Suhas

0 Kudos

Standard program is calling custom program and I want to know the standard program.

I created a menu item in help menu of sap screen. So, that Item will come, wherever you are( all SAP sessions ).

I want to give help info based on the t-code in which my new menu item was clicked.

So, I created a new menu item in standard pf-status, which will call my custom program.

In that pf-status I have set the function type as transaction code and it calls the custom transaction code as I require.

Now in my custom transaction code's program, I need to check, from which standard transaction I clicked the new menu item.

I think now you will be able to catch my requirement.

Edited by: VENKAT RAMAN on Dec 9, 2009 3:41 PM

Edited by: VENKAT RAMAN on Dec 9, 2009 3:42 PM