Variable fu00FCr Query name

Hi,
I want to restrict the name space for the queries that people can create.
For instance one group would only be allowed to create queries starting with Z1_, the next group only queries starting with Z2_, etc.
As we have about a dozen such groups, I would rather not create a dozen different roles each with its own unique authorization restriction maintained in the authorization object S_RS_COMP in the field RSZCOMPID.
I would like to solve this issue using one role with a variable for the Query name. I'm not sure how to do this. Normally a variable is created by referencing an InfoObject and the value is checked when executing the query.
1) Which InfoObject corresponds to the field RSZCOMPID in the authorization object S_RS_COMP.
2) How would I fill this variable? I_STEP = 0, 1, 2 or 3?
3) Would the standard user exit for global variables check the value when I try to save the query?
Any help would be most welcome
Martin

We ran into this same issue a few years ago, and the only way we found to do this was by creating "a dozen" authorization roles.
However, it is really not as daunting a task as it may sound to do this. Once you get the first one set-up, you can just "copy" it to create the others, then edit the allowed query name values in each of the new ones.
Hope this helps...
Bob

Similar Messages

  • Dynamic query name

    Hello,
    I sure home someone can help me with this.
    I am trying to run dynamic loops and am stumped with how to
    call a variable name.
    As you can see, calling the variable names just isnt going to
    work out the way I am trying to do this. Can someone steer me in
    the correct direction?
    thanks,
    Matt

    quote:
    fyrehed wrote:
    I pulled out a ton of code, trying to simplify
    That's appreciated. But it was not obvious that the omission
    was deliberate and truthfully your code sample is confusing because
    few of the variables and query names match up.
    For example, you're storing a list of the ID's from the
    "getnums" query here
    ........<cfset leaguelist=valuelist(getnums.id)>
    Then you're looping through a 2nd query named "GetInfo".
    Where does that query come from?
    ........<cfloop query="Getinfo">
    Inside the loop the code references a 3rd query named
    "getLeagues"
    ........<cfquery datasource="#my.dsn#"
    name="get#getLeagues.id#">
    Then a 4th query is used in the where clause
    ........Where leagueID='#Getinums.leagueid#'
    So its unclear how many you have and which ones you're
    actually using. Honestly, the cfloops seem like an over
    complication. Unless you have another reason for using them, you
    could probably do the same thing more simply by using one cfquery
    with a JOIN and <cfoutput> with "group". That said, one
    problem that jumps out at me is here
    quote:
    <cfloop from"1" to="#listlen(leaguelist)#" index="i">
    <table>
    <cfloop query="get#i#">
    <cfif get#i# currentrow mod 2 eq 0>
    The queries were named using #getLeagues.id#. So you must use
    the
    id value, not the list index #i#. Also, you don't need to
    use the query name inside your query loop.
    <cfloop list="#leagueList#" index="currentID">
    <table>
    <cfoutput query="get#currentID#">
    <cfif currentrow mod 2 eq 0>

  • How to find out query name in customer exit for variables

    We use the same customer exit variable in different queries. In the customer exit we want to find out, which query has called the customer exit. With the technical query name we want to read a master data table entry.
    e.g. If we come from query ZG1_TEST1 we want to use selection sel1
    Query name  |  selection
    ZG1_TEST1   |  sel1
    ZG1_TEST2   |  sel2  
    How can we find out the query name in the customer exit for variables?
    Thanks for your help,
    Evi

    Hi Evi,
    check out the structure I_S_RKB1D in your exit. It contains the query.
    Siggi

  • Variable für Query name

    Hi,
    I want to restrict the name space for the queries that people can create.
    For instance one group would only be allowed to create queries starting with Z1_, the next group only queries starting with Z2_, etc.
    As we have about a dozen such groups, I would rather not create a dozen different roles each with its own unique authorization restriction maintained in the authorization object S_RS_COMP in the field RSZCOMPID.
    I would like to solve this issue using one role with a variable for the Query name. I'm not sure how to do this. Normally a variable is created by referencing an infoobject and the value is checked when executing the query.
    1) Which infoobject corrosponds to the field RSZCOMPID in the authorization object S_RS_COMP.
    2) How would I fill this variable? I_STEP = 0, 1, 2 or 3?
    3) Would the standard user exit for global variables check the value when I try to save the query?
    Any help would be most welcome
    Martin

    We ran into this same issue a few years ago, and the only way we found to do this was by creating "a dozen" authorization roles.
    However, it is really not as daunting a task as it may sound to do this. Once you get the first one set-up, you can just "copy" it to create the others, then edit the allowed query name values in each of the new ones.
    Hope this helps...
    Bob

  • Query name in the variable pop up

    Hi everybody,
    does anybody know if it is possible to put the Query name in the variable pop up in a web query? they want to see the name of the query at first sight when they open the web query and variable pop up comes up.
    thanks a lot
    Manu

    Hi Mike,
    I don't think there is much hope in this area. There was another post on this topic that you can look at:
    Re: Web Reporting - Variable Screen - Title of Report

  • Query Name in variable pop-up on the web with standard template

    While using the the standard template (0QUERY_TEMPLATE or 0ADHOC) the variable pop-up title bar contain the text: "Variable for Ad Hoc Report". Is there a way to cutomize this so for example you are able to show the query name: :Variable for query XXX"?

    Hi Mike,
    I don't think there is much hope in this area. There was another post on this topic that you can look at:
    Re: Web Reporting - Variable Screen - Title of Report

  • How to find Query name using Variable name (by Customer exit code in CMOD).

    Dear SDN,
    Enhancement name RSR00001.....Function Module name.....EXIT_SAPLRRSO_001...Include ZXRSRU01...
    Some x variable coding in done here.
    How can I find out the Query name for the X variable?
    Wating for reply...
    Thanks & Regards,
    Praveen.K

    Dear,
    I have got answer..
    Method 1 :Right click on variable in Query Designer and find the where used list.
    Method 2 : SE16--> RSZGLOBV -->Enter the variable VNAM as 'Variable Name' ->Get the VARUNIID> Go to table RSZELTXREF --> Enter the values of VARUNIID in TELTUID --> Get the list of SELTUID --> Go to table RSZCOMPDIR --> Enter the values of SELTUID in COMPUID --> Get the list of COMPID -->COMPID is the list of queries
    Thanks & Regards,
    Praveen.K

  • Table name ? with query name , variable name and variant .

    Hi All,
    Is there any single table with fields as query name , variable name and variant ?
    or any table which i can build a view to get these fields.
    or any other way ?? to get this fields in single table
    Thanks,
    Ak

    Hi,
    first use the proper heading for a question.
    you want the query all details means technical name, variable and variable type use RSRTQ
    it will give total information of query.
    Bex related tables
    RSZELTDIR ----
    Directory of the reporting component elements
    RSZELTTXT ----
    Texts of reporting component elements
    RSZELTXREF  ---
    Directory of query element references .
    Thanks,
    Phani.

  • CF Set form.variable for query and Next/Previous pages error

    I have a CF form with a select that posts to a CF "action" page.
    On the action page I: CFSET ItemNumber=#form.ItemNumber#
    I CFOUTPUT the 'ItemNumber' into the CFQUERY (which is an Inner Join dependant on the '#ItemNumber#')...
    All of the above works just fine and displays the database fields in color alternating rows, per the rest of the code.
    Here's the problem:
    I'm displaying 40 rows on a page per "Next and Previous" code. (CFPARAM name="start" default="1" and CFPARAM name="disp" default="40" along with the rest of the NextN code in the header and body). This does display 40 rows on the page and puts a link at the bottom of the page "Next 40 Rows", etc.
    Note: I'm only querying the database once and using the query (query name="data") to populate the table rows And the NextN code (CFOUTPUT name="data") And (CFIF start + disp GREATER THAN data.RecordCount, etc)...
    The problem happens when you click the "Next 40 Rows" link to display the 2nd page of rows. Since (I'm assuming) this NextN code is 're-reading' the same page from top to bottom, an error is thrown when the code tries to read the CFSET ItemNumber=#form.ItemNumber# at the top of the page.
    With the #form.ItemNumber# on this action page Originally coming from the previous posting of the form to this action page, when the "Next 40 Rows" link is clicked and the NextN code re-reads this action page - the CFSET ItemNumber (#form.ItemNumber) is not getting populated and throws the error...
    I hope I've not made this sound confusing.
    I can get the NextN code to work when I'm just querying the database without "flying in" a form variable. But when I CFSET a variable (#form.ItemNumber#) that is inserted into the query, the second page of the NextN throws an error and doesn't display.
    I would include the page code here but it would be fairly lengthy and, as well, the NextN code is a 'standard' CF code -- I've narrowed the problem down to the above "Element is undefined" (when the page tries to reload from the "Next 40 Rows" link) and am hoping there's a simple fix or another way to display the records in Next and Previous pages.
    Thanks to anyone in advance for shedding light on this.
    - e

    Thank you for the reply, Owain.
    Yes - The Next/Previous at the bottom of the page are hyperlinks.
    <a href="ThisPage.cfm?start=#Evaluate("start + disp")#">
    The following is at the top of the page (and is the variable from the form that I CFOUTPUT in the query):
    <cfparam name="ItemNumberDropdown01" default="">
    <cfset ItemNumber = #form.ItemNumberDropdown01#>
    The error report showed that the "Next Page" hyperlink was reading an undefined variable... although when the "action page" first opens from the form posting to it, it populates the CFSET just fine (per the cfparam and cfset above)... As you mention, the hyperlink clearing the form scope is what causes the error in trying to display the next set of records...
    The form page and the 'action page' are both secure pages with an application page setting the session, etc. Am I at risk in using an URL scope?
    Where would this URL scope be put? (The href is shown above - would the URL scope go in this? - How would this be written?)
    The CFPARAM and CFSET would still exist at the top of the 'action page' and still throw an error wouldn't it or would this be replaced with something else to read the form.variable for this 'first' action page to be displayed?
    Thanks again for the 'education' on this...
    - ed

  • Display long text of characteristic in Query name

    Hi All,
    I have implemented RRI between my sender and receiver query.
    When user will click on WBS Element in my sender query <b>the receiver query name will be the name of that WBS Element.</b>
    After execution,I am able to see the Short text associated with Characteristic WBS ELement but<b> i want to display Long text of WBS Element in Receiver query name</b>.
    I have tried to implement the same logic as suggested by Bhanu in following blog:
    <u>Variable screen in Web report</u>
    Kindly,suggest the appropriate solution for this issue.
    Thanks in advance.

    Hi All,
    I am still facing the same problem.
    Kindly suggest me the appropriate solution for displaying WBS Element's Long Text in Receiver's Query Name.
    Thanks in advance.
    Best Regards,
    Nilima Rodrigues

  • BW User Exit - Code in function of the query name

    Hi,
    I would like to create an user exit code which execute a algorithm different in function of the query executed. do you know in which variable is store the technical name of the query.
    CASE query
        WHEN 'Z_ZAPO_001'.
           V1 = 1
        WHEN 'Z_ZAPO_002'.
          V1 = 2    WHEN '10' OR '11' OR '12'.
    ENDCASE.

    Yaroslav,
    I_S_RKB1D-COMPID will never be filled for authorization user-exits (I_STEP = 0). Don't ask my why, I once raised this question to OSS and they replied it was never foreseen to work with authorization user-exits. God knows why, it's very unlogical and it wouldn't cost them a lot of work to get it working...
    I could solve this problem by applying a little trick. In our queries we included a user-exit keydate variable. This will push the user-exit first in I_STEP = 1 mode where I_S_RKB1D-COMPID is filled. Then save the query name by exporting it to the ABAP-memory. Afterwards, the user exit with code for I_STEP = 0 will be processed and then you can import the query name from the ABAP memory.
    I agree it sounds a little bit tricky but there is no better option I'm affraid.

  • Dynamic change in the query name based on user input

    Hi Gurus,
    In a scenario, country appears as a user input variable.When the user specifies his country, the same query displays <b>Business trends</b>' data pertaining to his own country and rest of the world(international) in two tables.The reports are developed using Web application designer.
    Can the name(description) of the query be changed  so that the user input value for country gets dynamically reflected in the query name like <b>Business trends:Selected country vs International</b>?
    Regards,
    Balaji

    Hi Bala,
      ya this can be done by text variables. create a text variable( replacement path on the country infoobject) by going to the query properties on the description.
    if the user enters country value then it will be displaed on the description of the query .
    assign points if useful .
    regards
    santosh

  • WAD: How-to get query name and pass to URL

    Hi,
    The task: In a BI 7.0 web template - get the technical query name and use that to open a URL in the format http://<MYURL>&DOCUMENTATION=<QUERYNAME>. So:
    1) User clicks an icon
    2) Get technical name of query
    3) Open the documentation for that query using a URL
    How can this be done? Do I have to use the Custom Extension web item and implement a new class using the interface IF_BICS_CONS_WEBITEM_CUST_EXIT? If so, do you have an example of how this can be done? OR even better is there an easier way to accomplish this?
    Thanks in advance,
    Jacob

    Hi Daniel,
    you could get the query name in ABAP code, also. Here is a snippet from the execute method. The Query name should be in l_sx_view at the end.
    best regards
    Arne
    TYPE-POOLS: 
      rrx1.
    DATA:
      l_string TYPE string,
      l_xml TYPE string,
      l_xml_xstring TYPE xstring,
      l_sx_view TYPE rrx1_sx_view,
    * Line Feed, CR
      c_lf TYPE string,
      l_h_lf(2) TYPE x VALUE '0D0A',
      l_r_conv TYPE REF TO cl_abap_conv_in_ce.
    * Get the line feed and carriage return for unicode
      l_r_conv = cl_abap_conv_in_ce=>create( input = l_h_lf ).
      l_r_conv->read( IMPORTING data = c_lf ).
      DATA:
      l_t_data_providers TYPE cl_bics_cons_webitem_util=>tn_t_data_provider,
      l_s_data_providers TYPE cl_bics_cons_webitem_util=>tn_s_data_provider,
      l_r_variable_container TYPE REF TO if_ixml_node.
      CLEAR e_xml.
      TRY.
    *     All data passed to the webitem exit is hold in I_XML using XML.
    *     The XML is UTF-8 encoded. You can convert the UTF-8 xstring
    *     to a simple ABAP string by calling the following method:
    *     ==================================================================
          CALL METHOD cl_bics_cons_webitem_util=>utf8_xstring_2_string
            EXPORTING
              i_utf8_xstring = i_xml
            RECEIVING
              r_string       = l_xml.
    *     The XML includes sections about the used data provider and about the
    *     variable container. The following method parses the XML and
    *     provides the IF_IXML_NODE instances for data providers and for the
    *     variable container.
    *     ==================================================================
          CALL METHOD cl_bics_cons_webitem_util=>parse_xml
            EXPORTING
              i_xml                  = i_xml
            IMPORTING
              e_t_data_providers     = l_t_data_providers
              e_r_variable_container = l_r_variable_container.
    * 01 Get name of first Data Provider
          READ TABLE l_t_data_providers INDEX 1 INTO l_s_data_providers.
          CALL TRANSFORMATION bics_cons_webitem_filter_by_dp
          PARAMETERS dataprovider = l_s_data_providers-name
          SOURCE XML i_xml
          RESULT XML l_xml_xstring.
          CALL METHOD cl_bics_cons_state_converter=>convert_xml
            EXPORTING
              i_xml     = l_xml_xstring
            IMPORTING
              e_sx_view = l_sx_view.

  • Debug Customer Exit variable in Query

    Hi ,
    Iam new to debugging Query in BI7. I know we use RSRT to debug query, but what radio buttom to check so that during debug, the code stops at Customer exit code??
    Thanks,
    DV

    Hi,
    Go to the CMOD and Put a Break Point where u require it and Execute.
    or/and
    Go to RSRT>After giving ur Query Name>Click on Execute+Debug->In the LAst Tab u have Variables>Customer Exit Before and After.
    Execute it,it shud stop at that Exit for that Query.
    Rgds
    SVU123
    Edited by: svu123 on Feb 2, 2010 8:21 AM

  • Location of variable and function names in SWF bytecode?

    Ok, so I'm looking at the specification PDF for v10 of a SWF file.
    Here is a link to it: http://www.adobe.com/devnet/swf/pdf/swf_file_format_spec_v10.pdf
    I can't find anything in there about where or how a SWF stores variable and function names in the bytecode, though SWF decompilers can find them in any SWF file. So they must be in there somewhere.
    Can any one help me on this one?

    Hi check the varaibles by giving ur tech.name of report input parameter to the below program,
    RSRQ_QUERYDEFINITION
    it will all the query details. So you can find ur varaibles where it is used exactly.
    bhaskar

Maybe you are looking for

  • How to print the top of page part along with the ALV list and generate PDF

    HI all,          I have created one ALV by using oops concept .          and also am able to get the top of page where I have One standard logo on the right hand side          and some details on the left side .            Now my requirement is to wh

  • IWeb 2.0.2 - Media Unavailable To Viewers - requests they log into iDisk

    Hello, Encountered an annoyance to viewers of my web page published to a .mac account with iWeb 2.0.2. They log in just fine and the moment they go to view a page that has media files on it, it asks them the following: 'To view this movie, you need t

  • Displaying Discoverer report through Apps Form

    Hi all, I have a question as to, is it possible to call a discoverer report created in discoverer desktop and which is stored in the database., from an Oracle Apps form using the following method WEB.SHOW_DOCUMENT(url,target).. and if yes what url ne

  • Copying and pasting attributes and styles of text track

    Simple question, I have two text tracks and would like to copy and pasts the attributes and style tabs in "inspector" to another text track. How could I do this without having to manually set each individual track as I create it. Thanks,

  • Get # from JTextfield, draw that # ovals, push button for color

    all i have an assignment that requires the user to enter a JTextField integer value. that value is then used to draw an equal # of ovals. after the ovals are drawn user selects a color button (red/blue) to fill the ovals already drawn based on the bu