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

problem with Z T-code

Former Member
0 Likes
1,050

Dear all,

I am facing a strange problem with T-Code. I created a Z t-code with a selection screen of the z program.

when I run the t-Code it displays the selection screen and when I execute it, It takes me out of the program. when i run thru tcode the program runs fine.

Please help.

6 REPLIES 6
Read only

Former Member
0 Likes
967

Hi

Are you sure to have to have choosen the right type of trx?

You have to choose "Program and Selection Screen (report transaction)" option while creating trx

Max

Read only

Former Member
0 Likes
967

hi Amit,

While assigning the T-Code to your report program select the second radio button i.e, <b>Program and Selection Screen ( Report Transaction )</b> ... doing so it works.. you might have done a mistake in doing the same

Regards,

Santosh

Message was edited by: Santosh Kumar P

Read only

Former Member
0 Likes
967

Yes Max.

It is calling the right program with right screen. But kicks me out once i press execute.

Read only

0 Likes
967

Hi

<u>Try to create it again</u>, I didn't say you have assign the wrong program and/or screen, but perhaps you've choosen the wrong trx type (in START OBJECT section while creating trx by SE93):

You have to choose "<b>Program and Selection Screen (report transaction)"</b>

I had a problem as yours because I've setted the wrong trx type.

If the problem is not on trx, it has to be in abap code...

Max

Read only

Former Member
0 Likes
967

Hi,

There is problem while creating the Transaction code. Delete your transaction code and re create it by going to SE93.

1.Give the Tcode name and description and

2. select the second radiotton for report transactions.

3. select the check boxes for GUI support and save .

Hopefully this should resolve your problem.

Read only

Former Member
0 Likes
967

Hi Amit,

Im not sure but you can try this way.

Create transaction code using type 'Paramater transaction'.

Check Transaction box and give transaction code 'START_REPROT'. Also check 'skip intial screen'.

In the default values for Name of the screen field and value:

give name of the screen field as '<b>D_SREPOVARI-REPORT</b>' (u can use F4 to see it) and the Value as '<b>ur ZPROGRAM NAME</b>'.

Save it and then execute the tcode. It will run.

Cheers,

Vikram

Pls reward for helpful replies!!