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

Similar Messages

  • 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

  • REG hiding selection-screen comment

    Hi all,
    Cud any one tell me how to hide a selection-screen comment.

    hi chaitanya,
    see the example may be useful.
    SELECTION-SCREEN BEGIN OF BLOCK BLOCK.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(8) PWD.
    SELECTION-SCREEN POSITION 35.
    PARAMETERS: PASSWORD(8) MODIF ID AAA.
    SELECTION-SCREEN END OF LINE.
    PARAMETERS: PROGRAM(8).
    SELECTION-SCREEN END OF BLOCK BLOCK.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF SCREEN-GROUP1 = 'AAA'.
          SCREEN-invisible = '1'.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    reward if useful,
    thanks and regards

  • 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>

  • 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 Selection Screens

    I wanted to ask for a way to hide my selection screens.
    Im working on 3 blocks with all radio buttons. There is block b1 which  has 3 radio buttons, and blocks b2 and b3.. which i want hidden and I dont know how to hide it. Blocks b2 and b3 must only show up when a selection from any radio buttons from b1 is made. Can anybody tell me how to hide the blocks at startup?
    Here is my code...
    data: group_id(3) type c.
    Selection parameters
    SELECTION-SCREEN BEGIN OF BLOCK a WITH FRAME TITLE text-001.
    PARAMETERS:p_frm LIKE ekko-aedat,
               p_to LIKE ekko-aedat.
    SELECTION-SCREEN END OF BLOCK a.
    selection-screen begin of block b1 with frame title text-002.
    parameters: pad radiobutton group one,
                pbb radiobutton group one,
                pcrc radiobutton group one.
    selection-screen begin of block b2 with frame title text-003.
    parameters: p_aj radiobutton group thr modif id sru default 'X' user-command ucom,
                p_ae radiobutton group thr modif id sru,
                p_as radiobutton group thr modif id sru,
                p_ak radiobutton group thr modif id sru.
    parameters: thr no-display.
    selection-screen end of block b2.
    selection-screen begin of block b3 with frame title text-003.
    parameters: p_bae radiobutton group two default 'X' user-command ucom modif id bb,
                p_mg radiobutton group two modif id bb,
                p_mkt radiobutton group two modif id bb,
                p_co radiobutton group two modif id bb.
    parameters: two no-display.
    selection-screen end of block b3.
    selection-screen end of block b1.
    parameters: b2 no-display.
    at selection-screen output.
      screen-active = 0.
      case 'X'.
        when pad.
          group_id = 'sru'.
        when pbb.
          group_id = 'bb'.
      endcase.
    loop at screen.
        if screen-group1 = group_id.
          screen-active = 1.
          modify screen.
        endif.
      endloop.
    Thanks!!! Your help is very much appreciated.

    HI JILL
    PLS SEE THIS CODE MAIN ABSERVE THE GROUP IDS
    AND SCREEN-INVISIBLE WHERE U WANT SCREEN IS HIDE THAT TIME U USE SCREEN-INVISIBLE = 1.
    OK
    SEE IT BELOW CODE
    PLS COPY THE CODE AND TEST IT .
    *SELECTION SCREEN  FOR SELECTION CRITERIA
    SELECTION-SCREEN BEGIN OF BLOCK charly
                     WITH FRAME TITLE text-100.
    PARAMETERS: rb_dis RADIOBUTTON GROUP rb DEFAULT 'X'
                                      USER-COMMAND ucomm ,
                rb_hid RADIOBUTTON GROUP rb .
               P_DEL TYPE VBAK-VKGRP .
    SELECTION-SCREEN END   OF BLOCK charly.
    *SELECTION sCREEN FOR PO TABLE
    SELECTION-SCREEN BEGIN OF BLOCK b2
                     WITH FRAME TITLE v_text.
    SELECT-OPTIONS : s_xblnr  FOR  zmshub-xblnr MODIF ID gr2,
                     s_bstkd   FOR  zmshub-bstkd MODIF ID gr2,
                     s_posex   FOR  zmshub-posex_e MODIF ID gr2,
                     s_kdmat  FOR  zmshub-kdmat MODIF ID gr2.
    PARAMETERS : p_upload LIKE ibipparms-path LENGTH 90  MODIF ID gr3 ,
                 p_down LIKE ibipparms-path  DEFAULT 'C:\output_log.txt'
                                           MODIF ID gr3.
    SELECTION-SCREEN END OF BLOCK b2.
    *SELECTION sCREEN FOR  DOWNLOADING
    SELECTION-SCREEN BEGIN OF BLOCK b4
                     WITH FRAME TITLE text-105.
    PARAMETERS :
              rb_n_d_f  RADIOBUTTON GROUP rb1 DEFAULT 'X' ,
              rb_ftp   RADIOBUTTON GROUP rb1 ,
              p_f_n TYPE c LENGTH 25 DEFAULT 'FILE NAME .TXT',
              rb_ws_d  RADIOBUTTON GROUP rb1 ,
              p_dw_f_n TYPE c LENGTH 25 DEFAULT 'C:
    TEMP\FILE.TXT',
              rb_op_ds RADIOBUTTON GROUP rb1 ,
              p_log_p LIKE filename-pathintern  DEFAULT 'ZHKWEB01',
              p_pa_fn LIKE rlgrap-filename MODIF ID gr1
                     DEFAULT  '//SOME-DIR/FILE.TXT',
              rb_ob_dw    RADIOBUTTON GROUP rb1,
             p_file LIKE filename-pathintern   "logical path
                        DEFAULT 'ZHKWEB01',       "name
             p_fname LIKE rlgrap-filename MODIF ID gr1     "path &
    *filename
                     DEFAULT text-t02,             "/some-dir/file.txt
              p_f_name TYPE c LENGTH 25 DEFAULT
    SOME-SERVERNAME\SOME-DIR\SOME-FILE.TXT'.
    SELECTION-SCREEN END OF BLOCK b4.
    AT SELECTION-SCREEN OUTPUT.
      IF NOT rb_dis IS INITIAL.
        LOOP AT SCREEN.
          IF screen-group1 = 'GR3'.
            screen-invisible = 1.
            screen-input = 0.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ELSE.
        LOOP AT SCREEN.
          IF screen-group1 = 'GR2'.
            screen-invisible = 0.
            screen-input = 0.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ENDIF.
    I WILL BE USEFUL
    KK.

  • Hide an item on the selection screen

    Hi Gurus!
    I have a selection screen with material number on it whose refernec is use din my program for it. I would like to just hide the material selection on the selection screen but let it be on the report as its been used in the program . Is theer a ways I can hide it in my select options itself rahther than going into the elemnet list and making it invisible . Because I made it invisible through element list but when I trasported to QAT it dosent seem to work , or maybe not getting transported . So is there a way I can just hide it in my sleect options .
    Thanks

    Hi,
    HIDE : s_matnr.
    This is used in interactive reporting not for hiding selection screen fields!
    For your requirement you have two solutions:
    1) create a variant on selection screen (what you have probably already done) hiding your screen field. To see the changes in QUA system, you have to transport this variant there and use it when running the program.
    2) adjusting your code to hide this select-option field in PBO of the screen by default
    AT SELECTION-SCREEN OUTPUT.
       LOOP AT SCREEN.
          if screen-name CS 'S_MATNR'.
             screen-invisible = 'X'.
             modify screen.
          endif.
       ENDLOOP.
    First solution together with [transaction variants|http://help.sap.com/saphelp_47x200/helpdata/en/7d/f639f8015111d396480000e82de14a/frameset.htm] gives great flexibility to adjust system according to specific user requirement, the latter, however provides very easy (and commonly used) way to adjust selection screen from ABAP program itself.
    Regards
    Marcin

  • Hideing the select options in selection screen

    I have 2 radio buttons in the selection screen.
    SELECTION-SCREEN BEGIN OF BLOCK b2 with frame title text-018.
    parameters : GR1  Radiobutton group rg1 default 'X',
                 GR2  Radiobutton group rg1.
    SELECTION-SCREEN END OF BLOCK b2.
    SELECTION-SCREEN BEGIN OF BLOCK b1 with frame title text-017.
    Select-options : z_s_werk for t001w-werks obligatory,
                         z_s_matn  for marc-matnr,
                         z_s_bdat for mkpf-budat obligatory.
                        z_s_lifn for mseg-lifnr.
                         z_s_sgtx for mseg-sgtxt.
                        z_s_bwar for mseg-bwart.
    SELECTION-SCREEN END OF BLOCK b1.
    if GR1 = 'X'.
    i have  to  hide   z_s_sgtx for mseg-sgtxt.
    if GR2 = X.
    I  have  to hide  z_s_lifn for mseg-lifnr.
    is there any way for hideing this.
    Regards,
    Selvapriya S.

    hi,
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-018.
    PARAMETERS : gr1 RADIOBUTTON GROUP rg1 DEFAULT 'X' USER-COMMAND ud,
                 gr2 RADIOBUTTON GROUP rg1.
    SELECTION-SCREEN END OF BLOCK b2.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-017.
    " Remove obligatory and do validations for the fileds which have OBLIGATORY at EVENT
    " AT SELECTION-SCREEN .
    SELECT-OPTIONS : z_s_werk FOR t001w-werks ,"(OBLIGATORY)
                     z_s_matn FOR marc-matnr,
                     z_s_bdat FOR mkpf-budat," OBLIGATORY,
                     z_s_lifn FOR mseg-lifnr,
                     z_s_sgtx FOR mseg-sgtxt,
                     z_s_bwar FOR mseg-bwart.
    SELECTION-SCREEN END OF BLOCK b1.
    AT SELECTION-SCREEN OUTPUT.
      IF gr1 = 'X'.
        LOOP AT SCREEN.
         IF screen-name = 'Z_S_SGTX-LOW'                 OR
             screen-name = 'Z_S_SGTX-HIGH'                OR
             screen-name = '%_Z_S_SGTX_%_APP_%-VALU_PUSH' OR
             screen-name = '%_Z_S_SGTX_%_APP_%-VALU_PUSH' OR
             screen-name = '%_Z_S_SGTX_%_APP_%-TO_TEXT'   OR
             screen-name = '%_Z_S_SGTX_%_APP_%-OPTI_PUSH' OR
             screen-name = '%_Z_S_SGTX_%_APP_%-TEXT'.
            screen-active = 0.
          ELSE.
            screen-active = 1.
          ENDIF.
          MODIFY SCREEN.
        ENDLOOP.
      ELSE.
        LOOP AT SCREEN.
       IF screen-name = 'Z_S_LIFN-LOW'                 OR
             screen-name = 'Z_S_LIFN-HIGH'                OR
             screen-name = '%_Z_S_LIFN_%_APP_%-VALU_PUSH' OR
             screen-name = '%_Z_S_LIFN_%_APP_%-VALU_PUSH' OR
             screen-name = '%_Z_S_LIFN_%_APP_%-TO_TEXT'   OR
             screen-name = '%_Z_S_LIFN_%_APP_%-OPTI_PUSH' OR
             screen-name = '%_Z_S_LIFN_%_APP_%-TEXT'.
            screen-active = 0.
          ELSE.
            screen-active = 1.
          ENDIF.
          MODIFY SCREEN.
        ENDLOOP.
      ENDIF.
    for example.
    AT SELECTION-SCREEN on Z_S_SGTX.
    if Z_S_SGTX is initial.
    " Raise an error message here
    Endif.
    Thanks & REgards

  • Problem with Hiding fields of selection screen which is called as subscreen

    Hello All,
    I have problem while hiding the selection screen which is called as subscreen.
    Flow of my logic:
    Selection-screen with one field and three buttons CREATE,DISPLAY and CHANGE in application toolbar.
    user enter some value in field and either he press change or dispaly
    When change i need to call selection screen when it is in dispaly i need to stop calling this selection screen.
    Upto my knowledge we can't stop calling selection screen in display mode so there is only one possibility is hiding the fields when it is in display mode.
    How can i hide the fields and where i need to hide fields?
    Please post some codes.
    Regards,
    Lisa

    you can refer the sample code which i mentioned in your previous post. that will solve the problem.

  • Hiding Screen fields in a Report selection screen

    Hi Experts,
    I have a requirement to hide/disable  screen fields in a report selection screen when the user clicks on some radio buttons .
    Here is the scenario,
    1) There are 4 radio buttons four radiobuttons in one group on the selection screen:--  
    Block no:1
    PARAMETER: r_not  TYPE c RADIOBUTTON GROUP a1 DEFAULT 'X'.
    PARAMETER: r_prgs TYPE c RADIOBUTTON GROUP a1.
    PARAMETER: r_remv TYPE c RADIOBUTTON GROUP a1.
    PARAMETER: r_noresp TYPE c RADIOBUTTON GROUP a1.
    2) Based on the user clicking/selecting the radio buttons no.2,3 nad 4 i need to hide some fields in the other selection block
    in the selection screen.The parameters are as follows:
    Block no:2( These fields need to be hidden/disabled)
    PARAMETER: r_occ(3) TYPE c OBLIGATORY DEFAULT '1'.
    PARAMETER: r_and TYPE c RADIOBUTTON GROUP g1.
    PARAMETER: r_or  TYPE c RADIOBUTTON GROUP g1.
    PARAMETER: r_days(3) TYPE c OBLIGATORY DEFAULT '1'.
    Thanks

    Contd.....
    AT SELECTION-SCREEN.
      CASE SSCRFIELDS-UCOMM.   
          "When Customer button is clicked set flag 1
        WHEN 'FC01'.
          L_FLAG = '1'.
          "When Sales Order button is clicked set flag 2
        WHEN 'FC02'. "Sales order
          L_FLAG = '2'.
          "When Execute button is clicked set flag 4
        WHEN OTHERS.
          L_FLAG = '4'.
      ENDCASE.
    AT SELECTION-SCREEN OUTPUT.
    CASE L_FLAG.
        WHEN '1'.  "When Customer button is clicked
          LOOP AT SCREEN.
            "Set the Production and Customer Block as inactive
            IF  SCREEN-GROUP1 = 'BL1' OR SCREEN-GROUP1 = 'BL3'.
              SCREEN-ACTIVE = '0'.
              MODIFY SCREEN.
            ENDIF.
          ENDLOOP.
        WHEN '2'. "When Sales Order button is clicked
          LOOP AT SCREEN.
            "Set the Production and Customer Block as inactive
            IF  SCREEN-GROUP1 = 'BL1' OR SCREEN-GROUP1 = 'BL2'.
              SCREEN-ACTIVE = '0'.
              MODIFY SCREEN.
            ENDIF.
          ENDLOOP.
        WHEN '3'.   "When Refresh button is clicked
          LOOP AT SCREEN.
            "Set the all Blocks as active
           IF  SCREEN-GROUP1 = 'BL2' OR SCREEN-GROUP1 = 'BL3' OR SCREEN-GROUP1 = 'BL1'.
              SCREEN-ACTIVE = '1'.
              MODIFY SCREEN.
            ENDIF.
          ENDLOOP.
        WHEN OTHERS."When Execute button is clicked
          "Set the Sales order and Customer Block as inactive
          LOOP AT SCREEN.
            IF  SCREEN-GROUP1 = 'BL2' OR SCREEN-GROUP1 = 'BL3'.
              SCREEN-ACTIVE = '0'.
              MODIFY SCREEN.
            ENDIF.
          ENDLOOP.
      ENDCASE.
    ENDFORM.      

  • Hiding fields in Report Selection Screen which have Mandatory Fields

    Hi Friends,
    I have 2 Radio Buttons. PO and SO. If PO is selected, user need to input the Plant value in the Sel.Scrn which is mandatory and Storage Location field will be invisible.
    If SO is selected, then user need to input the Plant and Storage Location value which are mandatory. Now Storage Location will be visible.
    When radio button SO is seleted, SAP triggers an error message as 'Make an entry in all required fields' without displaying Storage Location input field in Sele. Scrn.
    How to do this.?  I checked in SCN and not find perfect match to solve for Mandatory Input Fields.
    Regards,
    Suresh

    Hi,
    Yes. What Rob has told is correct. Try like this.
    AT SELECTION-SCREEN.
    IF po_po EQ 'X'.
    IF so_werks[] IS INITIAL.
    MESSAGE 'Please enter plant' TYPE 'E'.
    ENDIF.
    ELSE.
    IF so_lgort[] IS INITIAL.
    MESSAGE 'Please enter storage location' TYPE 'E'.
    ENDIF.
    IF so_werks[] IS INITIAL.
    MESSAGE 'Please enter plant' TYPE 'E'.
    ENDIF.
    ENDIF.
    Thanks,
    Vinod.

  • Hiding some fields in default selection screen in hr abap created by pernr

    Hi experts,
    I have created default selection screen,in that in the Period option I wants display only 'Today'.
    And in the selection criteria i wants to display personnel number,companycode,personnelsubarea,employee status and instead of payroll area i wants to display 'Org unit'.please tell me step by step procedure,that could be greate helpfull.
    Thanks in advance,
    mohan

    hi mohan,
    try this
       **Local constants
       CONSTANTS:
              c_0                   VALUE  '0'  ,
              c_089     TYPE char3  VALUE  '089',
              c_091     TYPE char3  VALUE  '091',
              c_095     TYPE char3  VALUE  '095',
              c_097     TYPE char3  VALUE  '097'.
                     At Selection Screen
    at selection-screen output.
    LOOP AT screen.
          IF
               screen-group4 = c_089 OR
               screen-group4 = c_091 OR
               screen-group4 = c_095 OR
               screen-group4 = c_097  .
          screen-active = c_0.
          MODIFY SCREEN.
         ENDIF.
      ENDLOOP.

  • Hiding variable values in the input selection screen.

    Hello Experts,
    We have an authorisation relevant characteristic on which we have built a variable. We have restricted few values for this characteristic through the analysis authorisation.
    The business requirement is that these values which are maintained in the analysis authorisation should not be populated in the input selection screen for that particular variable. In other words we have to hide these values but the variable should a part of input selection screen.
    Can anyone please guide on how can we hide these variable values inspite of maintaining them in our analysis authorisations.
    Thanks..
    Best Regds,
    Suyog...

    Hi Suyog,
    Have you got any solution on this issue.  I have same kind of issue in BI7.  When running the RSRT transaction manager has to give some comments for a document option.  but the subordinates should not modify or see the comments.  Is there any way to restrict this access to certain users.  Our requirement is to either disable the document option or should not appear in the list.
    please give your inputs to find a way to solution.
    Thanks in advance.
    Regards,,
    Appala Raju

  • Hiding some fields in default selection screen in hr abap

    Hi Experts,
      I am new to hr abap.I have created default selection screen by using LDB .in that i wants to display only the personnel number field.
    could any help me how to hide further selections,sort order and search helps at top of screen.
    thanks in advace,
    mohan

    use
    at slection-screen output.
    loop at screen.
    if screen-name = 'PNPBUKRS'. (example)
    screen-active = '0'.
    endif.
    modify screen.
    endloop.
    ==========================
    u can do it as group wise also.
    loop at screen.
    if screen-group1 = 'group name'.  (could be group1,2,3,4)
    screen-active = '0'.
    endif.
    modify screen.
    endloop.
    ====================
    Hi,
    Can u tell me which LDB and report category u are using so that i will send u the code as per the req.
    If the above code suits to ur req. pls reward the points.
    Regards
    eswar

  • Hiding a selection screen field for Standard Report Transaction

    Hello All,
    We are trying to hide a check box on the selection screen for a standard sap report transaction (s_alr....). We can hide it by creating a variant but then if the users don't select it, the checkbox will be visible. We can't use transaction variant to hide this since its not a dialog transaction.
    We don't want any users to select that option by clicking on the checkbox and then running the report. Any suggestions or help is much appreciated.
    Thanks,
    Sal

    Did you think about modifying the standard report by adding NO-DISPLAY to the parameter option?
    If you are not allowed to modify another option - although much more effort - would be to replicate the standard selection screen in an own Z-report and at the end do a SUBMIT standard report WITH parameter
    In your won report you can easily hide that parameter and always pass a space to the standard report.
    To submit data to the standard report just use
    DATA: lt_par  TYPE TABLE OF rsparams.
    build the selection table based on the selection criteria the user entered and do:
    SUBMIT rep USING SELECTION-SCREEN 1000
           WITH SELECTION-TABLE lt_par.
    Then just remove access to the standard transaction and create an own transaction for your custom report which is added to the users authorized transactions.
    Not the easiest way to do it, but it does work.
    Regards,
    Michael

Maybe you are looking for

  • PC Suite Closes down new message Window

    Hi, I have used PC Suite for some time now, and recently installed a new version when I got a new PC to work with my N73. The problem is when I send a new text message from PC Suite the message window closes down straight away, and it never used to d

  • Tips for finding a NICE Power Mac G5

    I am currently searching for a late 2005 model G5 in _nice condition_. I've come across numerous scuffed up and battered machines on Ebay, but did find a seller who has 'refurbished' Power Macs that are supposed to be in excellent "near-new condition

  • SRM User Details

    Hello, We are SRM 7.0 connected to SAP HCM system for replicating users. I wanted to check from which tables I can get the details of the User Account details in SRM User Settings under Personalization. Regards Sathya

  • Window XP LAN IP problem

    My standalone Window xp sp3 machine is running VMWARE workstation 7.0 with Red hat 5.0. as Guest O/S.  On Red Hat Linux 5.0 Oracle 11g is running fine. I have configured the n/w so I am able to access guest Red Hat Linux from host window xp as The re

  • Changing Eye Color

    I'm guessing that one changes color in Color of course but in this case I have an actress who has "blue" eyes and for at least one scene we need those eyes to be real looking brown ones. Anyone ever done this?  If so, how do you go about doing it?  S