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

A question about screen control

Former Member
0 Likes
609

Hello expert,

In my selection screen. one checkbox CB_A. another two radio button RB_B, RB_C which are in the same group.

My requirement is :

When CB_A is marked, the RB_C should be selected automatically. What event shall I use?

Thanks in advance,

Regards, Johnny.

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
581

FIrst - check box must trigger PAI, so add a USER-COMMAND 'ZZZ' to the parameter :

PARAMETERS: CB_A AS CHECKBOX USER-COMMAND CBA. 

Then in PAI, set radiobuttion on, if user press the box

AT SELECTION-SCREEN
  IF sscrfields-ucomm EQ 'ZZZ' AND CB_A = 'X'.
    RB_C = 'X'.
    RB_B = ' '.
  ENDIF.

Regards,

Raymond

5 REPLIES 5
Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
581

At selection screen .

Check the value for CB_A and based on this chose the radio button RB_C.

Read only

Former Member
0 Likes
581

Hi Johny,

You can use the AT SELECTION-SCREEN event. But you should enable the user command for the check box


PARAMETERS: CB_A AS CHECKBOX USER-COMMAND CBA.

Then in the AT SELECTION-SCREEN you can change the Radio button as X.


AT SELECTION-SCREEN.

IF CB_A EQ 'X'.
  RB_C = 'X'.
ELSE.
  RB_C = SPACE.
ENDIF.

Regards,

Immanuel.

Read only

0 Likes
581

>

> Hi Johny,

>

> You can use the AT SELECTION-SCREEN OUTPUT event. But you should enable the user command for the check box

>

>


> PARAMETERS: CB_A AS CHECKBOX USER-COMMAND CBA.
> 

>

> Then in the AT SELECTION-SCREEN OUTPUT you can change the Radio button as X.

>

> Regards,

> Immanuel.

That's usable. But: if you try to activate radio button 1 , it keeps changing to radio button 2. Not sure if that's what you want though.

Read only

0 Likes
581

Hi Maen,

Yes. I realized that after pressing the POST button and changed later :).

Hope this will work fine.

Regards,

Immanuel.

Read only

RaymondGiuseppi
Active Contributor
0 Likes
582

FIrst - check box must trigger PAI, so add a USER-COMMAND 'ZZZ' to the parameter :

PARAMETERS: CB_A AS CHECKBOX USER-COMMAND CBA. 

Then in PAI, set radiobuttion on, if user press the box

AT SELECTION-SCREEN
  IF sscrfields-ucomm EQ 'ZZZ' AND CB_A = 'X'.
    RB_C = 'X'.
    RB_B = ' '.
  ENDIF.

Regards,

Raymond