Get list of queries in a role

Hi,
Is it possible to get a list of all the queries which are assigned to a specific role?
I have a role and i want to generate a list of the queries in it via ABAP.
Regards,
Karen

Hi
I sugest you load the role via trx PVCG.
then get in to debug mode and track where does the reports/querys comes from.
Reg's
Edan

Similar Messages

  • Thru OEM get list of queries and their schemas that accessed my objects

    Hi,
    I have a list of objects on my schema and i need to track the list of sql queries by different users that accessed by object during this time period.
    i haven't enabled any auditing yet.
    is there any way i can get that list of queries and their schemas that accessed those particular objects during a particular time period through OEM.
    Can someone guide me please.
    Thanks in advance.
    Philip.

    create a name property in your class and assign a name property to your instances (either in the contructor) and/or using getters/setters.  (you'll need a getter anyway.)

  • How to get list of queries .....

    how to get list of all queries on a particular cube, with descriptions?
    (meta data repository is not avilable)

    Hi..
    1. In the Bex you can fild the list of queries under a data target, by opening 'Queries'.
    In the dialog box that appears, select the Infoarea button which is in the left pane.
    You will get list of all Data targets. If you expand it you can find the queries built on those data target.
    2. If you want to get the list of queries from Tables, you have to link the following tables:
    RSZRANGE
    RSZELTXREF
    RSZELTTXT
    RSRREPDIR
    RSZSELECT
    RSZCOMPDIR
    Regards,
    Debjani..

  • Query to get list of queries within a specific session.

    Hi all,
    I want to know the query which will return me all the queries within a session. I have a query which I use quite often, but it returns the last query executed within that session.
    select st.sql_text
    from v$sqltext st,v$session sn where st.address=sn.sql_address and st.hash_value=sn.sql_hash_value and
    sn.sid = <sid> and
    sn.serial# = <serial#>
    order by st.piece
    Could anybody help me.
    thanx,

    Hi,
    Thanx.
    I have one more query, does oracle server keep cursors open till end of the transaction or close it immediately as soon as query is successfully executed ? If it's not closing the cursors immediately, why the following query where I am joining v$sqltext, v$session and v$open_cursor is not retruning me all the queries in one transaction. I believe, transaction is queries executed between two successive commit / rollback. The following query is returning me the same resultset as the earlier one.
    select oc.sql_text from v$session sn, v$open_cursor oc where sn.sql_address = oc.ADDRESS and sn.sql_hash_value = oc.HASH_VALUE and sn.sid = 8 and sn.serial#= 22769;
    Thanx,

  • To get the list of queries in which a particular variable is used - urgent

    Hi Friends,
    I have a list of variables which were used in some queries, now I need to know list of queries in which the given variable is used.
    for example: There is a variable called ZVBASMNT and used in some queries, I want to get the names of the queries in which it was used.
    please give some short method for this, if there is any table or Tcode for this please provide, its bit urgent.
    Thanks & points will be given for the helpful answer
    Regards...
    Ganesh

    Dear Ganesh,
    Yes, You can find.
    Goto Metadata Repository in RSA1.
    Click on Query
    Selct / Click on a Query which uses your variable ZVACITY
    Click on your variable
    Just observe the USED BY list.
    Regards,
    Ram.

  • Getting List of Workbooks or Queries by Info Area

    Hi All,
    I want to find and categorize all workbooks/queries by Info Area
    I understand that this information could be found under Metadata Repository.
    But there are 4000 workbooks/queries which I want to categorize and I was searching for for backend tables or a program where I could find a link between the Info Area and Workbooks/Queries so that I could get list of the workbooks/Queries sorted by Info Area in one go.
    Can you please help.
    Thanks,
    Gaurav

    Hi Gaurav
    Please check the below thread..you have answer
    List of Queries/Workbooks
    Regards,
    Venkatesh

  • Listing Queries/Workbooks in Roles

    Hi!  Is there a way to list queries/workbooks by role?
    Thanks in advance!
    Marnie

    Hi,
    When you log on to the BEx by workbook or query and when you press the role button, you should be able to see all the workbooks and queries by role.
    You can also check the listing in PFCG. Give the role name and all the workbooks and queries attached to that role can be found in the menu area.
    Cheers,
    Kedar

  • How to remove Queries in menu roles?

    Hi,
    I am removing unneccessary quries added in menu roles!
    How to remove those queries from the roles?
    Raj

    Hi,
       Open your role in PFCG with edit mode -> you can see list of reports assigned here, right click on delete which is not required.

  • How to get the assignees for a specific role in process in BPM 11g

    Hi, Gurus,
    I am using BPM 11g. I am trying to retrieve all the assignees for a a specific role in process. It will be a parameter for a business rule to do further routing rule. But it seems there is no way to get the information. I found that there are Identity Service Functions in Human Task Assignment. But Identity Service Functions are not listed in Business Rule Activity, neither listed in other activities except Human Task Assignment. I cannot get the assignees in my process.
    Is there any way to get all the assignees for a role? I also tried to retrieve the assignees out engine with Worklist API, but it cannot get either. Actually we can get all the assignees information in automatic activity in OBPM 10g. Maybe I am still not familiar with 11g. Any advice is appreciated.
    FYI:
    My scenario:
    Suppose we have a role named ApprovalTeam. In this role, there will be several different department manager (BPM User) added in the role through Workspace. At run time, a request (With department info) with go through the approval by ApprovalTeam. A Business Rule Activity with decide which department manager will approve this request. Different department request will be dispatched dedicate managers, not all the managers in the role. I have an external JavaBean to get the department information from LDAP. To do the routing, I also need know all the department managers (BPM User) in the ApprovalTeam role. Then I can compare which department manager is matched with the request and assign the task to him.
    Thanks a lot,
    James
    Edited by: James Piao on May 31, 2010 6:25 PM

    or this?
    SQL> select text from ALL_VIEWS
      2  where VIEW_NAME
      3  ='EMP_VIEW';
    TEXT
    SELECT empno,ename FROM EMP
    WHERE empno=10

  • List of Queries in a Web Template

    Hi
    Hope someone can help me. I have a list of web templates and need to get all the queries that are used in these web templates. I don't mind even using a function call or se16 in BW to do this.
    Cheers
    Paul Collier

    Hi
    We are still on BW 3.5 and I have 142 web templates to go through. Using the metadata repository is a little long winded.
    Do you perhaps know of another way?
    Cheers
    Paul

  • How to find the list of Queries/Reports which are using Exceptional Aggregation in SAP BI?

    Hi All,
    We are interested to know how to find the list of Queries/ Reports which are using Exceptional aggregation in SAP BI.
    Please let us know is there any table's to check the list of reports using Exceptional Aggregation in SAP BI.

    Hi,
    Here you go..
    1) Go to table RSZCALC and get list of ELTUID where AGGREXC is not INITIAL and AGGRCHA is not initial; now you get only exception aggregation set based on some chars. Also you can further add STEPNR = 1 since your intention is just to get query name , not the calculation details; this will reduce number of entries to lookup and save DB time for next steps.
    Here you will get list of exception aggregation UUID numbers from which you can get properties from RSZELTDIR.
    2) Pass list of RSZCALC-ELTUID to table RSZELTXREF - TELTUID and get list of RSZELTXREF -SELTUID - this table stores query to it's elements maping kind.
    3) Now again pass RSZELTXREF - SELTUID into same table but into different field RSZELTZREF - TELTUID and get RSZELTXREF - SELTUID
    This step you get query reference sheet or column or query general UUID for next step.
    4) Pass list of RSZELTXREF - SELTUID into RSZELTDIR - ELTUID with DEFTP as 'REP'. Now you get list of query names in RSZELTDIR - MAPNAME and description in TXTLG.
    Note: you can also get the reference chars used for exception aggregation from RSZCALC - AGGRCHA field.
    Hope this helps.
    Please keep in mind, it might take more time depends on how many query elements you have in the system...
    Comments added for better DB performance by: Arun Thangaraj

  • Inserting queries in a role

    Hi Gurus,
    i need to assign queries to a role so that users having this role will be able to get the queries in their menu when they log into the system. How can I do it?
    Partha

    Steps 1)PFCG -->create ROLE
    2)SU01 -->assign ROLE to user
    3)RSECADMIN -->create authorization object,assign activities of 0TCT*
    Note - RSECADMIN uses 0TCT* objects
    basis ADMIN should have S_RSEC object to be assigned in order for him to use 0TCT* objects
    Roles - Query
    PFCG - create Role
    Authorization tab -change authorization data
    S_GUI = *
    S_TCODE = RRMX
    S_USER_AGR
    ACTVT = 2,3 and ACT_GROUP = *
    S_USER_TCD = RRMX
    Profiles to be given to developer
    SAP_ALL
    SAP_NEW
    0BI_ALL is the new object which gives all authorizations to users.
    More info-
    Re: How to add a Role?
    Hope it Helps
    Chetan
    @CP..

  • BI Statistics -- Need to display list of Queries with query counter

    Hi All,
    I am using the the infoobject
    0TCTBISBOBJ (BI Application Object)  - for to get the list of queries inthe system.
    I am also restricting the infoobject 0TCTBISOTYP(BI Application Object Type)-  to ELEM (Query) inthe filter area.
    I loaded load master data for 0TCTBWOBJCT_ATTR and 0TCTBWOBJCT_TEXT.
    The PROBLEM is  0TCTBISBOBJ (BI Application Object) is not only displaying queries but all the other elements like navigational attributes and some junk values like
    '$ABSEMA0
    '$VIRTUAL-000001
    Please help me isolate just queries for my display.
    Thanks,
    HM

    HI,
    Your query setup is correct, please check Note 936519 - Duplicate Records while loading 0TCTBWOBJCT master data, and many others.
    I have customers running stack 11 & 12 and had to apply dozens of notes to get TCT 7.0 to work properly. And even now about 3 notes per week are being released.
    Regards Patrick Rieken.

  • SharePoint C# Get list of sites on which user has permission (Read, Contribute, Owner, Admin, Visitor)

    HI,
    I wants to get list of sites on which user has permission, all permission name like (read, visitor, contribute, owner)
    using (SPSite oSite = new SPSite(SPContext.Current.Site.Url))
    foreach (SPWeb oWeb in oSite.RootWeb.GetSubwebsForCurrentUser())
    permission = string.Empty;
    foreach (SPGroup group in oWeb.Groups)
    foreach (SPUser u in group.Users)
    if (u.Name == (userName))
    foreach (SPRole role in u.Roles)
    permission += role.Name.ToString() + ", ";
    } // Taking All Permission details of user
    permission = " [" + permission.TrimEnd(", ".ToCharArray()) + "]";
    my final string variable will have values like [Read, Visitor] or [Read] or [visitor, Read]
    I wants to have all permission names and also geting error on u.Roles [Roles is absolute now],
     Help me to get permission by using SPRoleDefination etc
    SPRoleDefinitionCollectionroleDefinitions
    = oWeb.RoleDefinitions;
    SPRoleDefinitionroleDefinition
    foreach(SPRoleAssignmentroleAssigment
    inoWeb.RoleAssignments)
     Thanks
    Praveen

    Depending on how large your farm is and how many webapplications / site collections you need to enumerate to build this list, you might be better off using search to get the list of sites/webs that the user has access to (search results are security trimmed).
    You could then enumerate just the list of sites returned to determine the exact permissions.
    E.g. Code for getting a list of sites the user has access to:
    var ssaProxy = (SearchServiceApplicationProxy)SearchServiceApplicationProxy.GetProxy(SPServiceContext.GetContext(SPContext.Current.Site));
    var keywordQuery = new KeywordQuery(ssaProxy);
    keywordQuery.RowLimit = 200;
    keywordQuery.SelectProperties.Clear();
    keywordQuery.SelectProperties.Add("Title");
    keywordQuery.SelectProperties.Add("Url");
    keywordQuery.ResultsProvider = SearchProvider.Default;
    keywordQuery.QueryText = String.Format("contentclass:STS_Site OR contentclass:STS_Web");
    keywordQuery.ResultTypes |= ResultType.RelevantResults;
    ResultTableCollection searchResults;
    searchResults = keywordQuery.Execute();
    if (searchResults.Exists(ResultType.RelevantResults))
    var searchResult = searchResults[ResultType.RelevantResults];
    var results = new DataTable { TableName = "SearchResults" };
    results.Load(searchResult, LoadOption.OverwriteChanges);
    if (results.Rows.Count > 0)
    var resultsText = new StringBuilder();
    foreach (DataRow dataRow in results.Rows)
    var urlToWeb = dataRow["Url"] as String;
    //Perform your checking to determine the exact permissions
    Regards, Matthew
    MCPD | MCITP
    My Blog
    Please remember to click "Mark As Answer" if a post solves your problem or "Vote As Helpful" if it was useful.
    I just added a webpart to the TechNet Gallery that allows administrative users to upload, crop and format user profile photos. Check it out here:
    Upload and Crop User Profile Photos

  • How to get list of tables/users that are under audit

    Hello,
    For testing perpose I have set audit on many tables and users.
    Is there any view or table from which I get list of objects that are kept under audit?
    Noaudit All command for disabling all of them does not work properly. I have to exactly revert audit to stop.
    Means if I write audit insert on table1;
    Now for disabling this, if I write noaudit all then it dont works but If I write noaudit insert on table1 then it works.
    So I need a list on which objects I start audit.
    Or is there any other way to stop them?
    Regards,
    Bhavin M Mistry...

    Try
    DBA_STMT_AUDIT_OPTS
    DBA_PRIV_AUDIT_OPTS
    DBA_OBJ_AUDIT_OPTS
    SYS@etest> audit role;
    Audit succeeded.
    SYS@etest> SELECT * FROM DBA_STMT_AUDIT_OPTS;
    USER_NAME                      PROXY_NAME
    AUDIT_OPTION                             SUCCESS    FAILURE
    ROLE                                     BY ACCESS  BY ACCESS

Maybe you are looking for

  • Can 'typed in' fields be saved in a PDF using Reader?

    Hi, If I set up fields in Acrobat Pro for staff to type answers into...but they use Acrobat Reader...can they save their typed out responses by saving the PDF? Or is save disabled in this case? Any work-arounds here if it is disabled, or do the staff

  • 785gm-p45 + nvidia GTS 250 = 3 screens?

    I am fairly new to this sorta thing but i was wondering if there was any way to use the HMDI port on my 785gm-p45 and also the 2 DVI outputs on my GeForce GTS 250 to run a total of 3 screens? I've heard that some mobo's and do it and some cant but i

  • Redirect to another web page

    I need to redirect visitors to another an alternate web page if they have less than Flash Player 7. I have javascript that lets me display a link the the page, but I want it to happen automatically. I'm guessing I need some kind of onLoad javascript

  • HP Mini 110 - 4108TU , Change display unit

    Hi , In the screen resolution setting under display it shows Digital Flat Panel ( where as I am using my laptop screen itself ). Because of this my  screen does not fit into the display of my laptop screen. The resolution selected is 1024 x 768. Plea

  • IBOOKS purchases on multiple devices

    I did a search here for this question and saw several incorrect responses. I bought 2 books on my IPAD and then re-downloaded them on my IPHONE 4. Come to find out in the IBOOKS FAQ on the Apple support site I didn't need to do this. All I needed to