04-18-2007 11:21 PM
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??
04-18-2007 11:27 PM
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
04-19-2007 3:27 PM
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...
04-19-2007 12:47 AM
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.
04-19-2007 3:37 PM
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'.
04-19-2007 4:13 PM
My selection screen window is big... how to increase that one...??
04-19-2007 4:36 PM
Hi,
use selection-screen begin of line. you can put checkbox and radio button in the same line.
regards,
bhaskar