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: 

Getting the main program or tcode from child tcode

Former Member
0 Kudos

Hi

I execute a tcode1 . And while in that tcode1, I select the sub menu in the help menu. This sub menu is a custom one with a tcode2. Tcode2 calls a program. I would like to get tcode1 when I am in this progam. Somehow i get only Tcode2. Is there a way to get tcode1 which is the main tcode ?

Thanks

Bindu

1 REPLY 1

former_member156446
Active Contributor
0 Kudos

SY-CPROG

The name of the calling program in an external routine, otherwise the name of the current program.

based on that you can hit TSTC table and get the transaction code for that program... "some includes does not have T codes!"