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??

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.

  • The condition you are adding has caused the query to be invalid.

    I select a column from the structure query: DATA_SET_ID [RDF_STATEMENT]
    I enter a condition: = :P_RSTA_RDSE_ID. (This refers to a hidden field on the page. I have confirmed that the correct value is passed.)
    I click on 'apply changes' and the page returns:
    1 error has occurred
    * The condition you are adding has caused the query to be invalid.
    Previewing the condition gives: (("RDF_STATEMENT"."DATA_SET_ID" = :P_RSTA_RDSE_ID)) which looks fine.
    I've tried a literal - (("RDF_STATEMENT"."DATA_SET_ID" = 1)) - and get the same error.
    I've tried converting to an unstructured query and get 'no data found' where the same query in SQL+ returns the desired rows.

    Mak,
    I will log this as a bug. You may have to recreate the report. Sorry about that.
    Scott

  • Syntax error when adding variables in recordset (query)

    MySql,PHP,Dreamweaver,WindowsVista
    Hi I am receiving a syntax error: invalid quantifier ++ $orderNum;s*?> when adding two variables in the recordset (query) dialog box. I get the error when clicking OK.
    Here is what is entered:
    name: fieldname
    type: text
    default: -1
    runtime value: $_GET['Field']
    name: searchvalue
    type:text
    default: -1
    runtime value: $_GET['Search']
    Can anyone help with this?

    That's a completely separate issue. The error message is telling you that you have not defined the testing server correctly in the Site Definition dialog box.
    The Host directory field and URL prefix should both point to the same place, in other words, the root of your website. Host directory is the physical path, while URL prefix is the address you would put in a browser address bar.
    Select Site > Manage Sites. Select the name of the site, and click the Edit button. In the Site Definition dialog box, select the Advanced tab, and then choose Testing server from the Category list on the left.
    Depending on how your remote login works, Host directory should probably be public_html or just /. Use the same value as in the Remote server part of the Site Definition dialog box. The URL prefix should be http://gaylehansen.aisites.com/.

  • 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

  • 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

  • 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

  • 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

Maybe you are looking for