Skip to Content
author's profile photo
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 comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    author's profile photo
    Former Member
    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 comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Oct 06, 2005 at 03:11 AM
    Add comment
    10|10000 characters needed characters exceeded