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: 

Regarding radio button

Former Member
0 Kudos

Hi ABAP gurus,

I wrote a code to display the radio batton group in the selection screen, to select either 'yes' or 'no'.Now it is displayed like,

Yes <radiobutton1>

No <radiobutton2>

in the selection screen.

But I want to display it in the following format.

<radiobutton1> Yes

<radiobutton2> No

Could you help me?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Use this.

SELECTION-SCREEN BEGIN OF LINE.

Parameter: rb1 as radio........

SELECTION-SCREEN COMMENT 'YES'.

SELECTION-SCREEN BEGIN OF LINE.

Parameter: rb2 as radio........

SELECTION-SCREEN COMMENT 'NO'.

Bhupal

6 REPLIES 6

Former Member
0 Kudos

use this code

SELECTION-SCREEN BEGIN OF BLOCK out WITH FRAME TITLE text-s01.
selection-screen begin of line.
parameters: p_type radiobutton group grp1.
selection-screen comment 4(15) text-010 for field p_type.
selection-screen end of line.
selection-screen begin of line.
parameters: p_reason radiobutton group grp1.
selection-screen comment 4(17) text-020 for field p_reason.
selection-screen end of line.
SELECTION-SCREEN END OF BLOCK out.

sachin_mathapati
Contributor
0 Kudos

Hi ,

Try using SELECTION-SCREEN BEGIN OF LINE .

Search in SDN or use F1 help in your ABAP editor for further details...

Regards,

Sachin M M

bpawanchand
Active Contributor
0 Kudos

Hi

SELECTION-SCREEN BEGIN OF LINE.

PARAMETERS :
r1  RADIOBUTTON GROUP rad1 DEFAULT 'X'.
SELECTION-SCREEN COMMENT 3(10) text-001.

SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN SKIP.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS :
   r2  RADIOBUTTON GROUP rad1.
SELECTION-SCREEN COMMENT 3(10) text-002.
SELECTION-SCREEN END OF LINE.

Regards

pavan

Former Member
0 Kudos

Hi,

Use this.

SELECTION-SCREEN BEGIN OF LINE.

Parameter: rb1 as radio........

SELECTION-SCREEN COMMENT 'YES'.

SELECTION-SCREEN BEGIN OF LINE.

Parameter: rb2 as radio........

SELECTION-SCREEN COMMENT 'NO'.

Bhupal

Former Member
0 Kudos

Thanx gurus.Problem solved

Mohamed_Mukhtar
Active Contributor
0 Kudos

hi ,

See the below example code

SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE a1.
PARAMETERS : p_yes RADIOBUTTON GROUP g1,  " radiobutton for yes
             p_no RADIOBUTTON GROUP g1.   " radiobutton for no
SELECTION-SCREEN END OF BLOCK b1.

INITIALIZATION.
  a1 = 'radibuttons'.   "for  frame name

Regards..