‎2010 Jul 05 7:47 AM
Hi!
By example: I'm in the transaction ZA and I call to transaction ZB.
How could I know in transaction ZB that I came from ZA?
Thanks in advance!
‎2010 Jul 05 10:57 AM
Check the system variable SY-CPROG. It contains the name of the calling program.
If both the trxns are custom, then you can EXPORT some flag in the calling tcode & in the called tcode IMPORT & check the flag.
Edited by: Suhas Saha on Jul 5, 2010 3:28 PM
‎2010 Jul 05 10:24 AM
Hi marco,
the program name always remain same from which u start.
‎2010 Jul 05 10:48 AM
The sy-cprog has the actual report, not the first Any idea? Thanks!
‎2010 Jul 05 10:51 AM
HI
You can use the table TCDCOUPLES for finding relation between all the called tcodes and calling tcodes.
Are you looking to get the Tcodes at runtime?
Cheers
Ajay
‎2010 Jul 05 10:57 AM
Check the system variable SY-CPROG. It contains the name of the calling program.
If both the trxns are custom, then you can EXPORT some flag in the calling tcode & in the called tcode IMPORT & check the flag.
Edited by: Suhas Saha on Jul 5, 2010 3:28 PM
‎2010 Jul 05 1:13 PM
Hi,
I assume that the father transaction may not more than 3 like Z1,Z2 and Z3.. If any of these transaction call ZB means there should be some difference in the transaction ZB..(May be in field wise.) For Eg.. If Z1 call the ZB, you are getting one filed as 1, and Z2 to ZB means that fields is 2 etc....
From that field you can write some switch or if statement to find the parent transaction.....
If the screen ZB is always same for all three transaction calls, then you have to pass some flag from parent to ZB for the identification.
Thanks and Regards,
Senthil Kumar Anantham.
‎2010 Jul 05 1:58 PM