Skip to Content
author's profile photo Former Member
Former Member

Regarding Radiobutton

Hi,

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

Thanks & Regards,

Venkat.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 22, 2008 at 12:11 PM

    Any Help?

    Add a comment
    10|10000 characters needed characters exceeded

    • 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

  • author's profile photo Former Member
    Former Member
    Posted on Dec 22, 2008 at 11:24 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 22, 2008 at 11:18 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 22, 2008 at 01:27 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.