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

radiobuttons

Former Member
0 Likes
701

if there are 2 radiobuttons ...if i select one radiobutton(first one) ,the second one should be in disable mode and if i select second radiobutton, the first one should be in disable mode?

how to do that?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
676

You can group them in the same group within a frame if needed

Parameters: View radiobutton group g1,

Enter radiobutton group g1.

You can even assign one of them as default using Default 'X'

if none is defines first in the group is selected.

You can group them in the same group within a frame if needed

Parameters: View radiobutton group g1,

Enter radiobutton group g1.

You can even assign one of them as default using Default 'X'

if none is defines first in the group is selected.

5 REPLIES 5
Read only

rahulkavuri
Active Contributor
0 Likes
676

hi u shud be declaring it in one group, here the parameters are of same group G1

<b>PARAMETERS: BUY RADIOBUTTON GROUP G1.</b>

<b>PARAMETERS: SELL RADIOBUTTON GROUP G1.</b>

Please mark the helpful answers using the radio buttons on ur left and close the thread

Read only

Former Member
0 Likes
676

Hi

Group the parameters declared as radiobutton.

PARAMETERS: p1 RADIOBUTTON GROUP radi,

p2 RADIOBUTTON GROUP radi.

Regards,

Navneet

Read only

Former Member
0 Likes
677

You can group them in the same group within a frame if needed

Parameters: View radiobutton group g1,

Enter radiobutton group g1.

You can even assign one of them as default using Default 'X'

if none is defines first in the group is selected.

Read only

0 Likes
676

hi,

assign radio buttons to same group...

sample code:

SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-003.

SELECTION-SCREEN BEGIN OF LINE.

PARAMETERS: r3 RADIOBUTTON GROUP g2 USER-COMMAND ug2 .

SELECTION-SCREEN COMMENT 5(20) text-006 FOR FIELD r3.

SELECTION-SCREEN END OF LINE.

SELECTION-SCREEN BEGIN OF LINE.

PARAMETERS: r4 RADIOBUTTON GROUP g2 .

SELECTION-SCREEN COMMENT 5(20) text-007 FOR FIELD r4.

SELECTION-SCREEN END OF LINE.

SELECTION-SCREEN END OF BLOCK b3.

Regards

Read only

Former Member
0 Likes
676

Hi,

Check the following...code...

PARAMETERS: B1 RADIOBUTTON GROUP SC1 user-command us1.

PARAMETERS: B2 RADIOBUTTON GROUP SC1.

in the AT SELECTION-SCREEN OUTPUT.

if b1 = 'x'.

loop at screen.

if screen-name = 'B2'.

screen-active = 0.

screen-output =0.

modify screen.

ENDIF.

endloop.

else.

loop at screen.

if screen-name = 'B1'.

screen-active = 0.

screen-output =0.

modify screen.

ENDIF.

endloop.

endif.

Regards,

Var