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

Checkboxes

Former Member
0 Likes
380

Hy !

I have two checkboxes defined ad parameters in a selection screen.

I want one of them to be clear when the other is checked.

I tried

IF NOT sb_kks IS INITIAL.

sb_wks = ' '.

ENDIF.

Not working :(.

Suggestions>?

Thank you.

1 ACCEPTED SOLUTION
Read only

uwe_schieferstein
Active Contributor
0 Likes
354

Hello Anda

If the two options are mutually exclusive then define them as <b>radiobuttons</b> instead of checkboxes.

PARAMETERS:
  p_kks   RADIOBUTTON GROUP radi  DEFAULT 'X',
  p_wks  RADIOBUTTON GROUP radi.

Regards

Uwe

2 REPLIES 2
Read only

uwe_schieferstein
Active Contributor
0 Likes
355

Hello Anda

If the two options are mutually exclusive then define them as <b>radiobuttons</b> instead of checkboxes.

PARAMETERS:
  p_kks   RADIOBUTTON GROUP radi  DEFAULT 'X',
  p_wks  RADIOBUTTON GROUP radi.

Regards

Uwe

Read only

Former Member
0 Likes
354

Hi Anda,

Try this code. It will work.

parameters: chk1 as checkbox user-command chk1,

chk2 as checkbox user-command chk2.

at selection-screen.

case sscr-ucomm

when 'CHK1'.

chk1 = 'X'.

chk2 = ' '.

when 'CHK2'.

chk1 = ' '.

chk2 = 'X'.

endcase.