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 buttons at selection screeen

Former Member
0 Kudos

hi

i have a selection screen which contains 3 radio buttons

the display defualt is one under another but i need to display them one next to the other in the sam line and block .

is there a way to do that ?

thanks

1 ACCEPTED SOLUTION

I355602
Advisor
Advisor
0 Kudos

Hi,

Use, its working:


SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(15) text-001. "radiobutton 1 text
PARAMETERS : p_rb1 RADIOBUTTON GROUP gp1.
SELECTION-SCREEN COMMENT 25(15) text-002. "radiobutton 2 text
PARAMETERS : p_rb2 RADIOBUTTON GROUP gp1.
SELECTION-SCREEN COMMENT 50(15) text-003. "radiobutton 3 text
PARAMETERS : p_rb3 RADIOBUTTON GROUP gp1.
SELECTION-SCREEN END OF LINE.

Hope this helps you.

Regards,

Tarun

7 REPLIES 7

Former Member
0 Kudos

use: Selection screen begin of line.

Former Member
0 Kudos

Hi,

try in this way you can achieve

SELECTION-SCREEN BEGIN OF BLOCK b1.

SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN COMMENT 1(10) text-001.

PARAMETERS:

p_rad RADIOBUTTON GROUP grp.

 

SELECTION-SCREEN COMMENT 30(10) text-002.

Parameter p_rad1 RADIOBUTTON GROUP grp.

SELECTION-SCREEN END OF LINE.

SELECTION-SCREEN END OF BLOCK b1

regards

sarves

former_member242255
Active Contributor
0 Kudos

this you can acheive by writing the BEGIN of LINE COMMENT...

I355602
Advisor
Advisor
0 Kudos

Hi,

Use, its working:


SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(15) text-001. "radiobutton 1 text
PARAMETERS : p_rb1 RADIOBUTTON GROUP gp1.
SELECTION-SCREEN COMMENT 25(15) text-002. "radiobutton 2 text
PARAMETERS : p_rb2 RADIOBUTTON GROUP gp1.
SELECTION-SCREEN COMMENT 50(15) text-003. "radiobutton 3 text
PARAMETERS : p_rb3 RADIOBUTTON GROUP gp1.
SELECTION-SCREEN END OF LINE.

Hope this helps you.

Regards,

Tarun

Former Member
0 Kudos

Here is a solution ,you can try it,It doesnt require any programming code.

1.Just write the program code as you do.

2.click the object navigator button over the program code on the SAP standard toolbar menu.

3.Click on the screen.

4.The default screen no. for general report is 100.

5.Modify the screen layout by using screen painter on the sap standard menu toolbar.

6.You can simply define the position there by dragging the Radio Buttons as per your requirement.

7.save and activate your program.

I think you'll find your desired layout.

Regards,

_____________________

Pulak,

Capgemini India Pvt. Ltd.

_____________________

faisal_altaf2
Active Contributor
0 Kudos

Hi,

Test the following Sample Code Hope will solve out your problem,

selection-screen begin of block a with frame title textw.

selection-screen: begin of line.
parameters fix RADIOBUTTON GROUP a DEFAULT 'X'.
selection-screen: comment 3(31) text1.
parameter percase RADIOBUTTON GROUP a.
selection-screen: comment 37(31) text2.
parameters: advance RADIOBUTTON GROUP a.
selection-screen: comment 71(31) text3.
selection-screen end of line.

selection-screen end of block a.


INITIALIZATION.
textw = 'Please Select'.
text1 = 'RadioButton 1'.
text2 = 'RadioButton 2'.
text3 = 'RadioButton 3'.

Please Reply if any Issue,

Kind Regards,

Faisal

Former Member
0 Kudos

Try this,

selection-screen begin of line.

selection-screen comment 5(20) comment1.

parameters: p_rad1 radiobutton group grp1 default 'X'.

selection-screen comment 30(20) comment2.

parameters: p_rad2 radiobutton group grp1.

selection-screen comment 55(20) comment3.

parameters: p_rad3 radiobutton group grp1.

selection-screen end of line.

Regards,

Joan