Application Development 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: 

Radio buttons on selection screen

Former Member
0 Kudos

Hi,

I need to display 4 radio buttons on selection screen in a separate block, one below the another. What is the correct coding for that?

Regards,

Ezhil.

7 REPLIES 7

Former Member
0 Kudos

HI,

You cannot have the Radio Buttons with same Group in different Blocks.

If you want the radio buttons in the different block the the radio button group should be different in each block.


" Correct 
SELECTION-SCREEN: BEGIN OF BLOCK b1 WITH FRAME TITLE text-001 .
PARAMETERS : p_rad1 TYPE C RADIOBUTTON GROUP gr1.
PARAMETERS : p_rad2 TYPE C RADIOBUTTON GROUP gr1.
PARAMETERS : p_rad3 TYPE C RADIOBUTTON GROUP gr1.
PARAMETERS : p_rad4 TYPE C RADIOBUTTON GROUP gr1.
SELECTION-SCREEN: END OF BLOCK b1.


" Gives you the error message
SELECTION-SCREEN: BEGIN OF BLOCK b1 WITH FRAME TITLE text-001 .
PARAMETERS : p_rad1 TYPE C RADIOBUTTON GROUP gr1.
PARAMETERS : p_rad2 TYPE C RADIOBUTTON GROUP gr1.
SELECTION-SCREEN: END OF BLOCK b1.

SELECTION-SCREEN: BEGIN OF BLOCK b2 WITH FRAME TITLE text-001 .
PARAMETERS : p_rad3 TYPE C RADIOBUTTON GROUP gr1.
PARAMETERS : p_rad4 TYPE C RADIOBUTTON GROUP gr1.
SELECTION-SCREEN: END OF BLOCK b2.

Former Member
0 Kudos

Hello,

Here is your code.



SELECTION-SCREEN: BEGIN OF BLOCK b1 WITH FRAME TITLE text-001 . 

PARAMETERS: r1 RADIOBUTTON GROUP rb1 DEFAULT 'X' ,
            r2 RADIOBUTTON GROUP rb1,
            r3 RADIOBUTTON GROUP rb1,
            r4 RADIOBUTTON GROUP rb1.

SELECTION-SCREEN: END OF BLOCK b1.


Regards

Arindam

Former Member
0 Kudos

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

PARAMETERS: p_prnt RADIOBUTTON GROUP g1 DEFAULT 'X' ,

p_spsh RADIOBUTTON GROUP g1

end of block b3.

similarily use two more radio buttons.

revert back in any issues.

help us to help you, Manas

gautam_totekar
Active Participant
0 Kudos

SELECTION-SCREEN BEGIN OF BLOCK blk1 WITH FRAME.

PARAMETERS : pa RADIOBUTTON GROUP rad ,

pb RADIOBUTTON GROUP rad .

SELECTION-SCREEN end of BLOCK blk1.

Former Member
0 Kudos

Thank you very much.

Former Member
0 Kudos

Hope your issue is resolved..

Do the needful and close the thread please.

Manas

UdayS
Participant
0 Kudos

Hi,

Were you able to display the Radio Buttons of the same group in different blocks..?

None of the answers seems working..

If you found the way of using that plz post it over here..

Good Day,

Thanks & Regards,

Uday S.