‎2014 Jan 23 3:10 PM
Hello guys.
I need to find a way to get the Transaction's program name from the report (program) that I am developing. Is there any Function module or something like that, that returns me the programs name ?
Thank you in advance.
‎2014 Jan 23 3:42 PM
Hi Taly Taly
The name of the program is stored in system variable sy-cprog
Is that what you were looking for?
‎2014 Jan 24 7:16 AM
No that's not the answer... There is a transaction like 'ZUID' and I need something that when I put the name of the Transaction, to return me the Programs Name... and example of this is SE93 where you write the Transaction Code, and it returns information about that transation.
But I need it to do from the Code. I need a function module or someething like that, that returns me the programs name
‎2014 Jan 23 4:40 PM
your question is confusing. . still i'll try
open the transaction code you want say SE38 then click systems from menu bar and choose status. You should get all the required info there.
‎2014 Jan 24 7:17 AM
No that's not the answer... There is a transaction like 'ZUID' and I need something that when I put the name of the Transaction, to return me the Programs Name... and example of this is SE93 where you write the Transaction Code, and it returns information about that transation.
But I need it to do from the Code. I need a function module or someething like that, that returns me the programs name
‎2014 Jan 29 9:59 AM
let me understand again:
Your want to create a tcode : zuid which opens a screen with a input field in which you can enter any tcode and it should give you the tcode's program name as output?
The eg SE93 you used just gives the info when you click display if that's all you need why cant you use that itself?
‎2014 Jan 23 5:17 PM
‎2014 Jan 24 7:19 AM
Yes I did, and it is interesting. The transaction code generates an Dynamically program with the name like: G99GJA93RJO1FL1200. I found the program in SE80, but the problem is that after a while, the Transaction may generate another program, so I can't use the program name mentioned above.
I checked the TSTC table, there is the Transaction code, but the programs name is Empty!.
‎2014 Jan 24 7:20 AM
I think it is a query or something..Can you please attach a screen shot of Se93 tcode with the parameter detail also shown
Nabhbeet
‎2014 Jan 24 9:28 AM
1. You can use table TSTC to find program name based on transaction code.
2. Use SE93 Tcode.
Regards,
Koti
‎2014 Jan 29 11:27 AM
‎2014 Jan 29 11:04 AM
‎2014 Jan 29 11:36 AM
hi Taly,
You can either use TSTC table or SE80 .
Thanks
Saurabh
‎2014 Jan 29 11:52 AM
Hi Taly,
TSTC tcode contains program name and transaction code bpth. If there is no such FM then you can write youe own code that fetches the program name for you. You can do look up and get it.
I replied on the basis of what I understood from your post. Hope this helps.
Regards,
Priyanka
‎2014 Jan 29 12:10 PM
Hi taly,
Check out the FM RS_TRANSACTION_SHOW , Pass object name as se38, you will get screen with information of Transaction details.
Regards,
Ravikiran.K