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

Disabling the subscreens

Former Member
0 Likes
701

Hi,

I have 2 main screens ,on both the screens there is same tabstrip with one tab containing the table control.These tabstrips and the table control I have created using the wizard.While creating the tabsrips and the table control I have made both of them editable.Now I want that on the first main screen they should remain editable as they are now. But on the second main screen I want the tabstrip and the table contol to be disabled. Is it possible or I have to create a seperate tabstrip and the table control for the second screen.Any pointers would be helpful.

Hi,

I have 2 main screens ,on both the screens there is same tabstrip with one tab containing the table control.These tabstrips and the table control I have created using the wizard.While creating the tabsrips and the table control I have made both of them editable.Now I want that on the first main screen they should remain editable as they are now. But on the second main screen I want the tabstrip and the table contol to be disabled. Is it possible or I have to create a seperate tabstrip and the table control for the second screen.Any pointers would be helpful.

3 REPLIES 3
Read only

jayanthi_jayaraman
Active Contributor
0 Likes
610

Hi,

In PBO of the second main screen, try making it disabled.

loop at screen.

if screen-name = ....

screen-input = 0.

modify screen.

endif.

endloop.

Read only

Former Member
0 Likes
610

addition to jayanthi post:


loop at screen.
if screen-name = .... " give your table control name screen name 
screen-input = 0.
modify screen.
endif.
endloop.

Read only

Former Member
0 Likes
610

Hi ,

first see the tabstrips created in TOP include with below exapmle.

*&SPWIZARD: FUNCTION CODES FOR TABSTRIP 'TS1000'

CONSTANTS: BEGIN OF c_ts1000,

tab1 LIKE sy-ucomm VALUE 'TS1000_FC1',

tab2 LIKE sy-ucomm VALUE 'TS1000_FC2',

END OF c_ts1000.

write the below code...

PBO.

LOOP at SCREEN.

if sy-sy-ucomm = 'TS1000_FC1'. "First tab strip..

if screen-name = 'table control name.

screen-input = 0. "for disable

modify screen.

endif.

if sy-sy-ucomm = 'TS1000_FC2'. "second tab strip..

if screen-name = 'second table table control name.

screen-input = 0. "for disable

modify screen.

endif.

endif.

Endloop.

regards,

Prabhudas