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

placing multiple parameters on a single line

Former Member
0 Likes
1,015

Hello,

I am working on a program where I would like to have three radio buttons on a single line. I am not sure if this is possible or not. If someone could please let me know if this is possible and if so, please tell me how to code it.

Please let me know if you need more information

thanks in advance

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
984

Hi

Yes u can:

SELECTION-SCREEN BEGIN OF LINE.

  • Radiobutton 1

SELECTION-SCREEN POSITION 1.

PARAMETERS: R1 RADIOBUTTON GROUP R1.

SELECTION-SCREEN COMMENT 4(10) TEXT-001 FOR FIELD R1.

  • Radiobutton 2

SELECTION-SCREEN POSITION 18.

PARAMETERS: R2 RADIOBUTTON GROUP R1.

SELECTION-SCREEN COMMENT 20(10) TEXT-002 FOR FIELD R2.

  • Radiobutton 3

SELECTION-SCREEN POSITION 32.

PARAMETERS: R3 RADIOBUTTON GROUP R1.

SELECTION-SCREEN COMMENT 34(10) TEXT-003 FOR FIELD R3.

SELECTION-SCREEN END OF LINE.

In this case you've to define the text elements TEXT-001, TEXT-002 and TEXT-003 for the labels.

If u want to use the labels you've defined in Selection Texts:

SELECTION-SCREEN BEGIN OF LINE.

  • Radiobutton 1

SELECTION-SCREEN POSITION 1.

PARAMETERS: R1 RADIOBUTTON GROUP R1.

SELECTION-SCREEN COMMENT 4(10) FOR FIELD R1.

  • Radiobutton 2

SELECTION-SCREEN POSITION 18.

PARAMETERS: R2 RADIOBUTTON GROUP R1.

SELECTION-SCREEN COMMENT 20(10) FOR FIELD R2.

  • Radiobutton 3

SELECTION-SCREEN POSITION 32.

PARAMETERS: R3 RADIOBUTTON GROUP R1.

SELECTION-SCREEN COMMENT 34(10) FOR FIELD R3.

SELECTION-SCREEN END OF LINE.

Max

Hello,

I am working on a program where I would like to have three radio buttons on a single line. I am not sure if this is possible or not. If someone could please let me know if this is possible and if so, please tell me how to code it.

Please let me know if you need more information

thanks in advance

7 REPLIES 7
Read only

Former Member
0 Likes
984

Hi Timothy,

You can place all three radio buttons on a single line with <b>SELECTION SCREEN BEGIN OF LINE....END OF LINE</b> statements.

SELECTION-SCREEN BEGIN OF LINE.

PARAMETER RB1 RADIOBUTTON GROUP GRP3 DEFAULT 'X'.

SELECTION-SCREEN POSITION 3.

SELECTION-SCREEN COMMENT (15) TEXT-001.

SELECTION-SCREEN POSITION 25.

PARAMETER RB2 RADIOBUTTON GROUP GRP3.

SELECTION-SCREEN POSITION 28.

SELECTION-SCREEN COMMENT (15) TEXT-002.

PARAMETER RB2 RADIOBUTTON GROUP GRP3.

SELECTION-SCREEN POSITION 48.

SELECTION-SCREEN COMMENT (15) TEXT-003

SELECTION-SCREEN END OF LINE.

Thanks,

Vinay

Read only

Former Member
0 Likes
984

Hi,

It is possible.

You will have to use LINE.

eg,

SELECTION-SCREEN BEGIN OF LINE.

parametere...

SELECTION-SCREEN END OF LINE.

Read help on Selection-screen.

Regards,

Shashank

Read only

Former Member
0 Likes
984

<b> SELECTION-SCREEN BEGIN OF LINE </b>

PARAMETERS : P1 ..

PARAMETERS : P2 ..

PARAMETERS : P3 ..

<b> SELECTION-SCREEN END OF LINE </b>

Regards,

Ravi

Read only

Former Member
0 Likes
984

all,

thanks for the quick replies. I tried the begin of line/end of line but I did not get the results I wanted. I got three radio buttons in a row with no labels. what I have now is

NEW EXSISTING

COMPLETED what I want is NEW EXSISTING COMPLETED

Read only

0 Likes
984

Hi Timothy,

You can get this requirement by my previous post. Just give the names NEW,EXISTING and COMPLETED to text elements TEXT-001,TEXT-002 and TEXT-003.

Just double click on TEXT-001 then it will navigate you to text elemetns. There specify the description as NEW and do for all others and ACTIVATE it.

The BOLD SECTION will give you the texts.

SELECTION-SCREEN BEGIN OF LINE.

PARAMETER RB1 RADIOBUTTON GROUP GRP3 DEFAULT 'X'.

SELECTION-SCREEN POSITION 3.

<b>SELECTION-SCREEN COMMENT (15) TEXT-001.</b>

SELECTION-SCREEN POSITION 25.

PARAMETER RB2 RADIOBUTTON GROUP GRP3.

SELECTION-SCREEN POSITION 28.

<b>SELECTION-SCREEN COMMENT (15) TEXT-002.</b>

PARAMETER RB2 RADIOBUTTON GROUP GRP3.

SELECTION-SCREEN POSITION 48.

<b>SELECTION-SCREEN COMMENT (15) TEXT-003</b>

SELECTION-SCREEN END OF LINE.

Note: Plz mark all helpful answers and close the thread if it is solved.

Thanks,

Vinay

Read only

Former Member
0 Likes
985

Hi

Yes u can:

SELECTION-SCREEN BEGIN OF LINE.

  • Radiobutton 1

SELECTION-SCREEN POSITION 1.

PARAMETERS: R1 RADIOBUTTON GROUP R1.

SELECTION-SCREEN COMMENT 4(10) TEXT-001 FOR FIELD R1.

  • Radiobutton 2

SELECTION-SCREEN POSITION 18.

PARAMETERS: R2 RADIOBUTTON GROUP R1.

SELECTION-SCREEN COMMENT 20(10) TEXT-002 FOR FIELD R2.

  • Radiobutton 3

SELECTION-SCREEN POSITION 32.

PARAMETERS: R3 RADIOBUTTON GROUP R1.

SELECTION-SCREEN COMMENT 34(10) TEXT-003 FOR FIELD R3.

SELECTION-SCREEN END OF LINE.

In this case you've to define the text elements TEXT-001, TEXT-002 and TEXT-003 for the labels.

If u want to use the labels you've defined in Selection Texts:

SELECTION-SCREEN BEGIN OF LINE.

  • Radiobutton 1

SELECTION-SCREEN POSITION 1.

PARAMETERS: R1 RADIOBUTTON GROUP R1.

SELECTION-SCREEN COMMENT 4(10) FOR FIELD R1.

  • Radiobutton 2

SELECTION-SCREEN POSITION 18.

PARAMETERS: R2 RADIOBUTTON GROUP R1.

SELECTION-SCREEN COMMENT 20(10) FOR FIELD R2.

  • Radiobutton 3

SELECTION-SCREEN POSITION 32.

PARAMETERS: R3 RADIOBUTTON GROUP R1.

SELECTION-SCREEN COMMENT 34(10) FOR FIELD R3.

SELECTION-SCREEN END OF LINE.

Max

Read only

Former Member
0 Likes
984

Hi Timothy,

It is possible to have 3 Radi Buttons on a single line.

Consider this code.


REPORT abc.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS rad1 RADIOBUTTON GROUP abc.
SELECTION-SCREEN POSITION 35.
PARAMETERS rad2 RADIOBUTTON GROUP  abc.
SELECTION-SCREEN POSITION 55.
PARAMETERS rad3 RADIOBUTTON GROUP  abc.
SELECTION-SCREEN END OF LINE.

You can give comments to the Radiobuttons using

SELECTION-SCREEN COMMENT  TEXT-001 FOR FIELD <Radiobutton_name> .

Regards,

Arun Sambargi.