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

How to disable the selection screen element?

Former Member
0 Likes
625

Hello Colleague,

I have a report which has a checkbox in the selection screen. Currently I need to create two transaction codes for the report. When Tcode1 is executed, the program will execute in normal way. When Tcode2 is executed, the checkbox should be selected and greyed (not ready to input).

To implement the requirement, I think I should control the screen in the INITIALIZATION event according to the SY-TCODE. But when I tried to use LOOP AT SCREEN, I find SCREEN is empty.

I search a lot of threads. They all introduce the selection control after screen is displayed.

Can any expert help me on the problem?

Thansk & Regards, Yongbo.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
576

I think you can use Screen Variants T.Code SHD0.

Hello Colleague,

I have a report which has a checkbox in the selection screen. Currently I need to create two transaction codes for the report. When Tcode1 is executed, the program will execute in normal way. When Tcode2 is executed, the checkbox should be selected and greyed (not ready to input).

To implement the requirement, I think I should control the screen in the INITIALIZATION event according to the SY-TCODE. But when I tried to use LOOP AT SCREEN, I find SCREEN is empty.

I search a lot of threads. They all introduce the selection control after screen is displayed.

Can any expert help me on the problem?

Thansk & Regards, Yongbo.

3 REPLIES 3
Read only

Former Member
0 Likes
577

I think you can use Screen Variants T.Code SHD0.

Read only

Former Member
0 Likes
576

I find the solution by myself. Thanks

Read only

0 Likes
576

please post the solution here.