Variables in the Query

Hi All,
I had designed a query in bi 7.0 and assigned a variable for an infoobject with ready to input field checked.But while executing the query i am not getting the variable for input and directly getting the query result.
Please tell me how to solve the problem.

pratighya,
I can explain what I experienced in 3.5
With this option (Change variable values) under "Change query view" (pencil on a white paper Icon) you can set:
- in case you have created a variable where you can select the calendar month (0calmonth) which is ready for input
--> you can set that this variable should always get the value '01.2007' despite the fact that this is ready for input. You can do this under
1.  "Change variable values"
2.  input "01.2007"
3. change the face symbol to "smiling one"
After running the query the variable always get the "01.2007" until you change the face symbol back to the original status.
I hope it helped to understand the function of this "SMALL FACE ICON"
MG

Similar Messages

  • How to change Global variable in the query

    Hi,
    I have 6 reports which is using 0PDT as a global variable and has single option as a property. Now I want to change this property and have multiple selection but I am not able to change its property.
    I am able to see all the filter variables from the query property and from there I am getting edit option to change but the "single selection" option is grey/disable which is preventing me to make change in this variable. Is there any way that I delete this variable and create a local variable which has date range option.
    This is affecting all my reports and all the report needs date ranges instead of single select option.
    Thanks,
    Shivani

    Shivani,
        You can change the restrictions with new variable(right click on required infoobject and choose restrict -->> choose variables -->> move existing variable from right to left and move  new variable. Then you can see only one variable.
    You can not delete any variable if is using in some queries.
    how to restrict:
    Srini<a href="http://help.sap.com/saphelp_nw04/helpdata/en/f1/0a563fe09411d2acb90000e829fbfe/content.htm">Restricting Characteristics</a>

  • Providing access to Variables in the Query Designer

    Greetings experts and fellow consultants,
    I have a simple question, did a search and did not come up with much of an answer.  Currently, we have a system with a role for BI Power Users in order for them to create ad-hoc queries.  An issue we found was that these power users were not able to view variables within the query designer:
    Under the "Characteristic Restrictions" pane, the variables show up as (Display Not Allowed) under their associated InfoObjects.  This is presenting an issue (understandably) and I would like to provide access for these power users to see the variables.
    My question is, are there any circumstances where I would want to restrict which variables are shown to the power user?  Right now, I plan to allow display access to all variables (via S_RS_COMP+S_RS_COMP1 for those informed on Security).  Just trying to brainstorm on whether there might be scenerios where I would want to hide certain variables.
    Many thanks to all opinions, as always!

    Suresh, in my above post I knew how to enable this.  I just wanted to know in regards to security whether there were any exposures.  Apparently, I could not find any and the changes went through without issue.  The way you enable display of variables in the Query Designer is the following:
    S_RS_COMP:
    RSINFOAREA '*'
    RSINFOCUBE '*'
    RSZCOMPTP 'VAR'
    ACTVT '03'
    S_RS_COMP1:
    RSZCOMPTP 'VAR'
    RSZCOMPID '*'
    RSZOWNER '*'
    ACTVT '03'
    Hope this helps.  Of course, adjust the field values are you see fit but the minimum requirement is that RSZCOMOPTP 'VAR' (Variables) and ACTVT '03' (Display).

  • Want to See Selected Input Variables in the query output

    Hi al
    My client gives a requirment like they want to see selected variables in the query output. Like suppose if i am  entering Profit center, controlling area, version, caldayas a input on the screen. Now they want to see only Profit center and version on the query result.
    Please let me know if any one has this solution.
    Regards,
    Amit Shetye

    Hi
    Can you please give us user requirement and according to ure requirement so we given replies . If ure requirement please explain detail
    But it is not neccessary that we can put something in free char and all. Inspite of that they wanted to select the input variable as per their requirement. They dont want to restrict them in Free char.

  • How to hide a variable in the query?

    Hello everyone,
          I don't know if my framing would be correct but i would like to explain my problem first. I have a query with a variable in the result but with defaulted values. I don't want this variable to pop up when i am running a report. I don't want the users to know that this has been defaulted or i just feel it unnecessary for them to see this variable. So is there a way to avoid it or hide it. Ex: i have a varible with Cal day and Plant as optional variables and the third is Document number which i defaulted from 500 to 599 but i don't want this to popup while running the query or refreshing the report. Just fyi this variable has been used in the columns part as a selection with one key figure and one characteristic.
    Hope i am clear,
    Would surely appreciate any of your comments.
    Anjali

    Hi Anjali,
    Modify the document number variable and uncheck the "<b>Ready for Input</b>" check box. This will not display the Document number variable to the user.
    Hope this helps.
    Cheers,
    Demetrius.

  • Using variables in the Query Designer

    Hi,
    I have 2 variables 'Z_COMP_CODE' and 'Z_BUS_AREA'. The type of 'Z_COMP_CODE' is single value ,customer exit and ready for input . The type of  'Z_BUS_AREA' is selection option,customer exit and not ready for input. I want the 2 variables to work like this: when 'Z_COMP_CODE' has the value '3000', 'Z_BUS_AREA' should have all the values excluding '2106'. Now in CMOD I have written the following codes for 'Z_BUS_AREA', But it does not work. 'Z_BUS_AREA' get no value while the query is running.Can somebody tell me how to correct it?thx.
    WHEN 'Z_BUS_AREA'.
    IF i_step = 2.
             READ TABLE i_t_var_range INTO l_s_range_v
                WITH KEY vnam = 'Z_COMP_CODE'.
             IF sy-subrc EQ 0.
               IF l_s_range_v-low = '3000'.
                 l_s_range-low = '2106'.
                 l_s_range-sign = 'E'.
                 l_s_range-opt = 'EQ'.
                 INSERT l_s_range INTO TABLE e_t_range.
               ENDIF.
             ENDIF.
           ENDIF.

    It should be Customer Exit only.
    Your code looks like ok to me. Have you tried to debug it? is l_s_range taking values?
    Also i don't know much abt insert statement...may be same as append...but just try with append statement also.
    Message was edited by:
            KJ (Kamaljeet)

  • How to hide Text Variable in the Query title

    Hi guys,
    here again in a very easy pratical issue.
    I need to insert a text variable in a report title.
    The variable is updated with an exit and the text is get once the query is executed. This works fine.
    My problem is that in report selection (so opening the query and between queries available for an Infoprovider) I see the tech variable name of the query. Do you know if there is a method to hide the variable or if it is possible to valorize it when the report title in the report selection is displayed?
    Thanks in advance
    Bye!

    Hi, thanks for your answer.
    Also SAP marks this as a limitation.
    Bye!

  • Variables in the query based on infoset

    Dear all,
       I defined a variable on an infoObject in the query designer. However, when this infoObject was used in the infoSet, the variable I defined could not be seen. So in the infoset how can I use the variable I defined in other query not based on infoset? Please advise. Thanks.
    Jin Ming

    I have the same problem:
    I created an Infoset where I am using an Infoobjet that is used in a Cube.
    I have defined variables on this Infoobjet but one of them cannot be used in the new Infoset even if in the new Infoset the links between infoobjets are the same as in the Cube.
    Thank you for any help.
    Stanislas

  • Sub Queries VS  Variables in the Query

    #1
    for i in ( select a.name,b.price,a.date from
    list a, sales b
    where a.header_id=b.header_id
    and b.date_key= (select date_key from date_tab
    where date_field=trunc(sydate))
    loop
    end loop.
    #2
    select date_key into v_date_key from date_tab where date_field=trunc(sydate);
    for i in ( select a.name,b.price,a.date from
    list a, sales b
    where a.header_id=b.header_id
    and b.date_key= v_date_key)
    loop
    end loop.
    Please advice me , using the sub queries(#1) or substution variable (#2) in the condition part will improve the performance of the query.
    Thanks

    Most likely, there won't be a difference in performance.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • REG : the Variable in the query........

    Hi,
    I changed one attribute to 15 chraracters , variable was created on this attribute in the query  when I run the query with the new value(more than 10 char now) in the  selection condition I am getting the following message
    "value G57004040190  for variable  b number is invalid.."
    Do I need to do any change in the query or variable...like saving the query again
    Please let me know for solving this error....
    Regards,
    Jeetu

    Sorry frinds for late reply...
    Actually I didnt have authorization to perform what you told because I was in production.
    But one strange thing happened it got automatcally correct after some time. Might be after some time it automatically refreshes the information.
    Thanks
    Jeetu

  • Adding variable to the query

    All,
    Creating a variable for the restricted info object in the query is taken care  by the security folks or developers?

    Hey,
    For the created variable for characteristics in the query ,I have to secure the coressponding charatcteristics
    value by creating analysis authorization object.I assigned 0tcavalid,0tcaiprov,0tcaactvt,0wbs_elemt (which
    is my restricted info object )to the custom authorization(everything made active and auth.relevant).I am not
    sure what type of values to enter in the each intervals for the characteristics and under 0tcaiprov what value
    should I give??

  • How to find the variable in the Query?

    Hi Expert,
    I test the BEx query by the tfcode RSRT1, after exectued,  Go to "Info" tab and we can see the "Variable Values" colum, however, the variable values dont show all variable defined in Query, do you know which type of varible will show in this colum? Thanks very much.
    Best Regards,
    Andrew

    Hi,
    The reason you are not able to see all the variables in query designer while they are there in RSRT1 is that:
    1. Their might be some condition used in your report which need user input
    2. Their might be a restricted Key Figure with restriction based on user input
    In order to see all the variables in query designer available in RSRT1 report. Go to properties tab on the rightmost side in BI7 and select the Query. Now click on variable screen tab here you will see list of all the variables used in the report.
    Regards
    Shubh
    Edited by: Shubh Karan Rathore on Nov 16, 2010 10:57 AM

  • To know the users and the variables for the query

    Hi,
    Say I have one query and which is executed 5 times in the day n i can see this in ST03N Expert mode. Now, suppose i want to see the users who executed the query and what are the selections they gave for the query to run, is there a place to see this?
    Appreciate your time
    Sriram

    Sriram,
    You can use BW Statistics to view technical information regarding users. SAP also delivers queries that give you usage by users, just install from business content. The statistics cubes extract data from various tables including:
    RSDDSTAT
    RSDDSTATAGGR
    etc..
    You can search more, names will start with "RSDDSTAT*"
    Hope it helps,
    Farhan

  • How to use bind variable in the query to avoid hard parsing

    Hi,
    I have a query which is using literals
    strquery:='SELECT SUMTOTAL FROM tab1 WHERE BATCHNO = '''
          || gBNo
          || ''' AND A_ID = '''
          || g_id
          || ''' AND L_ID = '''
          || g_LId
          || '''  AND S_Code = ''C_3'' ';
    execute immediate strquery;I have been asked to use a bind variable to avoid hard parsing.
    How do i do it?
    Edited by: user8731258 on Jul 27, 2012 5:07 AM
    Edited by: user8731258 on Jul 27, 2012 5:08 AM

    You dont need Dynamic SQL. Your Table and Column Name are static in that query. Just use Static SQL
    SELECT SUMTOTAL
      INTO lSumTotal
      FROM tab1
    WHERE BATCHNO = gBatchNo
       AND ATM_ID  = gAtm_id
       AND LOAD_ID = gLoadId
       AND STEP_CODE = 'C_3';

  • Use of Bind Variable in the Query of view object giving null pointer excep

    I am using this code in the backing bean of my page to set the value of the bind variable 'cmdID' in the view object.
    String AM = "model.UnixCommandsAppMod";
    String CF = "UnixCommandsAppModLocal";
    ApplicationModule am = Configuration.createRootApplicationModule(AM, CF);
    ViewObject vo = am.findViewObject("Command_options_view");
    vo.setNamedWhereClauseParam("cmdID", 1);
    vo.executeQuery();
    On the fifth line it is giving NullPointer exception.
    I am not being able to figure out the reason.

    User,
    a). Don't keep posting new questions in the same thread. It really does decrease the usability of the forum. Now, if someone searches for "INFO: ADF Faces is running with time-stamp checking enabled," they will find a post about null pointer exception in a bind variable and think, "oh, that doesn't apply to me." If your question is answered, mark the answer as correct. New questions go into a new thread. Kind of funny that the thread I pointed you to with the answer to your question also has this same admonishment.. ;)
    b). I'll relent and answer your new question. Ignore that INFO message. It is not an error. It will ALWAYS ALWAYS appear when you run your application in the embedded OC4J with JDeveloper. Had you searched the forum for "INFO: ADF Faces is running with time-stamp checking enabled" you would find that the first hit (among some others) has this same answer
    John

Maybe you are looking for

  • Screen wobbles and unsatisfactory rendering after last update

    After the last automatic update (which upgraded QT to 7.2 and a couple of other things), the screen rendering has deteriorated markedly. Moving the mouse around causes the screen to wobble by a pixel or two vertically and horizontally and the renderi

  • Using the iMac 27 screen with my macbook

    Hi there, My wife has a Macbook Air and I've just ordered a 27" iMac (Dec 2012 model). Is it possible for her to plug her Macbook Air into the iMac via thunderbolt and use the larger display for the Macbook Air (much like you would with a thunderbolt

  • How can I get iPhoto to see the edited iPhone 4s photo?

    I have a new iPhone 4s.  I take a picture. I edit it and save it to the iPhone.  Then, I sync my phone with my Mac, open iPhoto.  Only the original photos appear, not the one I edited and saved.  Yet, if I e-mail the photo to myself, I can see the ed

  • GUI_UPLOAD data problem

    we are uploading .DAT file in following program, after uploading the data into sap system, we are not able to see the complete data first row last two three fields are missing, the total field values length is 331 character, even if i given the 5000

  • Import statements cannot be resolved

    I couldnt able to import the following statements, import javax.ejb.EntityBean; import javax.ejb.CreateException; import weblogic.ejb.GenericEntityBean; import weblogic.ejbgen.;* Do we need to set any properties.. I have set the classpath,path .. but