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

radio button

hi just want to ask help. i have 4 radio buttons in my screen, i want to display specific selection-option if i select certain radio button. how should i do it?

example:

i will select radio button for Report By PO. i will only display the selection-option for PO.

or i will select radio button for Report By Vendor. i will only display the selection-option for Vendor.

thanks.

donna

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 06, 2005 at 03:06 AM

    Hi Donna,

    This example is for 2 radiobuttons.

    You can extend it for 4 radiobuttons. Just use MODIF ID to separate out the groups.

    <b>PARAMETER PORDER RADIOBUTTON GROUP G1 DEFAULT 'X' USER-COMMAND COM.

    PARAMETER PVENDOR RADIOBUTTON GROUP G1.

    PARAMETERS PEBELN LIKE EKKO-EBELN MODIF ID PO.

    PARAMETERS PLIFNR LIKE LFA1-LIFNR MODIF ID VEN.

    AT SELECTION-SCREEN OUTPUT .

    LOOP AT SCREEN .

    CHECK SCREEN-GROUP1 = 'PO' OR

    SCREEN-GROUP1 = 'VEN'.

    IF PORDER = 'X'.

    IF SCREEN-GROUP1 EQ 'PO'.

    SCREEN-ACTIVE = 1.

    ELSEIF SCREEN-GROUP1 EQ 'VEN'.

    SCREEN-ACTIVE = 0.

    ENDIF.

    ELSE.

    IF SCREEN-GROUP1 EQ 'VEN'.

    SCREEN-ACTIVE = 1.

    ELSEIF SCREEN-GROUP1 EQ 'PO'.

    SCREEN-ACTIVE = 0.

    ENDIF.

    ENDIF.

    MODIFY SCREEN.

    ENDLOOP.</b>

    Dont forget to reward if answers were helpful.

    Cheers

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 06, 2005 at 03:11 AM
    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.