12-09-2009 9:26 AM
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
12-09-2009 9:29 AM
Hello,
Check if the system field SY-CPROG holds the program name of the called program of transaction
Vikranth
12-09-2009 9:34 AM
Sy-cprog is having newly called program. I need the program, which called the new program
12-09-2009 9:37 AM
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
12-09-2009 9:59 AM
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
12-09-2009 10:04 AM
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
12-09-2009 10:11 AM
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