Variable in Query View

We have a Query that display customer and sales information.
Different Query View have been created from the Query and inserted into the WAD.
When I execute the WAD, I have variable screen come up, I can see that the variable is filled with the value automatically (i.e. Period =7).
Is this setting (fill variable automatically) done someway in the system? I dont want to fill the variable automatically.
I changed the period from 1 to 5 and execute the query.  I can see the variable seleciton value (period 1 to 5) on the screen with result.
From the screen, I can select and choose other query view. When I choose to other query view, I can see that system read back the default variable value (Period = 7). Why the system not read the variable that I entered (period 1 to 7), instead of default variable value?
Is this bug? We're on BI7, enhancement pack 1. Do you have the same problem?

sorry somehow my forums updates were not coming to me.
when you are in the query designer go to menu and you could save different iview( info views for it). on your open file you could open files by iview and see which i view are saved and which one you want to fix. if your Iview is used in a report you could go to data provider and see what is the name of the iview and one you fix the query, go to that iview and resave it. and make sure that iview doesnt have the same defualt object in it.
do this in yrou development system and test it through making sure on dependcies reports or queries ,before transporting

Similar Messages

  • Variable with proposed value in BEX Query View

    Dear SAP-Gurus,
    I have a Web Application with some views on one query. In the inital screen i show the popup for entering the global variable values. Now my question; is it possible to give a global variable used filled by exit and used in these queries a proposed value, receeived by user exit?
    With normal query this works, but not with a query view.
    any suggestions?
    kind regards.
    Jürgen

    Hi,
    if anyone has the same problem - you just have to set the parameter variables_clear=x in webtemplate.
    same applies to bookmarks, if you want the variables to be filled by your exit.
    regards
    Jürgen

  • Variable Screen for query view is hidden

    Hi All,
       I caome across an old query in BW 3.5 which is haiving some mandatory variables. There is a query view for the same query but when i am executing the query view i didn't got any variable screen and its running for some predefined value. How one can hide the variable screen for query view.
       How can i achieve the same for a BI 7 query view.  Please guide.
    Regards:
    Jitendra

    Hi Rakesh,
        What you said is right but my concern is that next time when i open the query view variable screen shouldn't appear ie should run with previously stored variable values. I am working with BI 7 query view. Please guide.
    Regards:
    Jitendra

  • Customer Exit - Fill variable depending on query view name

    Hi
    We're running BW 7.0
    We have a query which is used for broadcasting and as well for user input. That's why we have a variable which is default filled by a customer exit. This variable is the week and is default filled: fist week of year up to actual week.
    But now we have for the same query different selection requirenments.
    The same query should be send by email with
    - first week of year up to actual week
    - previous week
    Because of dynamic variables the calweek needs to be filled by customer exit and worked until now fine - until a second requirenment was coming (separat broadcast only with previous week).
    I don't like the idea to copy the query because of maintenance work.
    I'd like to have several views - and depending on the view name etc. I would fill the customer variable. But I don't get the query view name into customer exit - right?
    Do you have any other ideas?
    How do you handle such requirenments?
    Thx
    Roger

    Hi Helder,
    I understand your requirement but I don't understand the solution you are using. I think it's a bit tricky.
    What I would do is:
    Create three variables:
    - VAR1: Single value, mandatory, ready for input, customer exit. Used to store "User input date"
    - VAR2: Select option, customer exit, not ready for input. Used to store Valid From restriction.
    - VAR3: Select option, customer exit, not ready for input. Used to store Valid to restriction.
    Then, use this code:
    WHEN 'VAR2'.
    IF I_STEP = 2.
    READ TABLE I_T_VAR_RANGE INTO LOC_VAR_RANGE
    with key VNAM = 'VAR1'.
    CLEAR L_S_RANGE.
    L_S_RANGE-LOW = LOC_VAR_RANGE-LOW.
    L_S_RANGE-SIGN = 'I'.
    L_S_RANGE-OPT = 'LE'.
    APPEND L_S_RANGE TO E_T_RANGE.
    ENDIF.
    WHEN 'VAR3'.
    IF I_STEP = 2.
    READ TABLE I_T_VAR_RANGE INTO LOC_VAR_RANGE
    with key VNAM = 'VAR1'.
    CLEAR L_S_RANGE.
    L_S_RANGE-LOW = LOC_VAR_RANGE-LOW.
    L_S_RANGE-SIGN = 'I'.
    L_S_RANGE-OPT = 'GE'.
    APPEND L_S_RANGE TO E_T_RANGE.
    ENDIF.
    I think this should work, and you'll have three independent variables used for one purpose each.
    Hope this helps.
    Regards,
    Diego

  • Command buttons to Assign Query / Query view with variables on Workbooks

    Hi experts,
    We want to have a workbook with buttons that will change the Query/Query view displayed in the unique grid we have.
    We've included command buttons on a workbook, as "<b>Data Provider Specific Command</b>" and chose the Queries, selecting the "<b>Assign Query / Query View</b>" option.
    When using queries without variables or just SAP exit variables it works perfectly, clicking the buttons change the table displayed accordingly. But when using queries that have at least one variable, in our test to select time interval, it doesn't work anymore.
    In our test, we're using just 2 queries and they have the same input variable (to select months interval); but when clicking the button no change/error occurs.
    Any ideas?
    Thanks in advance.

    Hi,
    Here is one approach - Keep three analysis items in the WT. Assign three different data providers to all three analysis items. If you do not want to show any query when the WT first loads, don't assign any query to the data providers. When a button is pushed, you can use the command SET_DATA_PROVIDER_PARAMATERS to assign a query to a DP so that that query will show up.
    Other commands that will help you would be SET_ITEM_PARAMETERS using which you can hide analysis items and also, you can use the command BACK_TO_INITIAL_DP_STATE on data providers so that they do not show up if they were blank at the start.
    Another way to hide a query is to assign the analysis item to a data provider which is blank.
    For your requirements, you will have to put multiple commands behind each button - you can decide which of the above commands suit you best.

  • Web Template with Query Views not showing Variable Screen

    Hi, I have a Web Template using 3 Query Views based on a single query.  The Query has 2 mandatory variables (CALMONTH and VERSION).  When I execute the Web Template it does not prompt with the Variable Screen, and presents the report with the Variables that were in place when the view was saved/created.  I'd like the Variables to appear.
    1. Is this the correct behavior? 
    2. Is there any documentation that might describe this behavior.
    3. Should I just copy the query and create 3 queries instead?
    Note: I did a search in SDN and found lots of similar threads, but nothing exact.  Also, I know about forcing the variable screen, but I thought I shouldn't have to do this.
    Thanks!

    k forget the view, when you run the main query... do you get a pop up for variable screen,. yes or no?
    if you dont then try to run another query and see if you get the variable screen as well. if you dont then its a bug. if you do then something is wrong in your query and its having an issue, but if you do get the screen on your query then it is a setting in your web template not in your query.
    you can also try to run the query in RSRT backend ...

  • Refreshing drop down list in a web template based on a query view

    Refreshing drop down list in a web template based on a query view  
    I have just developed my first set of portal pages displaying the results of Bex queries and query views in the SAP Netweaver portal. I developed the pages using web application designer. Each web template created with W.A.D is using a query or query view. In one template I have that is using a query view I am using a variable in my Bex query. This variable is of type customer exit, is set to variable is ready for input and calls some ABAP code which returns the current fiscal week number and year. When I run the query or query view in isolation through Bex analyzer the variables gets populated correctly. In my web template I have associated my variable from my query view to a drop down list box. However when I run the Iview created from this template the query results get refreshed but my drop down list box does not, it still shows last weeks week number. How do I get the drop down list box to refresh with the latest result from my customer exit variable?
    Regards
    Collin

    Hi  ,
    According to your description, my understanding is that you want to  filter a calendar based a look up column in SharePoint 2013.
    Calendar View not support OOTB filters connection. it is disabled for calendar view, you need to change view(not calendar view) so OOTB filters works and get connected to your view.
    You can achieve this using combination of jQuery and SharePoint OOB techniques.
    For jQuery filters refer to the  blog: enter SharePoint List Filters using jQuery
    Also you can filter Calendar View Web Part using JQuery and SPServices:
    http://blogs.visigo.com/chriscoulson/filter-a-sharepoint-calendar-list-with-a-date-picker/
    http://joshmccarty.com/2011/11/sharepoint-jquery-and-fullcalendar%E2%80%94now-with-spservices/
    http://spservices.codeplex.com/discussions/258846
    Another  way, you can have a look at the SPFilterCalendar :
    http://www.aasoftech.com/SitePages/How%20to%20Filter%20SharePoint%20Calendar%20Dynamically.aspx
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • Saving a Query View

    Hi,
    In my reports when I am doing a SAVE AS and saving the query view on Favorites, it is saving. But when i hit open and try to open the Saved view it is taking me back to the variable selection screen. Only after entering the variables is it showing the view. This was not happening earlier, when i used to hit open and click on the view it would open the saved view right there. How can I fix this problem, please advise,
    Thanks
    Rashmi.

    Please check the property of query, you will find a check box for refesh data when open the query.
    If you select the box, the system will automatically refresh the data from server when you open a query / view. The system will pop up the variable screen for var. entering.
    If it is not selected, i am wandering that the system will not pop up the var. screen and show you the report directly. But the data won't update.

  • How to pass parameter [bind variable or substitution variable] to a view?

    How can I pass a parameter [bind variable or substitution variable] to a view in Oracle?
    Some will tell me that this is not necessary, that I can only pass the parameter when I query the view, but I found some case where this cause performance issue. In long view where I use subquery factoring [WITH], it's necessary to pass the parameter many time through different subqueries and not only to the resulting view.
    In other database (SQL Server, Access), we can pass parameters through query. I can't find how to do that in Oracle. Can some one tell me what is the approach suggest by Oracle on that subject?
    Thank you in advance,
    MB
    What I can do:
    CREATE VIEW "HR"."EMP_NAME" ("FIRST_NAME", "LAST_NAME")
    AS
    SELECT FIRST_NAME, LAST_NAME FROM EMPLOYEES;
    What I want to do:
    CREATE VIEW "HR"."EMP_NAME" ("FIRST_NAME", "LAST_NAME")(prmEMP_ID)
    AS
    SELECT FIRST_NAME, LAST_NAME FROM EMPLOYEES WHERE EMPLOYEE_ID IN (:prmEMP_ID);

    Blais wrote:
    How can I pass a parameter [bind variable or substitution variable] to a view in Oracle?
    Some will tell me that this is not necessary, that I can only pass the parameter when I query the view, but I found some case where this cause performance issue. In long view where I use subquery factoring [WITH], it's necessary to pass the parameter many time through different subqueries and not only to the resulting view.Yes, there can be performance issues. Views are a form of dynamic SQL and it is hard to predict how they will perform later.
    You can't pass parameters to a view. They are not functions. The mechanism to put the values in is what you mentioned, passing the parameter when you query the view.
    In other database (SQL Server, Access), we can pass parameters through query. I can't find how to do that in Oracle. Can some one tell me what is the approach suggest by Oracle on that subject? This functionality is not supported.
    What I can do:
    CREATE VIEW "HR"."EMP_NAME" ("FIRST_NAME", "LAST_NAME")
    AS
    SELECT FIRST_NAME, LAST_NAME FROM EMPLOYEES;
    What I want to do:
    CREATE VIEW "HR"."EMP_NAME" ("FIRST_NAME", "LAST_NAME")(prmEMP_ID)
    AS
    SELECT FIRST_NAME, LAST_NAME FROM EMPLOYEES WHERE EMPLOYEE_ID IN (:prmEMP_ID);Include the bind value when you use the view in a SELECT. The value will be applied to the view at run-time, somthing like
    CREATE  VIEW "HR"."EMP_NAME_VW" ("FIRST_NAME", "LAST_NAME","EMPLOYEE_ID")(prmEMP_ID)
    AS  SELECT FIRST_NAME, LAST_NAME FROM EMPLOYEES;
    select *
      from emp_name_vw
      WHERE EMPLOYEE_ID IN (:prmEMP_ID);To use EMPLOYEE_ID I added it to your list of columns in the view so it can be referenced in the WHERE clause. If you don't want to see that value don't select it from the view.

  • Query views - selection screen fields double

    Hi expects,
    BW 3.5 SP13.
    Do you know why I have double fields in WEB report selection screen ? example Month/year ?
    In WEB properties I flag 'Display same variables only once'.
    I have a WEB report with one table based on a query and with two charts based on query views from the query. Some fields are mandatory in selection screen Month/year.
    Br,
    Ole Paludan

    Hi,
    It's query views based on same query also use in WEB report, so variables are the same.
    Query view Purpose: to get fewer key figures to charts - but still by query show all key figures in table.
    BR,
    Ole

  • Reseting filters in a Query View

    I have a query built that has a good bit of logic.
    For reporting purposes I'd like to create query views from this one query so I only have to change the logic one place when the user decides they want something tweaked.
    I need a view by company, one by responsible person  etc ....
    The problem arises that when you create the views the filters are "stuck" at what they were then (which makes the views much less useful).   My main issue is for time.  I want the Calendar Year/Month to be the value of the current closed month (the default value in the variable).  But I want the user to be able to change it <u>after</u> running.   
    These views will be used in web templates.   I've tried a few things but the closest I've come is to have a button or link that when clicked sets the filter value based on another data provider.   I don't want that -- I want the value reset when the web template opens.  I tried putting the same command in the "Before rendering" of the web template properties but get a stack overflow error
    Is there a way to save the navigation state of a query without saving the filter values?  Or is there a way I can reset the filter value in the web template?
    I very frustrated

    I am using the new NetWeaver2004s.
    We usually just publish the template to the role & have the role in the portal so I'm not sure how to add that parameter in that case.
    I tried adding to the end of the URL -- but apparently don't have the right syntax.  What syntax should I use?
    I tried checking "Reset Variables to Default" in the web template with no effect

  • Query views are not using OLAP cache

    Hi,
    I am trying to pre-fill the OLAP cache with data from a query so as to improve the performance of query views. 
    I have read several documents on the topic, such as “How to… Performance Tuning with the OLAP Cache” (http://www.sapadvisors.com/resources/Howto...PerformanceTuningwiththeOLAPCache$28pdf$29.pdf)
    As far as I can see, I have followed the instructions and guidelines in detail on how to set up the cache and pre-fill it with data. However, when I run the query views they never use the cache. For example, point 3.4 in the abovementioned document does not correspond with my results.
    I would like some input on what I am doing wrong:
    1. In RSRT I have Cache mode = 1 for the specific query.
    2. The query has no variables, but the following restrictions (in filter): 0CALMONTH = 09.2007, 10.2007, 11.2008 and 12.2007.
    3. I have one query view with the restriction 0CALMONTH = 10.2007, 11.2008 and 12.2007.
    4. I have a second query view, which builds on the same query as the first query view. This second query view has the restriction 0CALMONTH = 11.2008 and 12.2007.
    5. There are no variables in the query.
    6. I run the query. 
    7. I run the first query view, and the second query view immediately after.
    8. I check ST03 and RSRT and see that cache has not been used for either of the query views.
    Looking at point 3.4 in the abovementioned document, I argue that the three criteria have been fulfilled:
    1. Same query ID
    2. The first query view is a superset of the second query view
    3. 0CALMONTH is a part of the drill-down of the first query view.
    Can someone tell me what is wrong with my set-up?
    Kind regards,
    Thor

    You need to use following process of process chain: "Attribute change run (ATTRIBCHAN)". This process needs to be incorporated into your process chains which loads data into provider on top of which your query is based.
    See following links on topic how to build it:
    https://help.sap.com/saphelp_nw73/helpdata/en/4a/5da82c7df51cece10000000a42189b/frameset.htm
    https://help.sap.com/saphelp_nw70ehp1/helpdata/en/9a/33853bbc188f2be10000000a114084/content.htm
    cheers
    m./

  • Variables in a view

    Hi
    I had a query customer exit variables (Values will be derived based on user entry date)
    I generated 4 views from the query to use them in Web Template (Dashboard Graphs reports)......
    When i execute the report it is prompting me variable screen and query is working fine
    But where as when i execute report it is not asking me for any variables and the values are not refreshed they are fixed to the time when we created it.
    Do i need to make any kind of setting
    (I executed the report in analyzer and save it as Global View)
    Please update

    Hi,
    I've the same problem.
    My variable is well defined with "Ready for Input" option but it don't works.
    When I open my query (in hte BEX for example) the variable screen appears.
    But when I make the same with my query view, it don't refresh on open. I juste have the last refresh.
    So when I try to integrate my view in the WAD, my query view is never refreshed.
    Have you find the solution ?
    How can I specify that my query view has to refresh on open ?

  • Query Views versus Bookmarks

    Can anyone help me to understand the difference between a query view and a bookmarked query, and when best to use either of them?
    My understanding is that a query view is a saved navigational state of a query. Allowing the same underlying database query to be used for multiple query views, thus saving on system resources and improving performance.
    A bookmarked query also seems to achive the same result. It saves a navigational state of a query.
    So when should I use a bookmark and when should I use a query view?

    Hi,
    Thanks for your reply.
    I will explain the issue again so please tell me the process we are following is correct or not?
    Last month we created views for two queries and attched them in the workbook, the variable values which we have given at that time were month = 01 year 2010.
    This month when we try to access the workbooks we are getting 0 records in the views of the workbook.
    now my doubt is:
    If we create views for variable values month jan and year 2010, will they show output when we change the variable values to Feb, 2010?
    or
    Do we have to create new views every month and attach them to the existing workbook manually?
    PLease revert.
    Thanks
    SC

  • Query Views on Workbook - filter doesnt work

    Hi All,
    I have developed a workbook using a query view, When i try to do filtering using the filter button the workbook data does'nt change. Can anyone of you advise what needs to be done.
    Thanking you.

    HI Rohith,
    Thanks for the quick response.
    I tried out what you have mentioned, it didnt work. query view is inserted into a data grid and created the workbook. Filter funtionality is available and its currently working during variable value entry. Once the report is generated filter doesnt work.
    any suggestions?
    Thanks.

Maybe you are looking for