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 Screen

Former Member
0 Likes
661

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
631

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

4 REPLIES 4
Read only

Former Member
0 Likes
632

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

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
631

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.

Read only

0 Likes
631

Thanks all of you . I also doing same but in at selection on field..Thanks again for your reply..

Read only

Former Member
0 Likes
631

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.