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 s/o

Former Member
0 Likes
866

hi

i need to design a sel.screen in such a way that..

there has to be 3input boxes .

when i enter the first one and say enter the other two have to be disabled.

can anyone tell me if u hv already designed in this way.

6 REPLIES 6
Read only

Former Member
0 Likes
851

Hi,

I dont understand where that requirement came. Can u tell me so that we can solve.

Read only

Former Member
0 Likes
851

Ravi,

Use at selection screen out-put event.

refer:

Amit.

Read only

peter_ruiz2
Active Contributor
0 Likes
851

hi,

parameters:

p_1 as checkbox user-command CB1,

p_2 as checkbox user-command CB2.

at selection-screen output.

if p_1 eq 'X'.

loop at screen.

if screen-name eq 'P_2'.

screen-input = 0.

modify screen.

endif.

endloop.

endif.

regards,

Peter

Read only

peter_ruiz2
Active Contributor
0 Likes
851

hi,

parameters:

p_1 as checkbox user-command CB1,

p_2 as checkbox user-command CB2.

at selection-screen output.

if p_1 eq 'X'.

loop at screen.

if screen-name eq 'P_2'.

screen-input = 0.

modify screen.

endif.

endloop.

endif.

regards,

Peter

Read only

prasanth_kasturi
Active Contributor
0 Likes
851

hi,

check this code

Enter some value on the field and press enter

parameters : f1 MODIF ID mf1,

f2 MODIF ID mf2,

f3 modif id mf3.

At SELECTION-SCREEN OUTPUT .

if not f1 is initial .

loop at screen .

if screen-group1 = 'MF2' OR screen-group1 = 'MF3'.

screen-input = 0.

modify SCREEN.

endif.

endloop.

ENDIF.

if not f2 is initial .

loop at screen .

if screen-group1 = 'MF1' OR screen-group1 = 'MF3'.

screen-input = 0.

modify SCREEN.

endif.

endloop.

ENDIF.

if not f3 is initial .

loop at screen .

if screen-group1 = 'MF2' OR screen-group1 = 'MF1'.

screen-input = 0.

modify SCREEN.

endif.

endloop.

ENDIF.

regards

prasanth

Read only

Former Member
0 Likes
851

Hello,

You would want to use an AT SELECTION-SCREEN OUTPUT.

After this you would check if the values of the parameters are initial. If it isnt then disable the other fields, see source code below.

CONSTANTS:

c_mod_group1 TYPE c VALUE 'A', " screen group constants

c_mod_group2 TYPE c VALUE 'B', " screen group constants

c_mod_group3 type c VALUE 'C'

c_hide TYPE c VALUE '0', " screen group constants

c_show TYPE c VALUE '1',. "screen group constants

Paramters: p_val1 type c MODIF ID A,

p_val2 type c MODIF ID B,

p_val3 type c MODIF ID C.

AT Selection-Screen Output.

If p_val1 NE initial.

Loop at screen.

Case screen-group1.

When c_mod_group1.

screen-active = c_show.

Modify Screen..

Endcase

Case Screen-group1.

when c_mod_group2.

screen-active = c_hide.

modify screen.

endcase.

case screen-group1.

when c_mod_group3.

screen-active = c_hide.

modify screen.

endcase.

Endloop.

Elseif. p_val2....... etc etc

Hope this helps a bit.

Regards,

C