‎2009 Nov 20 6:56 AM
Hi ,
I have two block on sclections screen. In one block , one check box & on second block, there are 3 check box.
When I click on check box of 1st block, all the checkbox of 2nd block should be unchecked & use should not be check these, but these sud be on screen.
How can i do that? with the use of loop at screen if yes then please tell me what screen field i will be change?
Thanks in advance..
‎2009 Nov 20 7:03 AM
Hi,
Code in AT SELECTION SCREEN OUTPUT event.
Use screen-input = 0 for greying the checkbox.
You can find loads of examples on the SDN
‎2009 Nov 20 7:03 AM
Hi,
Code in AT SELECTION SCREEN OUTPUT event.
Use screen-input = 0 for greying the checkbox.
You can find loads of examples on the SDN
‎2009 Nov 20 7:07 AM
selection-screen BEGIN OF block b1.
parameters:p_ch1 as checkbox user-command UC default 'X'.
selection-screen end OF block b1.
selection-screen BEGIN OF block b2.
parameters:p_ch2 as checkbox.
parameters:p_ch3 as checkbox.
selection-screen end OF block b2.
at selection-screen output.
loop at screen.
if screen-name = 'P_CH2' or screen-name = 'P_CH3'.
screen-input = 0.
MODIFY SCREEN.
endif.
endloop.
if p_ch1 = ' '.
p_ch2 = p_ch3 = 'X'.
else.
p_ch2 = p_ch3 = ' '.
endif.
‎2009 Nov 20 7:10 AM
Thanks all of you . I also doing same but in at selection on field..Thanks again for your reply..
‎2009 Nov 20 7:13 AM
You can do this on the event : AT SELECTION SCREEN OUTPUT.
loop at screen.
IF R1 = 'X'.
if screen-field = 'R2'.
SCREEN-INPUT = ' '.
R2 = ' '.
ENDIF.
if screen-field = 'R3'.
SCREEN-INPUT = ' '.
R3 = ' '.
ENDIF.
if screen-field = 'R4'.
SCREEN-INPUT = ' '.
R4 = ' '.
ENDIF.
MODIFY SCREEN.
ENDIF.
endloop.