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

Selection-Block By default grey

Former Member
0 Likes
598

Hi,

How to make the block in the selection-screen by default as greyed.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
560

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.

5 REPLIES 5
Read only

Former Member
0 Likes
561

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.

Read only

Former Member
0 Likes
560

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.

Read only

Former Member
0 Likes
560

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.

Read only

0 Likes
560

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??

Read only

Former Member
0 Likes
560

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.