‎2008 Jun 25 1:56 PM
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.
‎2008 Jun 25 1:58 PM
Hi,
I dont understand where that requirement came. Can u tell me so that we can solve.
‎2008 Jun 25 1:59 PM
‎2008 Jun 25 2:01 PM
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
‎2008 Jun 25 2:01 PM
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
‎2008 Jun 25 2:17 PM
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
‎2008 Jun 25 2:23 PM
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