Regarding hiding Selection screen block

hi all ,
i have 2 blocks in the selection screen. the First block has 4 radiobuttons and the second block has 4 parameters.
i need to hide the block 2 based on the radiobutton checked in the initail block.
if radiobutton 1 or 2 is selected then the block should not be visible and if the rdbtn 3 or 4 is selected the block should be visible
i have wriiten the code but it doesn't work at all. the block is hidden but when i select the radiobtn 3 or 4 it doesn't work
the code i hve wriiten is as follows
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
PARAMETERS: par1 RADIOBUTTON GROUP rg2 DEFAULT 'X' USER-COMMAND ucom1
PARAMETERS: par2 RADIOBUTTON GROUP rg2 .
PARAMETERS: par3 RADIOBUTTON GROUP rg2 .
PARAMETERS: par4 RADIOBUTTON GROUP rg2
SELECTION-SCREEN END OF BLOCK b1.
SELECTION-SCREEN BEGIN OF BLOCK a1 WITH FRAME TITLE text-001.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETER p_pwwrk TYPE plaf-pwwrk  MODIF ID FSC.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS p_wch TYPE cr_hname MODIF ID FSC.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
SELECT-OPTIONS s_mdv01 FOR g_mdv01 MODIF ID FSC.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF BLOCK a1.
I have declared this  after Initialization.
AT SELECTION-SCREEN OUTPUT.
if par3 eq 'X' or par4 eq 'X'.
LOOP AT SCREEN.
IF screen-group1 = 'FSC'.
screen-active = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
endif.
can anybody please suggest.
Thanx
Srinivas

Hiding Input Fields Locate the document in its SAP Library structure
To suppress the display of the input field on the selection screen, you use the following syntax:
PARAMETERS p ...... NO-DISPLAY ......
Although parameter p is declared, it is not displayed on the selection screen.
If the parameter belongs to the standard selection screen, you can assign a value to it either by using the DEFAULT addition when you declare it, or during the INITIALIZATION event. If you call the executable program using the SUBMIT statement, the calling program can also pass the value.
When you use user-defined selection screens, you can assign a value to the parameter at any time before calling the selection screen.
If you want to display a parameter only in certain cases, for example, depending on the values entered by the user in other input fields of the selection screen, you cannot use the NO-DISPLAY addition. If you use NO-DISPLAY, the parameter actually is an element of the interface for program calls, but not an element of the selection screen. As a result, you cannot make it visible using the MODIFY SCREEN statement.
To hide a parameter that is an element of the selection screen, you must declare it without the NO-DISPLAY addition and suppress its display using the MODIFY SCREEN statement.
We can Hide parameter / select option in selection screen dynamically by manipulating screen object.
SCREEN is like an internal table with a header line. However, you do not have to declare it in your program. Go to debugging mode and then view structure of screen.
You can modify SCREEN in your ABAP program during the PBO event of a screen. Its contents override the static attributes of the screen fields for a single screen call. The only statements that you can use with SCREEN are:
LOOP AT SCREEN.
MODIFY SCREEN.
ENDLOOP.
We can hide parameter by set screen-active to 0.
Here is example of how to hide parameter in selection screen. Write it, and change click on radiobutton to hide parameter.
    REPORT ZAALGAL0006.
    DATA: d_ucomm LIKE sy-ucomm.
    PARAMETERS: p_grpa1(10) MODIF ID A,
    p_grpa2(5) MODIF ID A,
    p_grpb1(2) MODIF ID B.
    PARAMETERS: p_actA RADIOBUTTON GROUP rad1 USER-COMMAND ACT DEFAULT 'X',
    p_actB RADIOBUTTON GROUP rad1.
    AT SELECTION-SCREEN.
    d_ucomm = sy-ucomm.
    AT SELECTION-SCREEN OUTPUT.
    LOOP AT screen.
    IF p_actA = 'X'.
    IF screen-group1 = 'B'.
    screen-active = 0.
    ENDIF.
    ELSEIF p_actB = 'X'.
    IF screen-group1 = 'A'.
    screen-active = 0.
    ENDIF.
    ENDIF.
    MODIFY screen.
    ENDLOOP.
    START-OF-SELECTION.
regards,
srinivas
<b>*reward for useful answers*</b>

Similar Messages

  • Hiding selection-screen

    Hi All,
    I have a requirment to hide a selection-screen block based on the radio button option displayed in selection-screen.
    I am able to do this, but in this block there are some mandatory fields to be filled .
    So every time when i change the radio button , i have to fill the mandatory fields in order to hide it .
    Pls let me know how to hide a block without entering the mandatory fields in it .
    Thanks & Regards,
    Rajasekhar.

    Hi Rajasekhar,
    Either remove the 'obligatory' keyword from the syntax when you declare the mandatory fields, rather, check in your program, whether these fields are filled for suitable radio-button corresponding to that block, and if these are empty, give error message 'Fill in required fields'. Thus while hiding the block for a different radio-button You do not require to fill these fields.
    Else, just code some default values in the program to these mandatory fields, so that You need not enter the values to these fields before hiding the block.
    Regards,
    Birendra

  • How to make selection-screen block as unvisible?

    hi,
    in report program there are two selection screen blocks like this.
    SELECTION-SCREEN BEGIN OF BLOCK b1.
         parameters: rb1 as radiobutton group r1 user-command ucomm,
                  rb2 as radiobutton group r1,
                  rb3 as radiobutton group r1,
                  rb4 as radiobutton group r1,
         SELECTION-SCREEN BEGIN OF BLOCK b2.
              parameters: ip1 type string.
              select-options: date for pernr-begda.
         SELECTION-SCREEN END OF BLOCK b2.
    SELECTION-SCREEN END OD BLOCK b1.
    Now when i clicked on rb4 the selecetion screen block b2 has to be visible.
    And rest of things i.e for rb1, rb2, rb3 it should not visible. it should be disabled.
    Regards,
    Shankar.

    hi,
    i am doing like this.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text.
      SELECTION-SCREEN SKIP 1.
      SELECT-OPTIONS: pernr FOR person-pernr.
      SELECTION-SCREEN SKIP 1.
      PARAMETERS: tempname LIKE rlgrap-filename.
      SELECTION-SCREEN SKIP 1.
      PARAMETERS: rb_p1 TYPE c RADIOBUTTON GROUP r1 USER-COMMAND rbg,
                  rb_p2 TYPE c RADIOBUTTON GROUP r1,
                  rb_p3 TYPE c RADIOBUTTON GROUP r1,
                  rb_p4 TYPE c RADIOBUTTON GROUP r1.
      SELECTION-SCREEN SKIP 1.
        SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text1.
            PARAMETERS: country(25) TYPE c MODIF ID ccc.
            SELECT-OPTIONS:Fromdate FOR person-begda NO-EXTENSION MODIF ID ccc.
        SELECTION-SCREEN END OF BLOCK b2.
    SELECTION-SCREEN END OF BLOCK b1.
    AT SELECTION-SCREEN OUTPUT.
    IF rb_p4 = ' ' .
      LOOP AT SCREEN.
          IF SCREEN-NAME = 'COUNTRY'
          OR SCREEN-NAME = 'FROMDATE-LOW'
          OR SCREEN-NAME = 'FROMDATE-HIGH'
          OR SCREEN-GROUP1 = 'CCC'.
              screen-input = 0. "Disable
          ENDIF.
          MODIFY SCREEN.
      ENDLOOP.
    ENDIF.
    IF rb_p4 = 'X' .
      LOOP AT SCREEN.
          IF SCREEN-NAME = 'COUNTRY'
          OR SCREEN-NAME = 'FROMDATE-LOW'
          OR SCREEN-NAME = 'FROMDATE-HIGH'
          OR SCREEN-GROUP1 = 'CCC'.
              screen-input = 1. "Disable
          ENDIF.
          MODIFY SCREEN.
      ENDLOOP.
    ENDIF.
    Now it's making as disabled the fields which are in block B2.
    Acutually my requirement is when i ever user selects RB_P4 then only that screen has to appear. and for rest of 3 RB it should not visible. it should be invisible.
    for this wat to do....
    Regards,
    Shankar.

  • Depndng on chkbox, should display selection screen block on selectionscreen

    Hi,
    Depending upon the chkbox it should display selection screen block on selection screen. 
    If not checked it should display B3 and If checked it should display Block B2 .
    SELECTION-SCREEN BEGIN OF BLOCK B1.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS P_DAT AS CHECKBOX USER-COMMAND FLAG.
    SELECTION-SCREEN COMMENT 3(79) text-112.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK B1.
    SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-109.
    PARAMETER:      p_year1   LIKE ce1rh03-gjahr,
                    p_perid1  LIKE ce1rh03-perde.
    SELECTION-SCREEN END OF BLOCK B2.
    SELECTION-SCREEN BEGIN OF BLOCK B3 WITH FRAME TITLE TEXT-109.
    PARAMETER:      p_year    LIKE ce1rh03-gjahr MODIF ID MO1,
                             p_period  LIKE ce1rh03-perde MODIF ID MO1.
    SELECTION-SCREEN END OF BLOCK B3.
    If P_Dat is checked     .... It should display the Block B2 and
    If p_Dat is not checked .... it should display the Block B3
    Any suggestions will be appreciated!
    Regards,
    Kittu

    Hello Kittu,
    You can try this code:
    SELECTION-SCREEN BEGIN OF BLOCK b1.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS p_dat AS CHECKBOX USER-COMMAND flag.
    SELECTION-SCREEN COMMENT 3(79) text-112.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-109.
    PARAMETER:      p_year1   TYPE gjahr MODIF ID mo1,
                    p_perid1  TYPE perio MODIF ID mo1.
    SELECTION-SCREEN END OF BLOCK b2.
    SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-110.
    PARAMETER:      p_year    TYPE gjahr MODIF ID mo2,
                    p_period  TYPE perio MODIF ID mo2.
    SELECTION-SCREEN END OF BLOCK b3.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF p_dat = 'X' AND screen-group1 = 'MO2'.
          screen-active = '0'.
        ELSEIF p_dat <> 'X' AND screen-group1 = 'MO1'.
          screen-active = '0'.
        ENDIF.
        MODIFY SCREEN.
      ENDLOOP.
    Hope this helps.
    BR,
    Suhas

  • How to place selection screen block adjacent to other block

    hi all,
         I want a selection screen block side by side, is it possible
    without using screen painter, if it is let me know.
    Thanks & Regards
    RK

    Hai RK check the following syntax
    CALL SELECTION-SCREEN dynnr
                          [STARTING AT col1 lin1
                          [ENDING   AT col2 lin2]]
                          [USING SELECTION-SET variant].
    before this you need to create two screens

  • Enable / Disable selection screen block

    Hi, could u pls tell me how do I enable/disable selection screen block written below based on radio button selected??
    Block to be enabled / disabled :
    *----APO Version and RFC destination block
    SELECTION-SCREEN BEGIN OF BLOCK b4 WITH FRAME TITLE text-013.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 01(20) text-e11.    "APO Planning Version
    SELECTION-SCREEN POSITION 29.
    SELECT-OPTIONS s_apover FOR w_version NO INTERVALS.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 01(20) text-e09.    "APO RFC Destination
    SELECTION-SCREEN POSITION 32.
    PARAMETERS  :  p_aporfc LIKE rfcdes-rfcdest.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK b4.
    Radiobuttons :
    Material Type
    SELECTION-SCREEN BEGIN OF BLOCK ss04 WITH FRAME TITLE text-072       .
    PARAMETERS :
         Load only FERTs
           p_FERT  RADIOBUTTON GROUP styp DEFAULT  'X' USER-COMMAND rusr ,
         Load ROH/HALBs
           p_HALB  RADIOBUTTON GROUP styp                                .
    SELECTION-SCREEN END   OF BLOCK ss04                                 .
    Thanx in advance

    Hi
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETERS: pa_file TYPE rlgrap-filename MODIF ID abc,
    pa_lifnr TYPE lfa1-lifnr MODIF ID abc,
    pa_vkorg TYPE vbak-vkorg MODIF ID abc.
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
    PARAMETERS: pa_kunnr TYPE vbak-kunnr MODIF ID def.
    SELECT-OPTIONS: s_lifnr FOR gs_lfa1-lifnr MODIF ID def,
    s_date FOR gs_lfa1-erdat MODIF ID def,
    s_augru FOR gs_vbak-augru MODIF ID def,
    s_vbeln FOR gs_vbak-vbeln MODIF ID def.
    SELECTION-SCREEN END OF BLOCK b2.
    SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-003.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: pa_upd RADIOBUTTON GROUP g1 USER-COMMAND uc01 DEFAULT 'X'."#EC *
    SELECTION-SCREEN COMMENT 3(60) text-004 FOR FIELD pa_upd.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: pa_rep RADIOBUTTON GROUP g1 ."#EC *
    SELECTION-SCREEN COMMENT 3(60) text-005 FOR FIELD pa_rep.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK b3.
    IF pa_rep EQ gc_x.
    LOOP AT SCREEN.
    IF screen-group1 = gc_abc.
    screen-input = gc_zero_num.
    ELSEIF screen-group1 = gc_def.
    screen-active = gc_one_num.
    ENDIF.
    MODIFY SCREEN.
    ENDLOOP.
    ELSEIF pa_upd EQ gc_x.
    *For Reprocessing
    LOOP AT SCREEN.
    IF screen-group1 = gc_def.
    screen-input = gc_zero_num.
    ELSEIF screen-group1 = gc_abc.
    screen-active = gc_one_num.
    ENDIF.
    MODIFY SCREEN.
    CLEAR pa_upd.
    ENDLOOP.
    ENDIF.
    REPORT zrich_001.
    PARAMETERS: p_rad1 RADIOBUTTON GROUP grp1 DEFAULT 'X'
                            user-command chk,
                p_rad2 RADIOBUTTON GROUP grp1.
    SELECT-OPTIONS: s_datum1 FOR sy-datum MODIF ID d1,
                    s_datum2 FOR sy-datum MODIF ID d2.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF p_rad1 = 'X'
          AND screen-group1 = 'D2'.
          screen-active = '0'.
        ENDIF.
        IF p_rad2 = 'X'
         AND screen-group1 = 'D1'.
          screen-active = '0'.
        ENDIF.
        MODIFY SCREEN.
      ENDLOOP.
    Regards
    Anji

  • How to write selection-screen block on 15th position?

    Hello all,
    I want to write selection-screen block on 15th position, How can I do this?
    I know that we can write parameter/select-option on perticuler position using following code.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE t7.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN POSITION 15.
    PARAMETERS: fdat LIKE SY-DATUM,
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK b1.
    It writes parameter(FDAT) on 15th position. How can I write whole block on 15th position?

    Hi,
    For this u have to use comment lines. See the below simple program...
    SELECTION-SCREEN COMMENT /2(50) TEXT-001 MODIF ID SC1.
    SELECTION-SCREEN SKIP 2.
    SELECTION-SCREEN COMMENT /10(30) COMM1.
    SELECTION-SCREEN ULINE.
    PARAMETERS: R1 RADIOBUTTON GROUP RAD1,
    R2 RADIOBUTTON GROUP RAD1,
    R3 RADIOBUTTON GROUP RAD1.
    SELECTION-SCREEN ULINE /1(50).
    SELECTION-SCREEN COMMENT /10(30) COMM2.
    SELECTION-SCREEN ULINE.
    PARAMETERS: S1 RADIOBUTTON GROUP RAD2,
    S2 RADIOBUTTON GROUP RAD2,
    S3 RADIOBUTTON GROUP RAD2.
    SELECTION-SCREEN ULINE /1(50).
    INITIALIZATION.
    COMM1 ='Radio Button Group 1'.
    COMM2 ='Radio Button Group 2'.
    LOOP AT SCREEN.
    IF SCREEN-GROUP1 = 'SC1'.
    SCREEN-INTENSIFIED = '1'.
    MODIFY SCREEN.
    ENDIF.
    ENDLOOP.

  • Making one selection screen block invisible

    Hi,
    I want to make one selection-screen block invisible based on one check box value.I have built the screen as follows:
    PARAMETERS: pcheck1    TYPE char1  AS CHECKBOX.
    SELECTION-SCREEN  BEGIN OF BLOCK b2 WITH FRAME TITLE text-004.
    PARAMETERS: pproj    TYPE xxxx ,
                psproj   TYPE xxxx ,
                pobjec   TYPE xxxx .
    SELECTION-SCREEN  END OF BLOCK b2.
    based on the pcheck value I want to meke the above "SELECTION-SCREEN  BEGIN OF BLOCK b2 " invisible/visible.Can you please tell me how to do it?

    You need to set values in structure SCREEN:
    screen-invisible = '1' .
    screen-input = '0' .
    screen-output = '0' .
    for all items contained in block.
    For example:
    AT SELECTION-SCREEN OUTPUT.
      IF <condition>.
        LOOP AT SCREEN.
          CASE screen-name.
            WHEN <block_name> OR
                       <parameter1> or <parameter1_text> or
                       <parameter_N> or <parameter_N_text> .
              screen-invisible = 1.
              screen-input      = 0.
              screen-output    = 0.
            WHEN OTHERS.
          ENDCASE.
          MODIFY SCREEN.
        ENDLOOP.
    You can find names of variables which contain parameter texts using debuger.
      ELSEIF sy-tcode = 'ZEUA_EDB_EXPORT'.
        p_path = 'ZUA_EDB_EXPORT'.
      ENDIF.

  • Hiding selection screen full block

    Hi Gurus,
    I want to hide following selection screen in the out put.
    plz guide me how can i do it.
    SELECTION-SCREEN BEGIN OF BLOCK bestandsart
        PARAMETERS lgbst LIKE am07m-lgbst.
        PARAMETERS bwbst  LIKE am07m-bwbst DEFAULT 'X'.
        PARAMETERS sbbst LIKE am07m-sbbst.
    SELECTION-SCREEN END OF BLOCK bestandsart.
    points will be rewared.
    Regards
    Rajesh

    Hi,
    use modif statment.
    eg
    parameters lgbst like am07m-lgbst modif id 'SRN'.
    in the at selection-output event.
    use this code.
    loop at screen.
      if screen-group1 = 'SRN'.
         screen-active = 0.
         modify screen.
      endif.
    endloop.
    regards,
    Santosh Thorat
    Edited by: santosh thorat on Jan 4, 2008 6:17 PM
    Edited by: santosh thorat on Jan 4, 2008 6:18 PM

  • Hiding the selection screen blocks

    Hello SDNers,
    This is my scenario.
    I need to have 2 selection screens ie b1 and b2.
    initially b2 should be hidden and  when i make a selection on b1 the block b2 should be displayed.
    Eg :
    selection-screen begin of block B1.
    parmeter : r_cust radiobutton group grp1,
                   r_ven t radiobutton group grp1.
    selection-screen end of block B1.
    selection-screen begin of block B2.
    parmeter : r_cret radiobutton group grp2,
                   r_chg radiobutton group grp2,
                   r_disp radiobutton group grp2,
    selection-screen end of block B2.
    Is this possible if yes please paste a sample snippet for understanding.
    Help would be highly appreciated and rewarded.
    Thanks in advance
    Regards,
    Ranjith N

    Hi...
    Please check the code...
    It will solve your problem
    selection-screen: begin of block c1 with frame title text-001.
    selection-screen skip.
    parameter: p_singl type char01 radiobutton group rsel
                       default 'X' user-command s_per,    " Single record
               p_mult  type char01 radiobutton group rsel." Multiple recrd
    selection-screen: end of block c1.
    selection-screen: begin of block c2 with frame title text-001.
    selection-screen skip.
    parameter: p_matnr  type matnr       modif id m1, " KMAT
               p_atwrt  type zcatnum     modif id m1, " Catalog string
               p_sr_des type atwrt       modif id m1. " Series Designator
    selection-screen: end of block c2.
    selection-screen: begin of block c3 with frame title text-001.
    selection-screen skip.
    PARAMETER: p_pc     radiobutton group err user-command ucomm
                                         modif id m4, " Presentation server
               p_server  radiobutton group err default 'X'
                                         modif id m4, " Application server
               p_f_pc   type localfile   modif id m3, " PC file name
               p_fname  type localfile   modif id m2. " Apltn srvr file path
    selection-screen: end of block c3.
    at selection-screen output.
    Design selection parameters dynamically
      perform sub_set_file_param.
      form sub_set_file_param .
      loop at screen.
      If single record is checked
        if p_singl is not initial.
          if screen-group1 = 'M2' or
             screen-group1 = 'M3' or
             screen-group1 = 'M4'.
            screen-active = 0.
          endif.
      If multiple record and application server is checked
        elseif p_mult is not initial and
               p_server is not initial.
          if screen-group1 = 'M1' or
            screen-group1 = 'M3' .
            screen-active = 0.
          endif.
      If multiple record and presentation server is checked
        elseif p_mult is not initial and
               p_pc   is not initial.
          if screen-group1 = 'M1' or
            screen-group1 = 'M2' .
            screen-active = 0.
          endif.
        endif.
    Modify the screen
        modify screen.
      endloop.
    endform.                    " sub_set_file_param
    Thanks
    Subhankar

  • Hiding selection screen fields upon clicking a button

    Hi .
    I have a requirement like we need to hide and bring back the selection screen fields upon clicking a button( Expand and collapse in the same button) .
    in ABAP Query,we can maintain this,  for the variant we created.
    We need this functionality on the selection-screen presently.
    How to achieve this in the selection -screen?
    Valuale pointers are desparately needful.
    Regards,
    SSR.

    Hi,
    SELECTION SECREEN (P_) Parameter
    (S_) Select Options
    SELECTION-SCREEN : BEGIN OF BLOCK BLK1 WITH FRAME TITLE TEXT-001,
    BEGIN OF LINE,
    COMMENT (26) C1 MODIF ID XYZ.
    SELECT-OPTIONS : S_MATNR FOR MARA-MATNR MODIF ID XYZ NO-EXTENSION .
    SELECTION-SCREEN : END OF LINE,
    BEGIN OF LINE,
    COMMENT (26) C2 MODIF ID XYZ.
    SELECT-OPTIONS : S_MATKL FOR MARA-MATKL MODIF ID XYZ NO-EXTENSION .
    SELECTION-SCREEN : END OF LINE.
    PARAMETERS : R_MATNR RADIOBUTTON GROUP RAD1 DEFAULT 'X'
    MODIF ID ABC USER-COMMAND MAT,
    R_MATKL RADIOBUTTON GROUP RAD1.
    SELECTION-SCREEN END OF BLOCK blk1.
    INITIALIZATION.
    C1 = 'Product Code'.
    c2 = 'Product Group'.
    AT SELECTION-SCREEN OUTPUT.
    LOOP AT SCREEN.
    IF SCREEN-NAME0(7) = 'S_MATNR' OR SCREEN-NAME0(7) = 'S_MATKL'.
    SCREEN-INPUT = '0'.
    SCREEN-INVISIBLE = '1'.
    ENDIF.
    CASE SCREEN-NAME+0(7).
    WHEN 'S_MATNR'.
    IF R_MATNR = 'X'.
    SCREEN-INPUT = '1'.
    SCREEN-INVISIBLE = '0'.
    ENDIF.
    WHEN 'S_MATKL'.
    IF R_MATKL = 'X'..
    SCREEN-INPUT = '1'.
    SCREEN-INVISIBLE = '0'.
    ENDIF.
    ENDCASE.
    IF R_MATNR = 'X'.
    IF SCREEN-NAME = 'C1'.
    C1 = 'Product code'.
    C2 = SPACE.
    ENDIF.
    ENDIF.
    IF R_MATKL = 'X'.
    IF SCREEN-NAME = 'C2'.
    C2 = 'Product Group'.
    C1 = SPACE.
    ENDIF.
    ENDIF.
    MODIFY SCREEN.
    ENDLOOP.
    Hope it helps.
    best regards,
    Nagaraj Kalbavi

  • Regarding at Selection-Screen

    Hi Experts,
    In the selection-screen, i have 2 radiobuttons .
    parameters : rb1 radiobutton group g2 ,
                 rb2 radiobutton group g2 .
    and 4 input fields.
    SELECT-OPTIONS : S_MATNR FOR MARA-MATNR.  " OBLIGATORY.
    SELECT-OPTIONS : S_MTART FOR MARA-MTART NO INTERVALS NO-EXTENSION.
    SELECT-OPTIONS : S_WERKS FOR MARA-MATNR NO INTERVALS NO-EXTENSION.
    parameters : lifnr like lfa1-lifnr .
    Now my requirement is when i execute the report by default the 1st radiobutton is selected. For this radiobutton,
    i want to display only the first 3 select-options. And when the user clicks on the second radiobutton,
    the parameter LIFNR should appear without pressing enter button. Again when the user clicks on
    1st radiobutton the parameter field LIFNr should not appear.
    Please can anybod yrpovide the code.
    Thanks in advance.

    Hi,
    Test the Code Bellow it is working as per your requirement,
    TABLES: mara.
    PARAMETERS : rb1 RADIOBUTTON GROUP g2 USER-COMMAND a DEFAULT 'X',
    rb2 RADIOBUTTON GROUP g2 .
    SELECTION-SCREEN BEGIN OF BLOCK a WITH FRAME TITLE text-001.
    SELECT-OPTIONS : s_matnr FOR mara-matnr MODIF ID s1. " OBLIGATORY.
    SELECT-OPTIONS : s_mtart FOR mara-mtart NO INTERVALS NO-EXTENSION MODIF ID s1.
    SELECT-OPTIONS : s_werks FOR mara-matnr NO INTERVALS NO-EXTENSION MODIF ID s1.
    SELECTION-SCREEN END OF BLOCK a.
    SELECTION-SCREEN BEGIN OF BLOCK b WITH FRAME TITLE text-002.
    PARAMETERS : lifnr LIKE lfa1-lifnr MODIF ID s2.
    SELECTION-SCREEN END OF BLOCK b.
    BREAK-POINT.
    AT SELECTION-SCREEN OUTPUT.
      IF rb1 = 'X'.
        LOOP AT SCREEN.
          IF screen-group1 = 'S2'.
            screen-active = 0.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ELSEIF rb2 = 'X'.
        LOOP AT SCREEN.
          IF screen-group1 = 'S1'.
            screen-active = 0.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ENDIF.
    Best Regards,
    Faisal

  • Regarding At selection-screen on radiobutton

    Hi..
    I need sample code on AT SELECTION-SCREEN ON RADIOBUTTON.
    thanx and regards
    Sandeep.

    Hi,
    Just copy paste this code and run it,
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME.
    PARAMETERS: R1 RADIOBUTTON GROUP RAD1 DEFAULT 'X',
    R2 RADIOBUTTON GROUP RAD1,
    R3 RADIOBUTTON GROUP RAD1.
    SELECTION-SCREEN END OF BLOCK B1.
    SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME.
    PARAMETERS: R4 RADIOBUTTON GROUP RAD2 DEFAULT 'X',
    R5 RADIOBUTTON GROUP RAD2,
    R6 RADIOBUTTON GROUP RAD2.
    SELECTION-SCREEN END OF BLOCK B2.
    AT SELECTION-SCREEN ON RADIOBUTTON GROUP RAD1.
    IF R1 = 'X'.
    MESSAGE W040(HB).
    ENDIF.
    AT SELECTION-SCREEN ON RADIOBUTTON GROUP RAD2.
    IF R4 = 'X'.
    MESSAGE W040(HB).
    ENDIF.
    note: after selecting the choices press F8 and test.
    hope this helps.

  • Selection-screen block disappearing

    Hi All ,
    Can any one tell me how can i make a block in the selection screen invisible . rt now i am using the below code for selection screen ,
    SELECTION-SCREEN BEGIN OF BLOCK BLK1 WITH FRAME TITLE TEXT-001.
    PARAMETERS: P_SALE RADIOBUTTON GROUP GRP DEFAULT 'X',
                P_BILL RADIOBUTTON GROUP GRP .
    SELECTION-SCREEN END OF BLOCK BLK1.
    SELECTION-SCREEN BEGIN OF BLOCK BLK2 WITH FRAME TITLE TEXT-002.
    PARAMETERS MODIF ID SAL.
    SELECT-OPTIONS: S_vkorg for TVKO-VKORG obligatory MODIF ID SAL,
                    S_VTWEG for TVTW-VTWEG obligatory MODIF ID SAL,
                    S_SPART for TSPA-SPART obligatory MODIF ID SAL.
    SELECTION-SCREEN END OF BLOCK BLK2.
    SELECTION-SCREEN BEGIN OF BLOCK BLK3 WITH FRAME TITLE TEXT-003.
    SELECT-OPTIONS: S_vkorg1 for TVKO-VKORG obligatory MODIF ID BIL,
                    S_VTWEG1 for TVTW-VTWEG obligatory MODIF ID BIL,
                    S_SPART1 for TSPA-SPART obligatory MODIF ID BIL,
                    S_FKDAT for VBRK-FKDAT obligatory MODIF ID BIL.
    SELECTION-SCREEN END OF BLOCK BLK3.
    my requirement is , when i select the RB P_SALE the BLK3 have to be invisible and when i select the RB P_BILL BLK2 have to be invisible .
    Thanks & Regards ,
    Sabu.

    Hi,
    you have to do little modification to your selection scree.
    yse the following logic which i have used.
    *selection-screen begin of block blk11 with frame title text-002.
    *parameters : so_plant radiobutton group a USER-COMMAND fcod MODIF ID m1 DEFAULT 'X'.
    *parameters : so_ven   radiobutton group a MODIF ID m1 .
    *parameters : so_cust  radiobutton group a MODIF ID m1.
    *selection-screen end of block blk11.
    *at selection-screen OUTPUT .
    PERFORM chng_screen.
    *AT SELECTION-SCREEN.
    LOOP AT SCREEN.
       IF screen-group1 = 'M2'.
          IF screen-input NE '1'.
            v_flag = 'X'.
          ELSE.
            clear v_flag.
          ENDIF.
       ENDIF.
    endloop.
    *form chng_screen.
    *LOOP AT  SCREEN.
    if so_plant = 'X'.
      IF screen-group1 = 'M3'.
         screen-input = space.
         screen-active = 0.
         modify screen.
      ELSEIF  screen-group1 = 'M2'.
         screen-input = 1.
         screen-active = 1.
         modify screen.
      ELSEIF screen-group1 = 'M4'.
         screen-input = 1.
         screen-active = 0.
         modify screen.
       ENDIF.
    ELSEIF SO_VEN = 'X'.
      IF screen-group1 = 'M2'.
         screen-input = space.
         screen-active = 0.
         modify screen.
      elseif screen-group1 = 'M3'.
         screen-input = 1.
         screen-active = 1.
         modify screen.
      ELSEIF screen-group1 = 'M4'.
         screen-input = 1.
         screen-active = 0.
         modify screen.
       ENDIF.
    ELSEIF SO_CUST = 'X'.
       IF screen-group1 = 'M2'.
         screen-input = space.
         screen-active = 0.
         modify screen.
      ELSEIF screen-group1 = 'M3'.
         screen-input = 1.
        screen-active = 0.
         modify screen.
      ELSEIF screen-group1 = 'M4'.
         screen-input = 1.
        screen-active = 1.
         modify screen.
       ENDIF.
    ENDIF.
    *ENDLOOP.
    *endform.

  • Nested Selection Screen Blocks

    Hi friends,
    My requirement is to display the two nested blocks in the selection screen and the radio button parameters defined should come in a single group.
    as below........
    !   Begin Block1      
    !        * Radio  Button 1!
    !  Begin  Block2                                        
    !          * Radio  Button 2                                                      ! 
    !          * Radio  Button 3                                                      !
    !         * Radio  Button 4                                                       !
    !   End Block2                                                                     !
    !       End Block 1                                                                 !
             My Requirement is all Radio Buttons 1 2 3 & 4 should be under one group only. I just need nested frames as shown above
    Thanks & Regards,
    Kumar.

    Hi,
    In one group you can not declare only one radio button, you need atleast two radio button for a group.
    if there is a single radio button only, then better you make it as check box.
    Nesting of blocks is possible.
    you can do that.
    In one block there should be atleast two radio button for using Group.
    regards,
    Ruchika
    Reward if useful................

Maybe you are looking for

  • 24" iMac pauses when running

    I have a 24" iMac 3.06 GHz Intel Core 2 Duo with 4 GB of RAM running Mac OS X 10.6.5 and when I'm running a movie in VLC player, music in iTunes, etc, it will pause for approx 2-10 seconds and then resume running. Any thought of what it may be? Any h

  • Stuck on hand tool in InDesign 5.5

    My InDesign 5.5 is stuck on the Hand Tool locking me out of all other tools. Thoughts?

  • Why icloud storage not update after purchased

    Hello, I have problem with ICloud storage. I have purchased for upgrade from 5GB(Free) to 20GB but my storage still full. I purchased 2 times but nothing happen to my ICloud storage. Please help me.

  • WebCenter Content Connector Integration

    Hello, I have a problem to test the WCC Connector integration for WebCenter Sites. I had and Error -3 when connector wants to save all assets from WCC. I don't have external Ldap I use Weblogic for WCC and I use internal for WCS Thanks for yours help

  • TPM recommendation to be integrated with SAP

    Hello SD experts, I'm researching a TPM (Trade promotion Management) software for our client to handle their promoitons and to be able to accurately forecast sales - which can be integrated with SAP. The TPM module SAP provides is very expensive. i'm