04-29-2009 12:09 PM
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.
04-29-2009 12:25 PM
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.
04-29-2009 3:25 PM
addition to jayanthi post:
loop at screen.
if screen-name = .... " give your table control name screen name
screen-input = 0.
modify screen.
endif.
endloop.
04-29-2009 3:34 PM
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