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

Radio Button - 1

Former Member
0 Likes
1,466

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.

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
1,433

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

14 REPLIES 14
Read only

andreas_mann3
Active Contributor
0 Likes
1,433

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

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
1,434

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

Read only

0 Likes
1,433

i want to give blank lines between the radiobuttons, how to do that...

Read only

0 Likes
1,433

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

Read only

0 Likes
1,433

use

SELECTION-SCREEN SKIP <n>.

where n is number of lines you want to skip.

regards,

Sumit

Read only

0 Likes
1,433

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.

Read only

0 Likes
1,433

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

Read only

Former Member
0 Likes
1,433

Hi Dana,

parameters: p_r1 radiobutton group grp1 ,

p_r2 radiobutton group grp1 .

Regards,

Kiran B

Read only

Former Member
0 Likes
1,433

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


Read only

Former Member
0 Likes
1,433

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

Read only

Former Member
0 Likes
1,433

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.

Read only

Former Member
0 Likes
1,433

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'.
Read only

Former Member
0 Likes
1,433

Hi Dana,

If ur problem is solved ; Please rewards points and close the thread

Read only

Former Member
0 Likes
1,433

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.