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 button and Check box

Former Member
0 Kudos

In Selection screen i have a radio button and check box in a same line, but i can't able to design both in the same line. how to set this? It is appreciated someone who help me in this. Is there anything to adjust in the comment or length??

6 REPLIES 6

Former Member
0 Kudos

Hi,

Check this example..

  • Parameters

SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN COMMENT 2(10) v_text FOR FIELD p_check.

PARAMETERS: p_check AS CHECKBOX.

SELECTION-SCREEN COMMENT 16(20) v_text1 FOR FIELD p_radio.

PARAMETERS: p_radio RADIOBUTTON GROUP g1.

SELECTION-SCREEN END OF LINE.

SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN COMMENT 16(20) v_text2 FOR FIELD p_radio1.

PARAMETERS: p_radio1 RADIOBUTTON GROUP g1.

SELECTION-SCREEN END OF LINE.

INITIALIZATION.

v_text = 'Checkbox'.

v_text1 = 'Radio Button'.

v_text2 = 'Radio Button'.

Thanks,

Naren

0 Kudos

Hi,

Actually i getting the output wrongly.... I need the radio button and then followed the text.... which has a length of 35 and then a check box followed the text of length 30. but the text is coming improperly... help me out...

Former Member
0 Kudos

You have to use BEGIN OF LINE and END OF LINE. If you are getting an error generating the selection screen, then your position and text lengths are wrong. Adjust them by counting the length your texts are taking. Basically you get the error when you are overlapping.

Former Member
0 Kudos
REPORT ychatest.

SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS : r1 RADIOBUTTON GROUP rad.
SELECTION-SCREEN : COMMENT 5(35) v_rad FOR FIELD r1.
PARAMETERS : c1 AS CHECKBOX.
SELECTION-SCREEN : COMMENT 51(30) v_chk FOR FIELD c1.
SELECTION-SCREEN END OF LINE.

SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS : r2 RADIOBUTTON GROUP rad.
SELECTION-SCREEN END OF LINE.

INITIALIZATION.
  v_rad = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'.
  v_chk = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxx'.

0 Kudos

My selection screen window is big... how to increase that one...??

Former Member
0 Kudos

Hi,

use selection-screen begin of line. you can put checkbox and radio button in the same line.

regards,

bhaskar