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

Radiobutton

Former Member
0 Likes
710

hi,

I want one radiobutton in the selection screen .But first i want text

then radiobutton.

Can u tell me how we can do this ?

regards,

vijaya.

7 REPLIES 7
Read only

former_member654348
Participant
0 Likes
686

hi

check out the syntax by pressing F1.

u can get it.

Read only

Former Member
0 Likes
686

Do something like this:

SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN POSITION pos_high.
SELECTION-SCREEN COMMENT /10(30) 'TEXT'.
PARAMETERS: r1 RADIOBUTTON GROUP rad1,
            r2 RADIOBUTTON GROUP rad1.
PARAMETERS field(5) TYPE c.
SELECTION-SCREEN END OF LINE.

Read only

sachin_mathapati
Contributor
0 Likes
686

Hi Vijaya laxmi ,

Check this code..

PARAMETERS :

rb_2day RADIOBUTTON GROUP gr5 USER-COMMAND cmd1,

rb_yday RADIOBUTTON GROUP gr5 , "Yesterday

rb_dtrg RADIOBUTTON GROUP gr5 . "Date Range

Check and activate...

To change the Text of the radio Button...

On ABAP Editor Screen on Menu bar..Click in GOTO --> Text Elements --> Selection texts and then Change the text of your Radio Buttons..

Reward If Helpful

Regards,

Sachin M M

Read only

bpawanchand
Active Contributor
0 Likes
686

PARAMEETRS :

p_rad1 RADIOBUTTON GROUP GRP1 DEFAULT 'X',

p_rad2 RADIOBUTTON GROUP GRP1 ,

p_rad3 RADIBUTTON GROUP GRP1.

nOW IF AT ALL YOU EXECUTE THIS code then the

this is enough to what you are asking.

Regards

PAVAN

Read only

Former Member
0 Likes
686

Hello,

Do the following:


SELECTION-SCREEN COMMENT /1(50) comm1 MODIF ID mg1. 
SELECTION-SCREEN ULINE. 
SELECTION-SCREEN SKIP. 

SELECTION-SCREEN COMMENT /1(30) comm2. 
SELECTION-SCREEN ULINE /1(50). 
PARAMETERS: r1 RADIOBUTTON GROUP rad1, 
            r2 RADIOBUTTON GROUP rad1, 
            r3 RADIOBUTTON GROUP rad1. 
SELECTION-SCREEN ULINE /1(50). 

AT SELECTION-SCREEN OUTPUT. 
  comm1 ='Selection Screen'. 
  comm2 ='Select one'. 
  LOOP AT SCREEN. 
    IF screen-group1 = 'MG1'. 
       screen-intensified = '1'. 
      MODIFY SCREEN. 
    ENDIF. 
  ENDLOOP. 

Regards.

Read only

Former Member
0 Likes
686

Pl. see this sample code:

selection-screen begin of block b1 with frame title text-a01.

selection-screen begin of line.

selection-screen comment 3(34) text-a06 for field p_kbb. << Field text for radio button p_kbb

parameters: p_kbb radiobutton group xyz modif id a1.

selection-screen end of line.

parameters: p_kbrt radiobutton group xyz modif id a1.

selection-screen end of block b1.

Regards,

Joy.

Read only

Former Member
0 Likes
686

hi,

try this code.

selection-screen begin of line.
  selection-screen comment 'RADIOBUTTON' for field RD1.
  parameters:
   <Define Radiobutton>
selection-screen end of line.

This will help.

Reward if useful.

Sumit Agarwal