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

Former Member
0 Kudos

Hi,

While creating the Radio button group, I want the Radio buttons first and followed(to the right) by the name of the radio buttons.

how to do it, any sample code.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi

selection-screen begin of block bl1 with frame title text-001.

  • First radiobutton

selection-screen begin of line.

selection-screen comment 4(20) for field p1.

selection-screen position 1.

parameters: p1 radiobutton group R1 default 'X'.

selection-screen end of line.

  • Second radiobutton

selection-screen begin of line.

selection-screen comment 4(20) for field p2.

selection-screen position 1.

parameters: p2 radiobutton group R1 default 'X'.

selection-screen end of line.

*....next radio button

.......................................

selection-screen end of block bl1.

In this case the labels of radiobuttons'll be the labels u'll define in selection text.

If you want different labels (defined in text element):

selection-screen begin of block bl1 with frame title text-001.

  • First radiobutton

selection-screen begin of line.

selection-screen comment 4(20) text-002 for field p1.

selection-screen position 1.

parameters: p1 radiobutton group R1 default 'X'.

selection-screen end of line.

  • Second radiobutton

selection-screen begin of line.

selection-screen comment 4(20) text-003 for field p2.

selection-screen position 1.

parameters: p2 radiobutton group R1 default 'X'.

selection-screen end of line.

*....next radio button

.......................................

selection-screen end of block bl1.

Max

5 REPLIES 5

Former Member
0 Kudos

selection-screen begin of block server with frame title text-006.

selection-screen begin of line.

parameters: data_app radiobutton group clbi default 'X'.

selection-screen comment 4(42) text-001.

selection-screen end of line.

selection-screen begin of line.

parameters: data_rem radiobutton group clbi.

selection-screen comment 4(42) text-002.

selection-screen end of line.

selection-screen begin of line.

selection-screen comment 4(12) text-003.

parameters: server like msxxlist-name.

selection-screen end of line.

selection-screen begin of line.

parameters: data_frn radiobutton group clbi.

selection-screen comment 4(42) text-004.

selection-screen end of line.

selection-screen end of block server.

You need to maintain the texts 001,002,003 and 004

-Kiran

Please reward useful answers

Message was edited by: Kiran Raorane

Former Member
0 Kudos

Hi

selection-screen begin of block bl1 with frame title text-001.

  • First radiobutton

selection-screen begin of line.

selection-screen comment 4(20) for field p1.

selection-screen position 1.

parameters: p1 radiobutton group R1 default 'X'.

selection-screen end of line.

  • Second radiobutton

selection-screen begin of line.

selection-screen comment 4(20) for field p2.

selection-screen position 1.

parameters: p2 radiobutton group R1 default 'X'.

selection-screen end of line.

*....next radio button

.......................................

selection-screen end of block bl1.

In this case the labels of radiobuttons'll be the labels u'll define in selection text.

If you want different labels (defined in text element):

selection-screen begin of block bl1 with frame title text-001.

  • First radiobutton

selection-screen begin of line.

selection-screen comment 4(20) text-002 for field p1.

selection-screen position 1.

parameters: p1 radiobutton group R1 default 'X'.

selection-screen end of line.

  • Second radiobutton

selection-screen begin of line.

selection-screen comment 4(20) text-003 for field p2.

selection-screen position 1.

parameters: p2 radiobutton group R1 default 'X'.

selection-screen end of line.

*....next radio button

.......................................

selection-screen end of block bl1.

Max

Former Member
0 Kudos

Hi dana,

1

O O O O O O O c d e f g

2. just copy paste

3.

report abc.

*----


selection-screen begin of line.

parameters : c radiobutton group g2,

d radiobutton group g2,

e radiobutton group g2,

f radiobutton group g2,

g radiobutton group g2.

selection-screen comment (3) for field c .

selection-screen comment (3) for field d .

selection-screen comment (3) for field e .

selection-screen comment (3) for field f .

selection-screen comment (3) for field g .

selection-screen end of line.

regards,

amit m.

Former Member
0 Kudos

Hi,

you can do like that.

selection-screen begin of line.

parameter p1 radiobutton group gr1.

selection-screen comment 5(10) text-001.

selection-screen end of line.

selection-screen begin of line.

parameter p2 radiobutton group gr1.

selection-screen comment 5(10) text-002.

selection-screen end of line.

put name of the radion buttons in text element 1 and 2.

Regards,

Sumit.

former_member188685
Active Contributor
0 Kudos

Hi,

Try this way..

REPORT  ZZTEST  .

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