‎2006 Jul 06 2:56 PM
Hi,
In Radio button group
first a tab space followed by the radio button symbol and then its name. Then next line same as above.
kindly guide me.
‎2006 Jul 06 3:01 PM
Try this.
report zrich_0001 .
selection-screen begin of line.
selection-screen position 10.
parameters: p_rad1 radiobutton group grp1 default 'X'.
selection-screen position 33.
selection-screen comment (20) text1.
selection-screen end of line.
selection-screen begin of line.
selection-screen position 10.
parameters: p_rad2 radiobutton group grp1 .
selection-screen position 33.
selection-screen comment (20) text2.
selection-screen end of line.
initialization.
text1 = 'Here text rad1'.
text2 = 'Here text rad2'.
Regards,
Rich Heilman
‎2006 Jul 06 2:57 PM
hi,
use commands :
-selection-screen begin of line / end of line
-selection-screen comment
example:
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(31) TEXT-HWA.
PARAMETERS : HW RADIOBUTTON GROUP WAER.
SELECTION-SCREEN COMMENT 36(21) TEXT-KWA.
PARAMETERS KW RADIOBUTTON GROUP WAER DEFAULT 'X'.
SELECTION-SCREEN END OF LINE.
A.
Message was edited by: Andreas Mann
‎2006 Jul 06 3:01 PM
Try this.
report zrich_0001 .
selection-screen begin of line.
selection-screen position 10.
parameters: p_rad1 radiobutton group grp1 default 'X'.
selection-screen position 33.
selection-screen comment (20) text1.
selection-screen end of line.
selection-screen begin of line.
selection-screen position 10.
parameters: p_rad2 radiobutton group grp1 .
selection-screen position 33.
selection-screen comment (20) text2.
selection-screen end of line.
initialization.
text1 = 'Here text rad1'.
text2 = 'Here text rad2'.
Regards,
Rich Heilman
‎2006 Jul 06 3:18 PM
i want to give blank lines between the radiobuttons, how to do that...
‎2006 Jul 06 3:19 PM
hi,
use skip . ( skip :-key word before selection-screen : begin of line)
That is
<b>skip.</b>
SELECTION-SCREEN : BEGIN OF BLOCK options WITH FRAME TITLE text-003,
BEGIN OF LINE.
PARAMETERS : p_backgd RADIOBUTTON GROUP rad1
USER-COMMAND radio DEFAULT 'X'.
SELECTION-SCREEN : COMMENT 4(10) text-006,
: POSITION 35 END OF LINE.
<b>SKIP.</b>
SELECTION-SCREEN : BEGIN OF LINE.
PARAMETERS : p_sumrep RADIOBUTTON GROUP rad1 .
SELECTION-SCREEN : COMMENT 4(10) text-048,
END OF LINE.
SELECTION-SCREEN : END OF BLOCK options.That is 😆 SELECTION-SCREEN SKIP .
Message was edited by: Manoj Gupta
‎2006 Jul 06 3:21 PM
use
SELECTION-SCREEN SKIP <n>.
where n is number of lines you want to skip.
regards,
Sumit
‎2006 Jul 06 3:49 PM
hi all,
In a Radio button group, i want two radiobutton options to be selected as default, sample given below,
ex:
first line is
"selection-screen begin of block outputformat with frame title text-t01."
so the block started,
1st radiobutton named 'Summary report' it is default 'X'
then 2nd radiobutton,
then small heading as
"Sort Options"
then 1st Radiobutton named 'Organization unit/Employee Name' it should be default 'X'
then next line, 2nd Radiobutton and next line 3rd Radiobutton.
at last
selection-screen end of block outputformat.
here the block ends with frame and the title 'output Format'.
Kindly let me know how to have two radiobuttons selected as default,
or let me know the possible way to solve it.
Thanks in Advance.
‎2006 Jul 06 3:53 PM
In that case you need two groups. Here is an example.
report zrich_0001 .
selection-screen begin of line.
selection-screen position 10.
parameters: p_rad1 radiobutton group grp1 default 'X'.
selection-screen position 33.
selection-screen comment (20) text1.
selection-screen end of line.
selection-screen begin of line.
selection-screen position 15.
parameters: p_rada radiobutton group grp2 default 'X'.
selection-screen position 38.
selection-screen comment (20) texta.
selection-screen end of line.
selection-screen begin of line.
selection-screen position 15.
parameters: p_radb radiobutton group grp2 .
selection-screen position 38.
selection-screen comment (20) textb.
selection-screen end of line.
selection-screen begin of line.
selection-screen position 15.
parameters: p_radc radiobutton group grp2 .
selection-screen position 38.
selection-screen comment (20) textc.
selection-screen end of line.
selection-screen begin of line.
selection-screen position 10.
parameters: p_rad2 radiobutton group grp1 .
selection-screen position 33.
selection-screen comment (20) text2.
selection-screen end of line.
initialization.
text1 = 'Here text rad1'.
texta = 'Here text rada'.
textb = 'Here text radb'.
textc = 'Here text radc'.
text2 = 'Here text rad2'.
Regards,
Rich Heilman
‎2006 Jul 06 3:05 PM
Hi Dana,
parameters: p_r1 radiobutton group grp1 ,
p_r2 radiobutton group grp1 .
Regards,
Kiran B
‎2006 Jul 06 3:06 PM
hi,
Check This
*---Summary Report
SELECTION-SCREEN : BEGIN OF BLOCK options WITH FRAME TITLE text-003,
BEGIN OF LINE.
PARAMETERS : p_backgd RADIOBUTTON GROUP rad1
USER-COMMAND radio DEFAULT 'X'.
SELECTION-SCREEN : COMMENT 4(10) text-006,
: POSITION 35 END OF LINE.
SELECTION-SCREEN : BEGIN OF LINE.
PARAMETERS : p_sumrep RADIOBUTTON GROUP rad1 .
SELECTION-SCREEN : COMMENT 4(10) text-048,
END OF LINE.
SELECTION-SCREEN : END OF BLOCK options.
Note : Enter Comment for discription
( for radio button , Selection text will not work )
Here
text-048 ,etc stands for display text for radio button
‎2006 Jul 06 3:10 PM
Hi,
try this code..
REPORT ZZSDSDF .
selection-screen begin of block b1 .
selection-screen begin of line.
parameters: r1 radiobutton group g1 default 'X'.
selection-screen comment 3(30) v1.
selection-screen end of line.
selection-screen begin of line.
parameters: r2 radiobutton group g1.
selection-screen comment 3(30) v2.
selection-screen end of line.
selection-screen end of block b1.
initialization.
v1 = 'Rad one'.
v2 = 'Rad two'.Regards
vijay
‎2006 Jul 06 3:13 PM
hi,
use this code its working.
selection-screen begin of line.
selection-screen comment 1(4) text-002.
parameter rad1 radiobutton group gr1.
selection-screen comment 10(10) text-001.
selection-screen end of line.
selection-screen begin of line.
selection-screen comment 1(4) text-002.
parameter rad2 radiobutton group gr1.
selection-screen comment 10(10) text-003.
selection-screen end of line.
in text element text-002 put 4 spaces save+activate.
this will work.
Regards,
Sumit.
‎2006 Jul 06 3:21 PM
REPORT ZZSDSDF .
selection-screen begin of block b1 .
selection-screen begin of line.
parameters: r1 radiobutton group g1 default 'X'.
selection-screen comment 3(30) v1.
selection-screen end of line.
<b>selection-screen skip.
selection-screen skip.</b>
selection-screen begin of line.
parameters: r2 radiobutton group g1.
selection-screen comment 3(30) v2.
selection-screen end of line.
selection-screen end of block b1.
initialization.
v1 = 'Rad one'.
v2 = 'Rad two'.
‎2006 Jul 06 3:36 PM
Hi Dana,
If ur problem is solved ; Please rewards points and close the thread
‎2006 Jul 06 4:01 PM
selection-screen begin of line.
SELECTION-SCREEN POSITION pos 10.
parameter p_radio radiobutton group radi.
selection-screen end of line.
selection-screen begin of line.
SELECTION-SCREEN POSITION pos 10.
parameter p_radio1 radiobutton group radi.
selection-screen end of line.