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: 

To Get the background called report code from a transaction!

devendra14
Discoverer
0 Kudos

Hi all

How to achieve the following :

When I enter a transaction code, it should show me the codes of the report it is calling, it should skip the selection screen if there is any.

... we can see code of report through system>status>program but I want to achieve above scenario through coding

Thank you in Advance

1 ACCEPTED SOLUTION

tamitdassharma
Active Participant
0 Kudos

Hello Devendra,

You can write a custom program with a parameter to take the t-code as an input and then you can fetch the program name from the table TSTC using the t-code entered as the parameter. Then call the function module 'EDITOR_PROGRAM' from the custom report by passing the fetched report name to the importing parameter program and also set the importing parameter display as abap_true.

This will help you achieve the required functionality.

Let me know if this solution was the one that you were looking for.

5 REPLIES 5

devendra14
Discoverer
0 Kudos

Kindly Help

ArthurParisius
Contributor
0 Kudos

Why don't just use the system field like sy-repid?

tamitdassharma
Active Participant
0 Kudos

Hello Devendra,

You can write a custom program with a parameter to take the t-code as an input and then you can fetch the program name from the table TSTC using the t-code entered as the parameter. Then call the function module 'EDITOR_PROGRAM' from the custom report by passing the fetched report name to the importing parameter program and also set the importing parameter display as abap_true.

This will help you achieve the required functionality.

Let me know if this solution was the one that you were looking for.

0 Kudos

Thank You A lot Tamit, It Worked... thank you for your effort 🙂

You’re most welcome Devendra. I am glad the solution provided was of use to you.