‎2006 Aug 25 4:50 AM
Hi,
How to make the block in the selection-screen by default as greyed.
‎2006 Aug 25 4:54 AM
hi,
Try this code, this makes the block by default gray.
selection-screen begin of block b1 WITH FRAME TITLE TEXT-001.
parameters : p_matnr like mara-matnr modif id ABC,
p_ersda like mara-ersda modif id ABC.
selection-screen end of block b1.
At selection-screen output.
loop at screen.
if screen-group1 = 'ABC'.
screen-input = 0.
modify screen.
endif.
endloop.
Regards,
Sailaja.
Message was edited by: Sailaja N.L.
‎2006 Aug 25 4:54 AM
hi,
Try this code, this makes the block by default gray.
selection-screen begin of block b1 WITH FRAME TITLE TEXT-001.
parameters : p_matnr like mara-matnr modif id ABC,
p_ersda like mara-ersda modif id ABC.
selection-screen end of block b1.
At selection-screen output.
loop at screen.
if screen-group1 = 'ABC'.
screen-input = 0.
modify screen.
endif.
endloop.
Regards,
Sailaja.
Message was edited by: Sailaja N.L.
‎2006 Aug 25 5:06 AM
hi,
at selection screen output.
loop at screen.
if screen-name = 'p_matnr'.
screen-input = 0.
modify screen.
endif.
endloop.
hope this helps,
do reward if it helps,
priya.
‎2006 Aug 25 5:34 AM
Hi sailaja,
wats the need of providing screen-input = 0.
As we r not providing any input value on the screen.
Whenever we F8 our source by default it must b default.
‎2006 Aug 25 5:37 AM
screen-input = 0 will not allow to enter any input ,
in ur program u can default ur values for those fields
can u clarify ur requirement a bit more??
‎2006 Aug 25 5:40 AM
hi,
Screen-input = 0. doesn't mean that we are specifying that user has not given or not.
We set the <b>input</b> property of the field on the screen. If we make screen-input = 0, the field willnot be open for input. i.e. it becomes gray.
if we make screen-active = 0. Then the field doesnt get displayed in the screen at all.
In this way, we can set properties to the parameters on teh selectionscreen.
Regards,
Sailaja.