Hide a selection screen

Hello Friends,
I have one select -options statement along with initialization event,
now i don't want to show select options screen while executing,but the output should be displayed based on the values given in initialization event(low and high)?
PLs let me knw how this can be done
Thanks in advance.
Sunny

hi sunny,
write code as
at selection-screen event.
loop at screen.
if screen-name = 'select-option variable name'.
     screen-input = 0.
modify screen.
endif.
endloop.
if helpful reward some points.
with regards,
suresh babu aluri.

Similar Messages

  • How to hide the selection screen of a Logical datebase?

    Dear All,
    I used the logical database PNP in one of my program by maintain the attribute 'Logical Database' of this program.
    Now I want to hide all the selection screen of this PNP during the ABAP runtime environment.
    Who can tell me how I can realize it?
    Thank you!
    Regards,
    Brian Liu

    Hi,
    If you call the logical database using a function module, the selection
    screen is not displayed.
    To call a logical database from another program, use the function module LDB_PROCESS.
    <b>Example code:</b>
    TABLES SPFLI.
    SELECT-OPTIONS S_CARR FOR SPFLI-CARRID.
    TYPE-POOLS: RSDS, RSFS.
    DATA: CALLBACK TYPE TABLE OF LDBCB,
    CALLBACK_WA LIKE LINE OF CALLBACK.
    DATA: SELTAB TYPE TABLE OF RSPARAMS,
    SELTAB_WA LIKE LINE OF SELTAB.
    DATA: TEXPR TYPE RSDS_TEXPR,
    FSEL TYPE RSFS_FIELDS.
    CALLBACK_WA-LDBNODE = 'SPFLI'.
    CALLBACK_WA-GET = 'X'.
    CALLBACK_WA-GET_LATE = 'X'.
    CALLBACK_WA-CB_PROG = SY-REPID.
    CALLBACK_WA-CB_FORM = 'CALLBACK_SPFLI'.
    APPEND CALLBACK_WA TO CALLBACK.
    CLEAR CALLBACK_WA.
    CALLBACK_WA-LDBNODE = 'SFLIGHT'.
    CALLBACK_WA-GET = 'X'.
    CALLBACK_WA-CB_PROG = SY-REPID.
    CALLBACK_WA-CB_FORM = 'CALLBACK_SFLIGHT'.
    APPEND CALLBACK_WA TO CALLBACK.
    SELTAB_WA-KIND = 'S'.
    SELTAB_WA-SELNAME = 'CARRID'.
    LOOP AT S_CARR.
    MOVE-CORRESPONDING S_CARR TO SELTAB_WA.
    APPEND SELTAB_WA TO SELTAB.
    ENDLOOP.
    CALL FUNCTION 'LDB_PROCESS'
    EXPORTING
    LDBNAME = 'F1S'
    VARIANT = ' '
    EXPRESSIONS = TEXPR
    FIELD_SELECTION = FSEL
    TABLES
    CALLBACK = CALLBACK
    SELECTIONS = SELTAB
    EXCEPTIONS
    LDB_NOT_REENTRANT = 1
    LDB_INCORRECT = 2
    LDB_ALREADY_RUNNING = 3
    LDB_ERROR = 4
    LDB_SELECTIONS_ERROR = 5
    LDB_SELECTIONS_NOT_ACCEPTED = 6
    VARIANT_NOT_EXISTENT = 7
    VARIANT_OBSOLETE = 8
    VARIANT_ERROR = 9
    FREE_SELECTIONS_ERROR = 10
    CALLBACK_NO_EVENT = 11
    CALLBACK_NODE_DUPLICATE = 12
    OTHERS = 13.
    IF SY-SUBRC <> 0.
    WRITE: 'Exception with SY-SUBRC', SY-SUBRC.
    ENDIF.
    FORM CALLBACK_SPFLI USING NAME TYPE LDBN-LDBNODE
    WA TYPE SPFLI
    EVT TYPE C
    CHECK TYPE C.
    CASE EVT.
    WHEN 'G'.
    WRITE: / WA-CARRID, WA-CONNID, WA-CITYFROM, WA-CITYTO.
    ULINE.
    WHEN 'L'.
    ULINE.
    ENDCASE.
    ENDFORM.
    FORM CALLBACK_SFLIGHT USING NAME TYPE LDBN-LDBNODE
    WA TYPE SFLIGHT
    EVT TYPE C
    CHECK TYPE C.
    WRITE: / WA-FLDATE, WA-SEATSOCC, WA-SEATSMAX.
    ENDFORM.
    Regards,
    Sumit.
    Message was edited by: sumit kumar
    Message was edited by: sumit kumar

  • How to hide the selection-screen Begin of Block

    Hi,
    I copied the standard program into my new 'Z' prog.
    But i dont need a selection-screen begin of block and end of block i.e. I have to hide the entire block from the output screen.
    I can delete the selction-screen block , but the field which is present inside the block is used in several places of program
    and i dont know the purpose of the fields.
    Can any one help me to hide the block.
    Thanks in advanced
    Regards,
    Darshana

    Hi
    Use keyword NO-DISPLAY with the select options or parameter which u want to hide in the selection screen.
    No need to comment statements Begin of block or end of block.
    SELECTION-SCREEN BEGIN OF BLOCK ss_01 WITH FRAME TITLE text-001.
    SELECT-OPTIONS: s_month FOR isellist-month no-display .
    PARAMETERS: p_email LIKE somlreci1-receiver no-display.
    SELECTION-SCREEN END OF BLOCK ss_01.
    It will work this way.
    Thanks

  • How to hide a selection screen comment ?

    Hi Experts,
    I have an issue in Interactive report...
    I know by using  LOOP AT SCREEN we can modify screen elements like HIDE ... in the AT SELECTION-SCREEN OUTPUT event
    But my question is i need to HIDE Selection screen comment also...I can this be achieved....???
    Please do reply me with a solution...
    Thanks in Advance...
    Reddy Arun

    Hi Reddy,
                  Please go through below code..
    it will fulfill ur requirements
    REPORT 123.
      PARAMETERS : RB_USER  RADIOBUTTON GROUP za .
    PARAMETERS :  RB_MAN   RADIOBUTTON GROUP za .
    PARAMETERS :  RB_MAN1   RADIOBUTTON GROUP za DEFAULT 'X'.
    AT SELECTION-SCREEN OUTPUT.
       PERFORM f13000_check_radio.
    FORM f13000_check_radio.
         IF rb_man1 = ''.
    LOOP AT SCREEN.
         IF screen-NAME = 'RB_MAN'.
           IF rb_man  = 'X'.
             screen-active = 0.
             rb_man  = ''.
           ELSE.
             screen-active = 1.
           ENDIF.
           MODIFY SCREEN.
         ENDIF.
         IF screen-NAME = 'RB_USER'.
           IF rb_user = 'X'.
             screen-active = 0.
             RB_USER = ''.
           ELSE.
             screen-active = 1.
           ENDIF.
           MODIFY SCREEN.
         ENDIF.
    ENDLOOP.
         ELSE.
           LOOP AT SCREEN.
         IF screen-NAME = 'RB_USER'.
             screen-active = 1.
                MODIFY SCREEN.
         ENDIF.
       IF screen-NAME = 'RB_MAN'.
             screen-active = 1.
           MODIFY SCREEN.
         ENDIF.
       ENDLOOP.
    ENDIF.
    ENDFORM.           " f13000_check_radio

  • Hide the Selection-Screen fields

    Hello, how can i hide a Logic Database's Selection-Screen?

    In the event AT SELECTION SCREEN OUTPUT you can do a LOOP AT SCREEN and turn off the ACTIVE indicator.  Use the debugger to determine what the name of the field is that you want to hide.
    So something like
    LOOP AT SCREEN.
      IF SCREEN-FIELDNAME = 'the name'.
        SCREEN-ACTIVE = '0'.
        MODIFY SCREEN.
    ENDLOOP.

  • Logical Database (PNPCE) , selection screen hide.

    Hi Gurus,
             i have couple of questions related to logical database pnpce.
    1.Since i know logical database has there own selection screen , my requirement is i want to add my custom fields to the selection screen other than what is provided is it possible or not.
    2. i want to hide the selection screen of the logical database, but i do want to create my own in which i will be declaring some select options of the standard logical database screen has, like pernr, organisation unit, etc, how do i communicate the entered data with the logical database if i dont use the logical database standard selection screen, hope i could able to explain my problem, please see into my problem and let me know thanks in advance,
    hussaini

    Hussain,
    LDB have standard selection screens, if at all you want to customize those standard selection screen you would have to define a report category for your program. You`ll have to configure in the spro settings for your corresponding report category.
    If you would like to declare your own selection criteria, you can very well do it and these criteria are visible below the standard selection criteria. You can process these elements in your program and not in the LDB standard program. Use the normal selection screen events in your program for processing your selection criteria.
    Hope this info is helpful, reward points if convinced.
    Regards

  • HOW TO HIDE SELECTION SCREEN

    HI ALL,
      I HAVE TWO SEPARATE SELECTION SCREEN IN MY PROGRAM,ONE OF MY OWN GENERATED AND OTHER ONE IS SELF GENERATED SCREEN OF THE BDC.
      NOW I WANT TO HIDE THE SELECTION SCREEN FOR THE BDC. HOW CAN I GO FOR IT.
    THANKS AND REGARDS,
    SUGEET.

    Hi again,
    1. ur requirement is NOT USING bdcrecX1 SCREEN.
      I suppose u are using CALL TRANSACTION for this.
    2. so what we should do (i also did the same)
    3.  just  declare important variables
       in your program at the top.
    DATA:   bdcdata LIKE bdcdata    OCCURS 0 WITH HEADER LINE.
          messages of call transaction
    DATA:   messtab LIKE bdcmsgcoll OCCURS 0 WITH HEADER LINE.
          error session opened (' ' or 'X')
    4. and copy the routines FORM (from bdcrecx1)
       just like :
           Start new transaction according to parameters                 *
    FORM bdc_transaction
    tables bdcmsg structure yhrs_bdcmsg
    USING tcode  p_param1 p_param2 showflag.
      DATA: l_mstring(480).
      REFRESH messtab.
      clear bdcmsg.
      refresh bdcmsg.
      CALL TRANSACTION tcode USING bdcdata
                       MODE   ctumode
                       UPDATE 'S'
                       MESSAGES INTO messtab.
      LOOP AT messtab.
        SELECT SINGLE * FROM t100 WHERE sprsl = messtab-msgspra
                                  AND   arbgb = messtab-msgid
                                  AND   msgnr = messtab-msgnr.
        IF sy-subrc = 0.
          l_mstring = t100-text.
          IF l_mstring CS '&1'.
            REPLACE '&1' WITH messtab-msgv1 INTO l_mstring.
            REPLACE '&2' WITH messtab-msgv2 INTO l_mstring.
            REPLACE '&3' WITH messtab-msgv3 INTO l_mstring.
            REPLACE '&4' WITH messtab-msgv4 INTO l_mstring.
          ELSE.
            REPLACE '&' WITH messtab-msgv1 INTO l_mstring.
            REPLACE '&' WITH messtab-msgv2 INTO l_mstring.
            REPLACE '&' WITH messtab-msgv3 INTO l_mstring.
            REPLACE '&' WITH messtab-msgv4 INTO l_mstring.
          ENDIF.
          CONDENSE l_mstring.
          IF showflag = 'X'.
           WRITE: / messtab-msgtyp, p_param1, p_param2, l_mstring.
          endif.
            move-corresponding messtab to bdcmsg.
            bdcmsg-mstr1 = l_mstring.
            append bdcmsg.
        ELSE.
          IF showflag = 'X'.
           WRITE: / messtab.
          endif.
            move-corresponding messtab to bdcmsg.
            bdcmsg-mstr1 = l_mstring.
            append bdcmsg.
          ENDIF.
      ENDLOOP.
      SKIP.
      REFRESH bdcdata.
    ENDFORM.                    "BDC_TRANSACTION
           Start new screen                                              *
    FORM bdc_dynpro USING program dynpro.
      CLEAR bdcdata.
      bdcdata-program  = program.
      bdcdata-dynpro   = dynpro.
      bdcdata-dynbegin = 'X'.
      APPEND bdcdata.
    ENDFORM.                    "BDC_DYNPRO
           Insert field                                                  *
    FORM bdc_field USING fnam fval.
      CLEAR bdcdata.
      bdcdata-fnam = fnam.
      bdcdata-fval = fval.
      APPEND bdcdata.
    ENDFORM.                    "BDC_FIELD
    5. Make all this in your own Z Include.
    6. I have used this approach and it works fantastic.
    regards,
    amit m.

  • Hide Selection screen

    Hi,
    Can anyone explain me how to hide the selection screen in SAP MSS for reports under reporting workset.
    Thanks,
    Usha

    You should have a variant defined ie a default one
    also check the iview properties also

  • How to deal with dynamic selection screen elements when macros are used?

    Hello experts,
    This is regarding the dynamic selection screen elements. Actually the requirement is to modify the existing standard report program RFUMSV00 by copying it into a Z report, adding a few selection screen elements and new fields in the output. I actually did everything required except for the one thing that is going out of my reach.
    There are a certain fields which are coming when they are not supposed to get displayed. I don't understand the code because of its obsoleteness. Neither can I debug it because it is just data declaration.
    This is the code where there is a fault. If I copy the entire code into a new Z report, I'm getting new fields like Entry Date, Document Type, Reference Transaction,  Reference key, Logical system.
      DEFINE selection_screen_line.
      selection-screen: begin of line.
      parameters &3 like &4 default 'X' modif id mc4.
      selection-screen: comment (30) &1 for field &3 modif id mc4.
      selection-screen: comment pos_low(10) text-019
                        for field &2 modif id mc4.  "neu
      parameters &2 like rfums_alv-variante modif id mc4.
      selection-screen:
          position pos_high.
      selection-screen: pushbutton (15) text-028
                        user-command &5 modif id mc4.
      selection-screen end of line.
    END-OF-DEFINITION.
    Kindly, suggest me the right solution.

    In the program attributes ( SE38 > RFUMSV00 > GOTO > Properties ), you will find a logical database BRF declared. The include DBBRFSEL is part of the selection screen of this logical database.
    The selection screen is actually the selection screen of this logical database.
    Under the Logical Database field, there is a Selection screen field where you can input which selection screen of the logical database to be used.
    But, this is just to change the selection screen that is displayed. To completely suppress it you need to remove logical database declaration from the properties of the program and call it inside your program through function module.
    You cannot just remove it from the declaration because many of its variables are used in the program.
    So call it using function module as the first step in INITIALIZATION section of the program.
    The syntax and function module to call it in your program can be found in the following thread :
    How to hide the selection screen of a Logical datebase?
    Regards,
    Ashish

  • How to suppress the Selection Screen of Logical Database

    Hi,
    I am using one Logical Database for my report.
    I want to show my customized selection Screen.
    How can I hide the Selection Screen of Logical Database?

    Hi,
    Check the attributes of the report program where you assign the LDB. You can see the parameter Selection Screen press the F4 and check the LBD is provided any Blank screen or not.
    For some LDB's you can find the Report Category in the attribute section of the report. either you can create the new screen or standard screen might be provided with Blank.
    Check there ..
    If you don't find you can use LOOP AT SCREEN..ENDLOOP to hide the fields of LDB.
    Which LDB you are using.

  • Hiding a block in selection screen

    Hi everybody,
             My requirement is to hide the entire block of a particular selection screen, find the below selection screen code.  with my piece of code,iindividual fields are getting hidden, please let me know how to hide the entire block.
              If I select rb_det then the block b2 should hide.
    Selection screen :
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-t02.
    PARAMETER: rb_sum RADIOBUTTON GROUP rtyp DEFAULT 'X' USER-COMMAND DISP,
    rb_det RADIOBUTTON GROUP rtyp.
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-t04.
    PARAMETER: cb_asco AS CHECKBOX DEFAULT 'X' modif id SEL,
    cb_divi AS CHECKBOX modif id SEL,
    cb_buen AS CHECKBOX modif id SEL,
    cb_prod AS CHECKBOX modif id SEL,
    cb_bupa AS CHECKBOX modif id SEL,
    cb_inob AS CHECKBOX modif id SEL.
    SELECTION-SCREEN END OF BLOCK b2.
    Existing code :
    A T S E L E C T I O N - S C R E E N *
    at selection-screen output.
    loop at screen.
    if screen-group1 = 'SEL'.
    if rb_det = 'X'.
    if screen-name = 'CB_ASCO' or
    screen-name = 'CB_DIVI' or
    screen-name = 'CB_BUEN' or
    screen-name = 'CB_PROD' or
    screen-name = 'CB_BUPA' or
    screen-name = 'CB_INOB' .
    screen-active = 0.
    modify screen.
    endif.
    endif.
    endif.
    endloop.
    Thanks in advance...
    Regards,
    Ravi

    Hi,
    A block will be made invisible if everything inside it is inactive. If you give all of them a MODIF ID, too, the block will disappear.
    SELECTION-SCREEN BEGIN OF BLOCK processing WITH FRAME TITLE text-030.
      SELECTION-SCREEN BEGIN OF LINE.
      PARAMETERS pa_xmanu LIKE rm08mrbr-manu DEFAULT 'X'
      RADIOBUTTON GROUP val MODIF ID id1.
      SELECTION-SCREEN COMMENT 3(30) text-040 FOR FIELD pa_xmanu MODIF ID
    id1.
      SELECTION-SCREEN POSITION 40.
      PARAMETERS pa_xauto LIKE rm08mrbr-auto
      RADIOBUTTON GROUP val MODIF ID id1.
      SELECTION-SCREEN COMMENT 43(30) text-050 FOR FIELD pa_xauto MODIF ID
    id1.
      SELECTION-SCREEN END OF LINE.
      SELECTION-SCREEN BEGIN OF LINE.
      PARAMETERS: pa_xskto LIKE rm08mrbr-skto AS CHECKBOX MODIF ID id1.
      SELECTION-SCREEN COMMENT 3(30) text-055
      FOR FIELD pa_xskto MODIF ID id1.
      SELECTION-SCREEN END OF LINE.
      SELECTION-SCREEN END OF BLOCK processing.
      AT SELECTION-SCREEN OUTPUT.
        LOOP AT SCREEN.
          IF screen-group1 = 'ID1'.
            screen-active = 0.
            MODIFY SCREEN.
          ENDIF.
    Regards,
    Priyanka.

  • 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

  • Hiding the Selection-screen contents

    Hi all,
    I wants to hide below selection screen contents(do'nt wants to display in the output)
    SELECTION-SCREEN BEGIN OF BLOCK alv WITH FRAME TITLE alvframe.
    PARAMETERS:
      p_layout    LIKE disvariant-variant,
      p_list              RADIOBUTTON GROUP alv ,
      p_grid       RADIOBUTTON GROUP alv DEFAULT 'X' .
    SELECTION-SCREEN END OF BLOCK alv.
    How to do this?
    Thanks
    Umesh

    write as below ...
    SELECTION-SCREEN BEGIN OF BLOCK alv WITH FRAME TITLE alvframe.
    PARAMETERS:
    p_layout LIKE disvariant-variant modif id abc,
    p_list RADIOBUTTON GROUP alv  modif id abc,
    p_grid RADIOBUTTON GROUP alv DEFAULT 'X'  modif id abc .
    SELECTION-SCREEN END OF BLOCK alv.
    INITIALIZATION.
    loop at screen.
    if screen-group1 eq 'ABC'.
    screen-active = 0.
    modify screen.
    endif.
    endloop.

  • 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

  • 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

Maybe you are looking for

  • Bluetooth from iPhone 3GS to MacBook Pro not working?

    I am having (seemingly) bluetooth connection issues with "some" devices to my MacBook Pro.  I note: * Mouse pairs fine * iPhone 3GS does not remain connected (focus of this forum question) Error - after pairing my iPhone 3GS to my MBP I get an error:

  • Can't purchase itunes due to login problems

    So, every time I try to sign in or try to buy an itune it asks me to log in and every time I do it tells me that additional security is needed. I have already filled all of that out and it still won't let me buy anything! help......??

  • Power consumption double compared to windows... where could energy be

    I just bought a new Laptop (Acer Aspire 5755g), and first thing after I got it was, of course, installing arch ;-) However, I noticed that the energy consumption under Linux is at least about 22 Watts in idle mode, while it uses only 10 Watts on the

  • Multimedia Messaging Services

    MMS does will expired. And expiration depends on you networ provider? Solved! Go to Solution.

  • Leyenda Borrador en Layout

    Buen dia! Espero se encuentren bien mi duda es ¿Como puedo editar la leyenda de "Borrador" que aparece en la vista previa de los documentos preliminares? Quiero cambiar la leyenda, darle formato y tamaño. Espero puedan ayudarme. Saludos, Julian Cupa