Clear the selection screen cached values

Hello BW gurus,
Is there a way to clear the contents of the selection screen(cached variable values) whenever it is refreshed?
Thanks,
madhuri

Hi Madhuri,
Please check this link if any use let me know
http://help.sap.com/saphelp_crm50/helpdata/en/6e/798e07b33b11d5993800508b6b8b11/frameset.htm
thanks
Ranganath

Similar Messages

  • Clear the selection screen

    In a report, after executing the program,  when the back button is pressed, the selction secren should not contain the previous value.
    Satis

    Hi Sathish,
    1. we have to apply some little logic to do this.
    2. we to use the following concepts :
       export .. to memory id
       imprt .. from memory id
      start-of-selection.
      at selection-screen output.
    3. Just copy paste this in new program.
      (it will CLEAR the fields, after execution
       and pressing BACK button)
    4.
    REPORT  ZAM_TEMP00                              .
    parameters : a(10) type c default 'Hi'.
    parameters : b(10) type c default 'Friend'.
    data : flag type c.
    IMPORTANT
    start-of-selection.
      flag = 'X'.
      export flag to memory id 'FLAG'.
      write :/ 'hello'.
    IMPORTANT.
    at selection-screen output.
      import flag from memory id 'FLAG'.
      if flag = 'X'.
        flag = ''.
        a = ''.
        b = ''.
      endif.
      flag = ''.
      export flag to memory id 'FLAG'.
    regards,
    amit m.

  • Clear download path in the selection screen

    Hi All,
    Im facing the problem in the selection screen.
    User wants to clear the selection screen download path when they are changing the radio button one to another another radio button. this is as below
    PARAMETERS::pa_werks like ekpo-wekrs,
                             pa_path like string.
    PARAMETERS:rb1 RADIOBUTTON GROUP g01 USER-COMMAND radio,
                  rb2 RADIOBUTTON GROUP g01,
                  rb3 RADIOBUTTON GROUP g01.
    ex:first default is rb1 radio button,so they will select the download path based on F4 help. then they will choose rb2,now the download path has to clear. cause they want choose F4 according to second radio button RB2.
    Thank you very much.
    Anu.

    Hi Anitha,
    Please try this code.
    PARAMETERS: P_FNAME LIKE RLGRAP-FILENAME.
    PARAMETERS:RB1 RADIOBUTTON GROUP G01 USER-COMMAND RADIO,
    RB2 RADIOBUTTON GROUP G01,
    RB3 RADIOBUTTON GROUP G01.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF RB1 = 'X'.
          CLEAR P_FNAME.
        ELSEIF RB2 = 'X'.
          CLEAR P_FNAME.
        ELSEIF RB3 = 'X'.
          CLEAR P_FNAME.
        ENDIF.
      ENDLOOP.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FNAME.
      CALL FUNCTION 'F4_FILENAME'
        EXPORTING
          PROGRAM_NAME  = SY-REPID
          DYNPRO_NUMBER = SY-DYNNR
          FIELD_NAME    = 'PATH'
        IMPORTING
          FILE_NAME     = P_FNAME.

  • Clearing of selections screen

    Hi!
    I wanted to asked how to clear a first screen of selections screen ( contains Parameters ans select options )  from another scrren ?
    I created an ALV report. The first screen of the report is a selections screen that contains select options and Parameters. The Alv was created by Object oriented method (not by the function 'reuse_alv_*' ) in
    a second screen. I want from the second screen on certain circumstances to leave the alv screen and to set the first screen ( that contains select options and Parameters ), however when i call the first screen i want to clear all select options and parameters, and my question is how to clear all select options and parameters before i leave to the first screen ?
    thanks
    moshe

    Hi Moshe
    Just I said in my answer you can't do a CLEAR statament in that point of your code, because the system manages the return of old data in selection screen.
    The system do what importing old data from ABAP MEMORY in the event INITIALIZATION, so or you clear the ABAP MEMORY or you clear the selection-screen in the event AT SELECTION-SCREEN OUTPUT.
    You can try this:
    IF g_it_d_data[] IS INITIAL.
    CALL FUNCTION 'POPUP_FOR_INTERACTION'
    EXPORTING
    headline = text-011 " 'Information'
    text1 = text-010
    ticon = 'I' " 'No data was found for
    " the selection criteria.'
    button_1 = 'OK'.
    here i need to clear parameters and selects option
    before leaving to screen 0
    FREE MEMORY.
    LEAVE TO SCREEN 0.
    ENDIF.
    or you place FREE MEMORY statament in INITIALIZATION.
    INITIALIZATION.
    FREE MEMORY.
    You can try to use CLEAR and REFRESH statament in AT SELECTION-SCREEN OUTPUT.
    AT SELECTION-SCREEN OUTPUT.
    Only first time
    CHECK FL_FIRST = SPACE.
    FL_FIRST = 'X'.
    REFRESH <SELECT-OPTION>.
    CLEAR <PARAMETERS>.
    Max

  • Filtering of the data based upon the selection screen data using ldb

    Hi Experts ,
    I am using ldb pnpce, for my report ,and i created my own report category with selection paramaters
    action type and payroll area
    now the problem is when i am giving the action type as Z0 ,the data to be extracted is not getting filtered
    based upon the action type ,the data consists the records having different action types other than Z0
    Please give me some solution for this

    Thanks Durga ,but the link wat ever u was for hiding the selection screen fields
    but my question is when am using get pernr event my data is not getting filtered with the selection screen paramater value
    i,e m giving action type as only hiring ,but m getting the data for all the action types ,its not filtering based upon my selection

  • Field in the selection screen as a select option with two default values

    Hi All,
    can anybody tell me how to put field in the selection screen with two defaul values.
    for ex:  selection screen the Account Group KNA1-KTOKD as a select option. The defeault value should be Y001 and Y005.
    please reply ASAP. Its urgent.
    Thanks in advance,
    Madhu

    Hi Madhu,
    Since Select options are nothing but ranges, you can use the following code to add two distinct values to the select options by default.
    s_ktokd-sign = 'I'.
    s_ktokd-option = 'EQ'.
    s_ktokd-low = 'Y001'.
    append s_ktokd.
    s_ktokd-low = 'Y005'.
    append s_ktokd.
    clear s_ktokd.
    However, if you want to mention a range like all the values between these given two values to be considered then u may use,
    select-options : s_ktokd for KNA1-KTOKD default 'Y001' to 'Y005'.
    or
    s_ktokd-sign = 'I'.
    s_ktokd-option = 'BT'.
    s_ktokd-low = 'Y001'.
    s_ktokd-high = 'Y005'.
    append s_ktokd.
    Reward if helpful.

  • Clearing only a few fields in the selection-screen

    Hi Folks,
    I am having the following fields in the selection screen.
    werks.
    matnr
    quantity
    filename like rlgrap-file.
    First time the user enters some values and executes it and comes back to the selection-screen.At this point I want <b>only matnr and quantity</b> fields in the selection-screen to be cleared.
    If I use FREE MEMORY it is clearing all the fields.I want only the above mentioned fields.I don't want to set the data in the in werks as default in the program.Kindly let me know how to achieve this.
    Thanks,
    K.Kiran.

    Hi Kiran,
    You can write your code in AT-SELECTION SCREEN OUTPUT.
    So when ever selection screen called you will have your variables you want cleared.
    USe LOOP AT SCREEN.. there.
    Regards,
    Atish

  • Displaying Variables values with Text also in the selection screen of repor

    hai
    I have one InfoObject ZPLANT .When i try to excute the report then im getting only the Values of ZPLANT(not Text of those values) .Like below
    ZPLANT :-
    101 -
    (im getting like this)
    101 London Plant ( i want like this ,when i try to excute the report).
    Please tell me how to do .
    rizwan

    Yes kamaljeet ,
    When we press F4 , then we will gwt some values .
    I want those values with description also ..
    Pls tell me how can i get those F4 values with text in the selection screen of report .
    i ll assing the points
    rizwan

  • Restrict filter values that are shown in the selection screen

    Hi Experts
    1) Is it possible to restrict the filter values that are shown in the selection screen in BEx web? When a user are asked to enter a material number and uses the selection button in BEx web, he should only see material numbers for one specific plant. How is this done? 
    2) Is it possible to remove the selection button for å characteristic filter in the selection screen in BEx web? The selection button I am talking about is the button to the right of where you enter the filter value (two white papers on top of each other). If there is no solution for question 1 we have to go for question 2 solution.
    We are using BI 04s, SP 09.
    Kind regards
    Erik

    Hi Erik,
    It seems that you would like the user to see value for 1 single plant. If the Plant Value is fixed then you can use this value in the Query and hardcode it.> in the query go to the Plant Chrac and keep a constant value of the Plant.
    How ever if you need this value to be dynamic then use a variable for customer exit and populate this value using ABAP.
    Regards,
    Jasprit

  • How to display the sort value in the selection screen in the report title

    Dear All,
    How to display the sort value in the selection screen in the report title? I have selected a value in the selection screen for sorting , but i need that values by which i have sorted with in the report title. Can you please throw some light on this!!
    Good day,
    Thanks and regards
    Arun S

    Hi Arun,
    Try this.
    1, Set one dynamic parameter,
    2, Drag and drop that parameter into  your report title.
    3, Pass the value(sort value) dynamically from your application,
    4, Cheers..
    Other wise Try with Dataset, create a dataset and fill thev alue into that.. Then  set the data source from CR designer. and darg and drop that data column into the report.
    Hope this will work,
    Regards,
    Salah
    Edited by: salahudheen muhammed on Mar 25, 2009 11:13 AM

  • How to find out the selection screen values

    Hi All,
    in BI we are having the maximum allowed cells as 500000 for a report.
    for some of the reports execution fetching the data morethan 500000 by different users.
    i could findout the report and user who has executed, But i wanted to findout for which selection user has executed.
    is it possible to find out...please help.
    Thanks,
    Krishna.

    Hi,,
    Yes it is possible.
    Open your query result in the design mode by going to BEx Analyzer->Design ToolBar
    Now take one text element and assign it to the variable which you have used for the selection screen.
    Take the same number of text element as there are in selection screen.
    Exit the design mode. In place of the text element you will find the value of the variables assigned to them.

  • How to clear the selected values in the JCombobox

    Hi All,
    Can you please tell - how to clear the selected values in the JCombobox
    I have four dropdowns in my application, When I click "CLEAR" button, what ever the values selected in the four drop downs should go off and view as "SELECT" in all the dropdowns.

    In addition to the above you should also check out [Combo Box Prompt|http://www.camick.com/java/blog.html?name=combo-box-prompt] which makes it easy to display the default prompt.

  • Reg the selection screen value request

    i am writing this code for getting corresponding material no for the plant which i giving in the selection-screen .
    parameter : WERKS type marc-werks,
                matnr type marc-matnr.
    data : begin of itab occurs 0,
           matnr like marc-matnr,
           werks like marc-werks,
           end of itab.
    at selection-screen on value-request for werks.
    select matnr werks from marc up to 10 rows into table itab.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
      EXPORTING
      DDIC_STRUCTURE         = ' '
        RETFIELD               = 'WERKS'
      PVALKEY                = ' '
       DYNPPROG               = sy-cprog
       DYNPNR                 = sy-dynnr
       DYNPROFIELD            = 'WERKS'
      STEPL                  = 0
      WINDOW_TITLE           =
      VALUE                  = ' '
       VALUE_ORG              = 'S'
      MULTIPLE_CHOICE        = ' '
      DISPLAY                = ' '
      CALLBACK_PROGRAM       = ' '
      CALLBACK_FORM          = ' '
      MARK_TAB               =
    IMPORTING
      USER_RESET             =
      TABLES
        VALUE_TAB              = itab
      FIELD_TAB              =
      RETURN_TAB             =
      DYNPFLD_MAPPING        =
    EXCEPTIONS
      PARAMETER_ERROR        = 1
      NO_VALUES_FOUND        = 2
      OTHERS                 = 3
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    pls help

    Hi Check this ...
    Its working.....
    PARAMETER : werks TYPE marc-werks,
    matnr TYPE marc-matnr.
    DATA : BEGIN OF itab OCCURS 0,
    matnr LIKE marc-matnr,
    werks LIKE marc-werks,
    END OF itab.
    DATA: dynfields TYPE TABLE OF dynpread WITH HEADER LINE.
    DATA: return TYPE TABLE OF ddshretval WITH HEADER LINE.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR werks.
      CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
        EXPORTING
          tabname           = 'T001W'
          fieldname         = 'WERKS'
          dynpprog          = sy-cprog
          dynpnr            = sy-dynnr
          dynprofield       = 'WERKS'
        TABLES
          return_tab        = return
        EXCEPTIONS
          field_not_found   = 1
          no_help_for_field = 2
          inconsistent_help = 3
          no_values_found   = 4
          OTHERS            = 5.
      REFRESH dynfields.
      READ TABLE return WITH KEY fieldname = 'WERKS'.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR matnr.
      SELECT matnr werks FROM marc
      INTO TABLE itab
      WHERE werks EQ return-fieldval.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
      EXPORTING
    DDIC_STRUCTURE = ' '
      retfield = 'MATNR'
    PVALKEY = ' '
      dynpprog = sy-cprog
      dynpnr = sy-dynnr
      dynprofield = 'MATNR'
    STEPL = 0
    WINDOW_TITLE =
    VALUE = ' '
      value_org = 'S'
    MULTIPLE_CHOICE = ' '
    DISPLAY = ' '
    CALLBACK_PROGRAM = ' '
    CALLBACK_FORM = ' '
    MARK_TAB =
    IMPORTING
    USER_RESET =
      TABLES
      value_tab = itab
    FIELD_TAB =
    RETURN_TAB =
    DYNPFLD_MAPPING =
    EXCEPTIONS
    PARAMETER_ERROR = 1
    NO_VALUES_FOUND = 2
    OTHERS = 3  .
      IF sy-subrc NE 0.
    ENDIF.
    Regards,
    Sai Ramesh

  • Retrieve input values from the selection screen

    I have a requirement to retrieve the variable value or values inputed from the selection screen and label the worksheet tab to replace the tab name 'Sheet1' from the Excel. The only way to do this would be to write a macro to label the sheets but how would I retrieve the value(s) from the selection screen criteria? Is the value of the selection screen entered by the user stored in some table? How would I write the macro to retrieve this value?
    For example, I want to retrieve the company code entered from the selection screen and lets say the company code entered as 10; I would want to replace the worksheet from 'Sheet1' to '10' . Texts would be more recognizable.

    Use the option Layout->Display Text Elements->Variables from the BEx toolbar. This will display Variable screen user input on your workbook in a fixed location. Then you can use your macro to name the worksheet with the cell reference.
    Thanks
    Vineet

  • Changing of default values on the selection screen dynamically

    Hi,
          I have 2 radiobuttons R_A & R_B and i have one text field like P_TEXT. Based on selection of radio button i have to change the default values in P_TEXT on the selection screen. like if i select R_A i have to display P_TEXT = 'A'. if i select R_B then it has to display P_TEXT = 'B'. I tried like as below
    in AT SELECTION-SCREEN OUPUT EVENT.
                 IF R_A = 'X'
                   P_TEXT = 'A'.
                 ELSEIF R_B= 'B'.
                   P_TEXT = 'B'.
                 ENDIF.
            But it's not working. it is working only for first radio button. when i select second radio button it is not giving the second value. can any one tell the sol.
    Tks in advance.

    Hi Pammi,
    Use this code, its working:-
    PARAMETERS : r_a RADIOBUTTON GROUP gp1 DEFAULT 'X' USER-COMMAND rb,
                 r_b RADIOBUTTON GROUP gp1,
                 p_text(20).
    "we use user command with the radiobutton so that some event is occured in order to call AT SELECTION-SCREEN OUTPUT.
    AT SELECTION-SCREEN OUTPUT.
      IF r_a = 'X'.
        p_text = 'Hello'.
      ELSEIF r_b = 'X'.
        p_text = 'Hi'.
      ENDIF.
    In the above case 'AT SELECTION-SCREEN OUTPUT' will act as PBO of the selection screen and will change value of selection text as per condition.
    Hope this solves your problem.
    Thanks & Regards,
    Tarun Gambhir

Maybe you are looking for

  • Sales and purchase journal - balance carry forward to next page

    Hi all, When we run sales and purchase journals in transaction S_ALR_87012357 (Belgium) and print it we want a summary per page and balance carry forward to next page. The paging is correct by selecting "statistical info not printed" in output contro

  • Problem with fading images in/out

    I have a product demo that runs from an XML feed. Text is defined in the XML as are links to external images. When an image loads it is set to alpha 0 and then fades up to 100 whilst also changing from blurred to a crisp image using a blur filter. Wh

  • Org structure uploading in SAP version 3.1i

    Hi Experts, We have to upload Organisation structure into SAP HR.We are using Version 3.1I. Can any body please tell me how to do that. It's  important as in version 3.1 i we cannot use LSMW or eCATT. Thanks and regards Rajeev Chhabra

  • Can Pages write two numbers one over another, like atomic number and mass?

    Is it possible in Pages 08 to write two numbers right atop one another like you do for atomic number and mass number? One a bit under the line, one a little over the line, both at the same place (not one after the other)? I haven't found out how to t

  • Help!  What is this and how do I make it go away?!

    I was trying to make sure a list from an internet page was written identically in a word document, and had them pulled up next to each other, side by side.  I must have unknowingly pushed something to activate whatever this thing is, because it sudde