Application Development and Automation 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: 
Read only

Custom t-code not working for Report program

Harsh_Jain2512
Participant
0 Likes
5,076

Hello All,

I have created a Z tcode for my Report program. When I execute the report through tcode I gets the selection-screen correctly but when I enter the data on the selection-screen to process it and press the execute button the screen navigates to the Welcome screen of SAP(which we usually sees after logging in). When I executes the program through SE38 it is working properly.

Any suggestion on this are welcome here, I am not able to catch the issue.

Regards,


1 ACCEPTED SOLUTION
Read only

nikolayevstigneev
Contributor
2,952

Hi!

Most probably you have chosen the wrong type of transaction while creating it.

I suggest you delete t-code and recreate it choosing "Program and selection screen" option. It should work correctly after that.

8 REPLIES 8
Read only

FredericGirod
Active Contributor
0 Likes
2,952

Hi,

could you give us more input ?

did you just create a program with a selection screen & start-of-selection .... end-of-selection ? 

did you play with call screen ?

regards

Fred

Read only

0 Likes
2,952


A simple report program with START-OF-SELECTION and Selection Screen.

Read only

0 Likes
2,952

So, check as Nikolay has proposed, if you have make the good choice when you create your transaction.

recreate it, it's simple and quick

regards

Fred

Read only

nikolayevstigneev
Contributor
2,953

Hi!

Most probably you have chosen the wrong type of transaction while creating it.

I suggest you delete t-code and recreate it choosing "Program and selection screen" option. It should work correctly after that.

Read only

0 Likes
2,952

Thank You!!! Very Much Respected Mr. Nikolay Evstigneev. I do as suggested by you it's really working.

Regards

Krishna Kumar Yadav.

Read only

Former Member
0 Likes
2,952

Please check whether you have selected proper option in pop up after clicking create button.

Read only

Former Member
0 Likes
2,952

Hi,

can you please check which option you selected while creating the tcode. actually we have to select Program and selection screen(report transaction) radio button and in next screen enter the screen num and authorization object also and enable all the check boxes in GUI support.

sometimes if we dont have authorization for any custome tcodes then we can not run  those tcodes, so it depends on the project. so please check all these cases.

Thanks & Regards,

Polu.

Read only

yogendra_bhaskar
Contributor
0 Likes
2,952

Hi Harsh ,

while creating the tcode you have selected the radiobutton for

program and screen ( dialog transaction )

whereas you have to select program and selection screen ( report transaction )

No problem , you can change it now

go to SE93

press shift + F1 or select Change Transaction type from EDIT menu

select the radio button of program and selection screen ( report transaction )

fill the entry for selction screen with value 1000.

Save and execute the tcode

Thanx and regards

Yogendra Bhaskar