• ABAP Online Training @ $50

    Now you can learn ABAP by watching and listening video classes by experienced consultant.

  • ABAP Tutorials N Materials

    Read, Surf and Download useful ABAP tips, tutorials, code and download many eBooks and documents free

  • Latest ABAP Job in India

    Get all latest opening for SAP ABAP and related jobs, vaccancies across India and apply for the same.

    Monday, October 29, 2012


    For that first of all you have to declare 2 parameters and 2 radio button. We assume on click first radio button, first parameter will hide and on select 2nd radio button first parameter will display and 2nd will hide.

    First create 2 radio button like below :

    parameters: radio_button1 radiobutton group GRP user-command test default 'X',
                              radio_button2 radiobutton group GRP.

    You can create 2 different selection screen block also, for each parameter field. Parameter declaration need to be done like below:

    selection-screen begin of block b1 with frame title text-001.
             parameters: p_var1 type vbeln modif id GR1.
    selection-screen end of block b1.

    Here GR1 is the screen group ID. Similarly you can define the 2nd block with screen group ID = GR2. Then write douwn the Hide /Show code in AT SELECTION-SCREEN OUTPUT event.

    AT SELECTION-SCREEN OUTPUT.
    LOOP AT SCREEN.
      IF SCREEN-GROUP1 = 'GR1' AND radio_button1 EQ 'X'.
        SCREEN-ACTIVE = '0'.
        MODIFY SCREEN.
        CONTINUE.
      ELSEIF SCREEN-GROUP1 = 'GR2' AND radio_button2 EQ 'X'.
        SCREEN-ACTIVE = '0'.
        MODIFY SCREEN.
        CONTINUE.
      ENDIF.
    ENDLOOP.

    Here, SCREEN-ACTIVE = '0' means screen is not active.
               SCREEN-ACTIVE = '1'. Screen is active
    Easy2learnabap.co.in @ 2012 All product names on this web site are trademarks of the companies that own them .

    Easy2learnabap.co.in is not affiliated with SAP AG in any way. SAP AG is the registered trademark holder of SAP, SAP R/3, mySAP, ABAP, xApps, NetWeaver, and other proprietary terms.

    The technical information on this site is verified to the greatest extent possible, however, any information found on this site is used at the site visitor's own risk. All the tutorials are collected from various sources, if anyone is having problem with the content, report this to us. We will take action accordingly.

    Easy2learnabap.co.in reserves the right to correct any errors or omissions in any portion of this site at any time without obligation.

    This website is created to teach people about ABAP technology. The Video contents provided in Premium service are completely owned by us and copyrighted.