Clear parameters at a selection screen

Hi
I've a report with three parameters, but when i change one of them the value of last doesn't desappear. I try with clean [others values of parameters], but doesn't work.
Can help me ?
Thanks

Hi,
Try to clean the parameters in Selection-Screen Events.
AT SELECTION_SCREEN.
AT SELECTION_SCREEN OUTPUT.
Apart from selection screen events parameters wont change.
Hope this resolves your issue.
Esle,Copy & Paste your codes.
Regards,
Gurpreet

Similar Messages

  • How to clear parameters defined in selection screen on back button

    Hi,
    I have a report with parameters, few being input fields, and check boxes. After report is executed when user selects the back button, the selection screen is displayed again but with the old selection values. I want to clear them.
    So in the Initialization even I added the code to clear all these parameters;
    CLEAR: p_aaa, p_bbb, p_ccc.
    I debugged and control passes through this code but still the fields are not cleared and they retain the old input values.
    How to clear them ?
    thnks

    >
    Rob Burbank wrote:
    > Yes he did. My mistake.
    >
    > But isn't this what he wants? To clear the Selection screen so that something has to be entered?
    >
    > Rob
    IMO, he only wants to clear the selection screen parameters on the click of 'BACK' button
    in the list screen. If the OP clears the selection screen variables in AT SELECTION-SCREEN OUTPUT
    even, the values assinged to the selection parameters in the INITIALIZATION and with the DEFAULT addition of the PARAMETERS and SELECTION-OPTIONS statements will also be overwritten even when the report is executed for the
    first time.
    -Rajesh.

  • Too many Parameters in the Selection Screen

    Hi all,
          I have a requirement to include too many parameters in the selection screen. Let me explain the scenario.
      1.  There is an option for Output File name previously. But now i need to provide fields for 5 to 8 file names in the same  Selection Screen.
      2.  There will be 8 more check boxes coming to the selection screen. Could you please provide me the best & Optimal way to incorporate them in the same selection screen.
    Already the screen is overcrowded with many fields & What need is that 'Is there any option to utilise the Screen at most without using Tab Strip?'
    Pleas Help me in this crucial regard.
    Thanks & Best Regards,
    Vishnu

    Hi,
    Use the below logic.
    selection-screen: begin of block blk1 with frame.
    selection-screen: begin of line.
    parameters: p_chk1 as checkbox.
    SELECTION-SCREEN COMMENT 4(5) comm1.
    selection-screen position 10.
    parameters: p_file1 like rlgrap-filename.
    selection-screen: end of line.
    selection-screen: begin of line.
    parameters: p_chk2 as checkbox.
    SELECTION-SCREEN COMMENT 4(5) comm2.
    selection-screen position 10.
    parameters: p_file2 like rlgrap-filename.
    selection-screen: end of line.
    selection-screen: begin of line.
    parameters: p_chk3 as checkbox.
    SELECTION-SCREEN COMMENT 4(5) comm3.
    selection-screen position 10.
    parameters: p_file3 like rlgrap-filename.
    selection-screen: end of line.
    selection-screen: begin of line.
    parameters: p_chk4 as checkbox.
    SELECTION-SCREEN COMMENT 4(5) comm4.
    selection-screen position 10.
    parameters: p_file4 like rlgrap-filename.
    selection-screen: end of line.
    selection-screen: begin of line.
    parameters: p_chk5 as checkbox.
    SELECTION-SCREEN COMMENT 4(5) comm5.
    selection-screen position 10.
    parameters: p_file5 like rlgrap-filename.
    selection-screen: end of line.
    selection-screen: begin of line.
    parameters: p_chk6 as checkbox.
    SELECTION-SCREEN COMMENT 4(5) comm6.
    selection-screen position 10.
    parameters: p_file6 like rlgrap-filename.
    selection-screen: end of line.
    selection-screen: begin of line.
    parameters: p_chk7 as checkbox.
    SELECTION-SCREEN COMMENT 4(5) comm7.
    selection-screen position 10.
    parameters: p_file7 like rlgrap-filename.
    selection-screen: end of line.
    selection-screen: begin of line.
    parameters: p_chk8 as checkbox.
    SELECTION-SCREEN COMMENT 4(5) comm8.
    selection-screen position 10.
    parameters: p_file8 like rlgrap-filename.
    selection-screen: end of line.
    selection-screen: end of block blk1.
    initialization.
    comm1 = 'File1'.
    comm2 = 'File2'.
    comm3 = 'File3'.
    comm4 = 'File4'.
    comm5 = 'File5'.
    comm6 = 'File6'.
    comm7 = 'File7'.
    comm8 = 'File8'.

  • Add Parameters in FBL3N Selection Screen

    Hi Experts,
    Would it be possible to add parameters in FBL3N selection screen?
    We would like to add Purchase Order, Delivery Order and Year/Month.
    Thanks in advance!

    Hi
    BET 1650 will add fields in the Output screen.. it wont help you to add Selection Parameters
    I have not come across any standard way of enhancing the FBL reports.. You can copy the program and make a Z of the same... I did it for FBL1N and FBL5N to get the Profit center in the vendor/customer line item
    Br, Ajay M

  • Add input parameters to ik07 selection screen..enhancement spots

    hello experts,
    Help required..
    Please tell me how to enhance the tcode ik07 for putting the input parameters on the selection screen I think there are no badi and exits we have to use enhancement spot.
    How can i... Please reply...screenshot for reference

    Since i am adding a select option of type ekko-ebeln, i have to add a statement TABLE ekko.

  • How to remove the underline in the parameters in the selection screen?

    how to remove the underline from the parameters in the selection screen?
    i came through the comment statements in the forum is there any other ways like setting some fields in the declarattion of the parameter itself?
    like
    parameter:p1 type string .......?

    I dont think there is an alternative to removing the underlines other than to go for COMMENT. In the selection texts (of text elements) we can just give the parameter name or take the standard text from dictionary, but theres no option to remove the underlines.
    SELECTION-SCREEN BEGIN OF BLOCK rbg WITH FRAME TITLE tit.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(20) text-001 MODIF ID sc1.
    PARAMETERS:
      p_param TYPE vbak-vbeln.
    SELECTION-SCREEN END OF LINE.
    PARAMETERS:
      p_posnr TYPE vbap-posnr.
    SELECTION-SCREEN END OF BLOCK rbg.

  • Dynamic Parameters in the Selection screen

    Hi,
    I want to have a pair of Parameters (Source & Target Field) in the Selection Screen. Is it possible to create more pairs of Parameters by click of a Button or something else?
    Sinan

    hi,
    Dynamic generation of selection-screen is bit confusing.
    I have a sample program which takes an integer as an input. After giving input, click on the button on selection screen. You can make a similar logic in your case also.
    Create a program with name 'Z_13317_DYN_CHKBOX' and paste the following code in it. Also make ensure that an include with name 'Z_13317_DYN_INCL' is not existing earlier because this program will be overwritten each and everytime.
    Suppose, if you have given 3 as input and if you have clicked the button, then 3 checkboxes will be generated on your selection screen.
    REPORT  Z_13317_DYN_CHKBOX.
    types :begin of t_itab1,
            line(72),
           end of t_itab1.
    data: incl type table of t_itab1 with header line.
    parameters: p_tab type i,
                p_frst type c no-display.
    selection-screen begin of line.
    selection-screen: pushbutton 2(20) but1 user-command cli1.
    selection-screen end of line.
    include z_13317_dyn_incl if found.
    initialization.
    at selection-screen output.
      if p_frst = ' '.
        p_frst = 'X'.
        perform crt_dyn_incl.
      endif.
    at selection-screen.
      case sy-ucomm.
        when 'CLI1'.
        perform crt_dyn_incl.
      endcase.
    *&      Form  crt_dyn_incl
    *       text
    form crt_dyn_incl .
      perform populate_incl.
      perform del_incl.
      insert report 'Z_13317_DYN_INCL' from incl.
      commit work.
      submit z_13317_dyn_chkbox via selection-screen with p_frst = p_frst.
    endform.                    " crt_dyn_incl
    *&      Form  del_incl
    *       text
    form del_incl .
      call function 'RS_DELETE_PROGRAM'
        exporting
         program                          = 'Z_13317_DYN_INCL'
         suppress_checks                  = 'X'
         suppress_popup                   = 'X'
         with_cua                         = ' '
         with_documentation               = ' '
         with_dynpro                      = 'X'
         with_includes                    = ' '
         with_textpool                    = ' '
         with_variants                    = ' '
      if sy-subrc <> 0.
      endif.
    endform.                    " del_incl
    *&      Form  populate_incl
    *       text
    form populate_incl .
      data: v_cnt type n.
      do p_tab times.
        v_cnt = v_cnt + 1.
        incl-line = 'parameters: '.
        concatenate incl-line 'p_chk' v_cnt into incl-line.
        concatenate incl-line 'as checkbox.' into incl-line separated by space.
        append incl.
        clear incl.
      enddo.
    endform.                    " populate_incl
    Regards
    Sailaja.

  • Clear a parameter at selection-screen

    Hi guys, haven't found the answer to this one yet:
    at my selection screen, I have the field p_name(40), it's default value is "Insert your name here", what I need is:
    when the user selects the field to input data, the field must be cleared to receive the name.
    already tried "at selection-screen" but it didn't react to field selection (or did I anything wrong?)
    thank you

    What you are asking for is simply not apart of the functionality of the SAPgui. The actions which you are talking about, placing the cursor is a field, and firing an event to the application is not possible within the SAPgui presentation client.  Instead, keep you parameter P_NAME clear with not default value and just have a selection screen comment beside it.
    report zrich_0001.
    selection-screen begin of line.
    selection-screen comment 1(10) com1.
    parameters: p_name(40) TYPE C.
    selection-screen comment (30) com2.
    selection-screen end of line.
    initialization.
    com1 = 'Name'.
    com2 = 'Please enter your name here'.
    Regards,
    RIch Heilman

  • Screen enhancement to add input parameters to standard selection screen IE05

    Hello Experts,
    How can i enhance the IE05 selection screen to add some input parameters in the screen.
    Please refer the following screen to be done and please guide me for the same.

    Since i am adding a select option of type ekko-ebeln, i have to add a statement TABLE ekko.

  • How to manage obligatory parameters on standard selection screen.

    Hi all,
    How could I ensure settings some fields-parameters as  obligatory on standard selection screen-dynpro1000. I would like to manage this according choosen block. On standard dynpro 1000 I have two blocks for two different selections. Checkboxes ensure which block of selection parameters I want to use. When I check first checkbox I need to set parameters in first block as obligatory and reversely in second block.
    Thanks. zd.

    Another example...
    report zrich_0003.
    selection-screen begin of block b1 with frame .
    parameters: p_check1 as checkbox user-command chk.
    parameters: p_fielda type c modif id gp1.
    parameters: p_fieldb type c modif id gp1.
    parameters: p_fieldc type c modif id gp1.
    selection-screen end of block b1.
    selection-screen begin of block b2 with frame .
    parameters: p_check2 as checkbox user-command chk.
    parameters: p_fieldd type c modif id gp2.
    parameters: p_fielde type c modif id gp2.
    parameters: p_fieldf type c modif id gp2.
    selection-screen end of block b2.
    at selection-screen output.
      if p_check1 = 'X'.
        loop at screen.
          if screen-group1 = 'GP1'.
            screen-required = '1'.
            modify screen.
          endif.
        endloop.
      else.
        loop at screen.
          if screen-group1 = 'GP1'.
            screen-required = '0'.
            modify screen.
          endif.
        endloop.
      endif.
      if p_check2 = 'X'.
        loop at screen.
          if screen-group1 = 'GP2'.
            screen-required = '1'.
            modify screen.
          endif.
        endloop.
      else.
        loop at screen.
          if screen-group1 = 'GP2'.
            screen-required = '0'.
            modify screen.
          endif.
        endloop.
      endif.
    Regards,
    Rich Heilman

  • Parameters in a selection-screen output

    Hi Guys,
    I have this situation.
    Parameters: street(20) type c,
                       code(10) type c,
                        number(6) type c.
    If street is not initial.
      if code is initial and number is initial.
         "I have to put information into code or into number.
    endif.
    endif.
    I could do.
    AT SELECTION-SCREEN OUTPUT.
    IF P_STREET IS NOT INITIAL. "Si está lleno es obligatorio llenar Población o Código Postal
       IF P_CITY1 IS INITIAL AND P_CODE1 IS INITIAL.
          MESSAGE 'write information into Code or into Numberl' type 'E'.
       ENDIF.
    ENDIF.
    START-OF-SELECTION.
    It doesn't work very well any idea,please?
    Thanks a lot

    Basically AT SELECTION-SCREEN OUTPUT is part of the PBO of the selection-screen dynpro, error messages must be issued in the PAI of a dynpro ([else|http://help.sap.com/saphelp_nw70/helpdata/en/e5/e719bab1d711d295bf0000e8353423/frameset.htm]),  look at [online help|http://help.sap.com/saphelp_nw70/helpdata/en/9f/dbaabc35c111d1829f0000e829fbfe/frameset.htm] of the MESSAGE statement, so move your check in a AT SELECTION-SCREEN. or better put the 3 fields in a [block|http://help.sap.com/erp2005_ehp_04/helpdata/EN/79/34a23ad9b511d1950e0000e8353423/frameset.htm] (SELECTION-SCREEN BEGIN OF BLOCK/PARAMETERS/END OF BLOCK) and check the data in a AT SELECTION-SCREEN ON BLOCK, so the three fields will be available for input if an error message is issued.
    Regards

  • User Parameters default to Selection Screen params

    Hi Experts,
    I am having a SELECTION SCREEN with Parameters for Company Code(BUKRS) & Purch Org (EKORG).
    I need to default the values of these fields with their respective user parameters for BUKRS & EKORG.
    manintained iwhich are 'EKO' & 'BUK' in my program.
    How can i do that?
    Thanks
    Dan

    Hi,
    If the user maintains these parameters in their profile with the values , then the values will be populated from there.
    System->User Profile-> goto the parameters tab there you can ask the user to maintain the parameters you mentioned with the default value they need and save this.
    Now when that user runs the report, the values from the user profile will be copied to the respective selection screen parameters
    regards,
    Advait

  • Infoset Query- How do I clear the in-built selection screen in LDB

    Dear Experts,
    When LDB is used in queries unwanted selection screen blocks appear.
    Please help in getting rid of the same.
    Kind Regards
    Jogeswara Rao

    Hello Jogeswara,
    1.  In the Infoset push button Extras and then select Code tab.
    2.  Select AT SELECTION-SCREEN OUTPUT for Code Section.
    Suppose your query is based on logical database KDF and you went to hide the SELECT-OPTIONS for Company Code.
    loop at screen.
      if SCREEN-NAME = '%_KD_BUKRS_%_APP_%-TEXT' OR
         SCREEN-NAME = '%_KD_BUKRS_%_APP_%-OPTI_PUSH' OR
         SCREEN-NAME = '%_KD_BUKRS_%_APP_%-TO_TEXT' OR
         SCREEN-NAME = '%_KD_BUKRS_%_APP_%-VALU_PUSH' OR
         SCREEN-NAME = 'KD_BUKRS-LOW' OR
         SCREEN-NAME = 'KD_BUKRS-HIGH'.
        screen-invisible = '1'.
        screen-active = '0'.
        modify screen.
      endif.
    endloop.
    Kind Regards,
    Rae Ellen Woytowiez

  • Parameters on SQ01 Selection Screen

    Hi All,
    I need a parameter field on Query Selection Screen , but all i see is select-options with additional features like prevent multiple selection etc.
    The parameter field is like an indicator for example mark for deletion , if the user puts in "X" it works fine when user leaves it blank then it brings all the records (Irrespective of deletion indicator)  and if the uses specifically say single value = ' ' (I mean space) then it works fine and considers only records which are not mark for deletion.
    To work around i created a parameter in the infoset , when the user puts in "X", it works fine and when the user doesn't put in anything it brings in all the records.
    I just want to bring records which are marked for deletion if its "X" and if its blank (with out even specifying single value = '  ' then bring records which are not marked for deletion.
    Worst thing is when i declare through infoset then it displays as check box then i loose the option of saying single value = '  ',
    so in this case records marked with deletion or all records options only but i want the third option which is records which a
    Thanks

    Hi,
    You can select standard table field but it will be select option.
    Now you can pass blank value with "Single Value " selection option.

  • How to clear all selection screen parameters before calling transaction?

    Hi Experts
       I have a ABAP report that displays data using ALV.
      When I double click a cell it calls transaction MB51. Before calling the transaction I need to set some parameters of the selection screen  of the transaction.
      My code is like below:
      <UL>
       <LI>FREE MEMORY ID 'MAT'. <I>"material</I>
       <LI> FREE MEMORY ID 'WRK'. <I>"plant</I>
       <LI> FREE MEMORY ID 'CHA'. <I>"batch</I>
       <LI><I>* Get the selected ALV row data</I>
       <LI>READ TABLE i_recon INDEX p_selfield-tabindex INTO x_recon.
       <LI><I>*   If link MB51 is clicked then open tcode MB51</I>
       <LI> IF p_selfield-sel_tab_field+8(4) = 'MB51'.
       <LI><I>*   Pass material, plant to the corresponding tcode</I>
       <LI>       SET PARAMETER ID 'MAT' FIELD x_recon-matnr.
       <LI>       SET PARAMETER ID 'WRK' FIELD p_plant.
        <LI>      CALL TRANSACTION 'MB51' AND SKIP FIRST SCREEN.
    </UL>
    The problem is:
    <UL> <LI> 1. First, I run the given transaction before running the report in a separate session with some set of values in the selection screen. For example: plant = AB01, Material = 990001 and Batch = 10001.</LI>
    </UL>
    <UL>
            <LI> 2. Then in another session I run my report. In the report ALV I have selected a record where plant = AB01, Material = 990001 but Batch is blank. But it opens the transaction with plant = AB01, Material = 990001 and Batch = 10001.
    Even though in my ALV record the batch is blank yet it uses the batch value from the memory. That is, the batch value that was given in the transaction earlier. Why it is not getting cleared? I have also used FREE MEMORY ID code in the beginning. But still it is not clearing the values in the memory.
    </UL>
    <UL>
            <LI>What shall I do to clear all the selection screen parameters before calling the transaction?</LI>
    </UL>
    <UL>
            <LI>
    Thanks
    Gopal
    </LI>
    </UL>
    Edited by: gopalkrishna baliga on Aug 11, 2010 10:29 AM

    Its because sap memory is globally shared.
    Do it like this.
    READ TABLE i_recon INDEX p_selfield-tabindex INTO x_recon.
    IF p_selfield-sel_tab_field+8(4) = 'MB51'.
    perform bdc_dynpro      using 'RM07DOCS' '1000'.
    perform bdc_field       using 'BDC_OKCODE'   '=ONLI'.
    perform bdc_field       using 'MATNR-LOW'  x_recon-matnr.
    perform bdc_field       using 'WERKS-LOW'  p_plant.
    perform bdc_field       using 'CHARG-LOW'  p_batch.
    perform bdc_field       using 'DATABASE'  'X'.
    call transaction 'MB51' with i_bdcdata mode 'E'.
    endif.
    form bdc_dynpro using program dynpro.
      clear la_bdcdata.
      la_bdcdata-program  = program.
      la_bdcdata-dynpro   = dynpro.
      la_bdcdata-dynbegin = 'X'.
      append la_bdcdata to i_bdcdata.
    endform.
    form bdc_field using fnam fval.
        clear la_bdcdata.
        la_bdcdata-fnam = fnam.
        la_bdcdata-fval = fval.
        append la_bdcdata to i_bdcdata.
    endform.

Maybe you are looking for

  • Can no longer dual boot after upgrade

    Hi I used to run mac osx 10.7 dual booting with ubuntu 13.04. I used to press alt at startup to view the different partitions and select the appropriate OS. After upgrading to 10.9 I can no longer see the ubuntu partition when pressing alt. The disk

  • "Could not complete your request because it is not a valid Photoshop document"?

    Hi i am getting this error  "Could not complete your request because it is not a valid Photo shop document" i am using CS 5 . PSD files are from different sources. some are saved by me and some are from INTERNET . all files was working fine 3 weeks a

  • Please help!! photo in wineglass in Photoshop elements 9

    I am new to photoshop (or any other editing for that matter). I would love to make a picture effect of a photo in a wine glass and am about to pull my hair out trying to figure this out. I have found some instructions on the internet but am having a

  • Usage of MAX Function.

    Hi, One of our customers is facing an error while executing a PL/SQL block like, declare l_flag varchar2(30); begin select max('Y') into l_flag from v$database; -- Can use any table here end; however, when the select query is changed to as follows, n

  • Problems printing to large paper size

    Hi, Using Acrobat 9 In my work, I use different programs for floorplans and renderings. I send to my Customers the documents as PDF file , and usually the scaled floorplans are in  large paper size (22x34 or up) With one of the CAD programs, all work