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

Regarding Radiobutton

Former Member
0 Likes
1,017

Hi,

I want set green light for radibutton if i select that radiobutton. Could you please help me in this regard?

Thanks & Regards,

Venkat.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
995

Any Help?

Hi,

I want set green light for radibutton if i select that radiobutton. Could you please help me in this regard?

Thanks & Regards,

Venkat.

7 REPLIES 7
Read only

Former Member
0 Likes
995

Hi, I do not think that you can change the color of radiobutton,

but you can display green light when the radio button is selected.

Try this one.

You can write icon 'icon_green_light ' when the radio button is selected.

Feel free to ask if u have any further query regarding this.

Thanks.

Read only

Former Member
0 Likes
995

Selection-screen begin of block b1 .

SELECTION-SCREEN COMMENT 2(6) TEXT_001.

selection-screen end of block b1.

AT SELECTION-SCREEN OUTPUT.

IF PA = 'X'. " If the radio button is selected

WRITE ICON_GREEN_LIGHT AS ICON TO TEXT_001.

modify screen.

endif.

Read only

Former Member
0 Likes
996

Any Help?

Read only

0 Likes
995

hi,

Check this code..

type-pools icon.

Selection-screen begin of block b1 .

SELECTION-SCREEN COMMENT 2(6) TEXT_001.

parameter : r_pa type c radiobutton group gr1 user-command mode,

r_pa1 type c radiobutton group gr1 default 'X'.

selection-screen end of block b1.

AT SELECTION-SCREEN OUTPUT.

IF r_PA = 'X'. " If the radio button is selected

WRITE ICON_GREEN_LIGHT AS ICON TO TEXT_001.

modify screen.

endif.

Read only

0 Likes
995

Hi Avinash,

Thanks for Your reply. Green Icon light is coming properly. But, i want Radiobutton and Green icon light side by side. Presently it is coming on Top and Botom.

Read only

0 Likes
995

hi,

TYPE-POOLS icon.
SELECTION-SCREEN BEGIN OF BLOCK b1 .
SELECTION-SCREEN BEGIN OF LINE.        " begin of line
SELECTION-SCREEN COMMENT 2(6) text_001.
PARAMETER : r_pa TYPE c RADIOBUTTON GROUP gr1 USER-COMMAND mode.
SELECTION-SCREEN END OF LINE.  " end of line
PARAMETER : r_pa1 TYPE c RADIOBUTTON GROUP gr1 DEFAULT 'X'.
SELECTION-SCREEN END OF BLOCK b1.

AT SELECTION-SCREEN OUTPUT.

  IF r_pa = 'X'. " If the radio button is selected
    WRITE icon_green_light AS ICON TO text_001.
    MODIFY S

Thanks & Regards

Read only

Former Member
0 Likes
995

Hi,

You can try this,

SELECTION-SCREEN BEGIN OF BLOCK b1 .
SELECTION-SCREEN BEGIN OF LINE. "<= insert this
SELECTION-SCREEN COMMENT 1(5) text_001.
PARAMETER : r_pa TYPE c RADIOBUTTON GROUP gr1 USER-COMMAND mode.
SELECTION-SCREEN COMMENT 10(5) text_002.
PARAMETER : r_pa1 TYPE c RADIOBUTTON GROUP gr1 DEFAULT 'X'.
SELECTION-SCREEN END OF LINE."<= insert this
SELECTION-SCREEN END OF BLOCK b1.

AT SELECTION-SCREEN OUTPUT.

  IF r_pa = 'X'. " If the radio button is selected
    WRITE icon_green_light AS ICON TO text_001.
  ELSE.
    CLEAR text_001. "Clear the green icon
    MODIFY SCREEN.
  ENDIF.

Regards,

Manoj Kumar P