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: 

Disabling the subscreens

Former Member
0 Kudos

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

jayanthi_jayaraman
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

addition to jayanthi post:


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

Former Member
0 Kudos

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