How to find the responsibility given access to sharing a workbook?

I have this code to find users that files have been shared with. How can I find responsibilities that files have been shared with?
 
select docs.doc_name, 
fnd.user_name, 
priv.ap_eu_id, 
decode(usr.eu_role_flag,0,'user',1,'role') user_role
from eul_us.eul5_documents docs, 
eul_us.eul5_access_privs priv, 
eul_us.eul5_eul_users usr, 
applsys.fnd_user fnd
where docs.doc_id = priv.gd_doc_id(+)
and   priv.ap_eu_id = usr.eu_id(+)
and   usr.eu_username = '#'||fnd.user_id(+)
and   priv.ap_type = 'GD'
and   docs.doc_name = :my_doc 
-Tracy

Hello

You can probably use code like this:

select docs.doc_name,
fnd.responsibility_name,
priv.ap_eu_id,
decode(usr.eu_role_flag,0,'user',1,'role') user_role
from eul_us.eul5_documents docs,
eul_us.eul5_access_privs priv,
eul_us.eul5_eul_users usr,
applsys.fnd_responsibility_vl fnd
where docs.doc_id = priv.gd_doc_id(+)
and   priv.ap_eu_id = usr.eu_id(+)
and   usr.eu_username = '#'||fnd.application_id(+)||'#'||fnd.responsibility_id(+)
and   priv.ap_type = 'GD'
and   docs.doc_name = :my_doc 

Rod West

Tags: Business Intelligence

Similar Questions

  • How to find the responsibility of seeds of Oracle

    This correct understanding that all rows in table with created_by = 1 fnd_responsibility_tl rows are seeded by Oracle, that is, they are seeded Oracle responsibilities?

    Is there any other responsibility as well which could be sown?

    This correct understanding that all rows in table with created_by = 1 fnd_responsibility_tl rows are seeded by Oracle, that is, they are seeded Oracle responsibilities?

    Correct - unless this column has been updated manually.

    Is there any other responsibility as well which could be sown?

    Outside the query you have and the naming convention, in my view, there is no other way (diary of an SR to confirm with support of Oracle).

    Thank you
    Hussein

  • where can I find the response code

    I download CS6 and he told me to connect it to my account and register the product. the product is already registered, but I still have to find a response code

    where pr how to find the response code. Adobe said it can't access internet from my computer, but I'm on the internet now.

    Hi Tom,

    Please consult this document:

    https://helpx.Adobe.com/Creative-Suite/KB/serial-number-validation-launching-CS6.html

    Let me know if it helps.

    Kind regards

    Megha Rawat

  • How to find the serial number of the processor in the MacBook pro s serial number? I have a dead MacBook that was given for service to a third party. I doubt that they have replaced the original parts. Help, please. Thank you

    How to find the serial number of the processor in the MacBook pro s serial number? I have a dead MacBook that was given for service to a third party. I doubt that they have replaced the original parts. Help, please. Thank you

    As far as I KNOW, the serial number of the MacBook does not have the serial number of the processor.

  • How to find the primary key columns in the tables in MS Access using SQL queries

    How to find the primary key columns in the tables in MS Access using SQL queries

    Hello

    This is the forum for Windows Vista programs related issues.

    For better assistance, please try instead the Forums in SQL Server .

    Thank you! Vincenzo Di Russo - Microsoft MVP Windows Internet Explorer, Windows Desktop Experience & security - since 2003. ~ ~ ~ My MVP profile: https://mvp.support.microsoft.com/profile/Vincenzo

  • How to find the path of a file

    Hello

    I have Windows 7 Starter.

    The search utility can be used to search for files by using the ' * ' wildcard, but unfortunately it does not show the path for no results.

    I would like to know how to find the path of a file of my choice.

    For example, I record a radio on the internet, which is then saved as "MP3". Now, I want to edit such a file, but I need to know where the file is actually stored. Simply access within a 'library' does not show me where the file is actually located.

    How to discover all paths where a particular file format?

    I hope to receive a response to this request.

    Kind regards

    Rayt333

    An option for the search utility see the paths for all of its results, would be useful.

    Hi Ray

    Overall view for the search folder for Detailsof Windows Explorer , by using the View Menu on the right side of the toolbar.

    Click on the last name column heading and select the folder item.

    If you do not see the folder item, click other, scroll and select the folder item. This will add the folder column.

    Use the left mouse button to drag the folder column to the left, next to the column name .

    Now, when you perform a search, the folder column will show the path of each file found.

    Concerning

  • How to find the current MovieClip

    Hello

    I create a flash file to display the products.

    Images and Product Details are stored in the XML file.

    Is what I'm trying to create something similar to the banner on http://www.gainfeeds.com/home

    Add to this is that products are going to be right scroll to the left automatically if there is no user interaction, and produced at the Center will remain highlighted.

    I created a long strip of coverage of products with a mask, the long strip continues to move give a scroll effect.

    Now my question is how to find the product that is currently at the center of the mask?


    Thank you.

    Alok Jain

    No there is no default name assigned to them.

    If you take the parent video clip and with for you apply a getChildNum() method, do not exactly know the syntax, you can take the children of the parent in sales responsibilities. 0,1,2,3,4,... etc.

    But this isn't something that will help a lot because you don't know what this number is.

    For example, when you create the child movieclips, xml-based, I assume you are using a statement. So in this statement when creating each movieClip, fi do you something like "var m:MovieClip = new MovieClip();"also do the following"$m.name ="mc"+ i". ""

    You want to do this because the name "m" is valid only as long as the scope of the valid function is. Once the training starts again you loose any reference to the old "m" and a new one is created. So for future reference the movieClips outside the function that creates, you name them.

    After that you can call from anywhere (given that you set the path to access the parent corectly) like this: "parentMovieClip.getChildByName("m3")" If you want to target a third, or using any name you give in the creation of statement.

  • How to find the yahoo flickr Photo password used to download photos from the Photo app?

    I have 151 000 pictures on Flickr that were loaded from Iphoto, then more recently the Apple Photo app on my imac.

    I can't open a session using a browser because the browser (Chrome) has lost the password of his records.

    How to find the password that the Photo is using app?

    You can not extract the code to access from iPhoto or Photo. I could go to the Web of Flickr site and see what password recovery options they offer for your account.

  • How to find the IP iDRAC

    Hello support,

    How to find the IP iDRAC by Dell OMSA (OpenManage Server Administrator) in Dell R710 Server

    Expand 'Main system Chassis' and then select 'remote access' and you will see the IPv4 address

  • BB10: How to get the response header

    Hi guys,.

    I would like to how to get the response header of a request using a typical QNetworkAccessManager. What I really need, it's to get the server date and I know that the response header there.

    I have seen that you can access some header in the response of the requestFinished() function object. But none of them is the Respone header.

    Does anyone have any idea on this?

    Thanks in advance.

    Hello

    If you have subscribed for over QNetworkManager (QNetworkReply * response) of the signal, use:

    Reply-> rawHeaderList() for a list of all the available headers.

    reply-> header (param) make themselves known headers, but they do not include Date.

    Reply-> rawHeader ("date") for the date or other custom headers.

    http://Qt-project.org/doc/Qt-4.8/qnetworkreply.html#rawHeader

    Returns the raw content of the header headerName such as sent by the remote server. If there is no header, returns an empty byte array, which may be distinguished by a header blank. HasRawHeader () allows to check if the server sent this header field.

  • How to find the serial number adobe Installation section

    How to find the serial number adobe Installation section

    Creative cloud does not use a serial number and creative cloud subscribers for not having any serial number associated with their programs.  Creative cloud subscribers use their adobe ID to activate their programs.

    Download and install the desktop creative cloud application (after signing with your adobe - the same as that used to pay for your creative cloud subscription ID), https://creative.adobe.com/products/creative-cloud

    Open the office application (a shortcut will be on your desktop) > click applications, and then select the programs you want to install.

    the desktop application gives you access to the cs6, cc, cc 2014 and cc 2015 apps.  and probably more in the future.

    If you already have the cc desktop application and you need to update your adobe id, log out and then back to your client application using the adobe id to pay for your subscription in cc: http://helpx.adobe.com/creative-cloud/kb/sign-in-out-creative-cloud-desktop-app.html

  • How to find the number of users connected to the database of the level operating system (Linux)

    Hi all

    Could someone knows how to find the number of users connected to the database without connection with sql * more

    y at - it a command to find?

    example, we have 10 databases in a server, how to find the number of users connected to the special data base without connecting to database(v$session)?

    the Oracle version:-10g, 11g
    Operating system:-OEL4, OEL5, AIX, Solaris

    any help will be appreciated.

    Thanks in advance.

    Thank you.

    Kind regards
    Rajesh.

    but you can say total number of connection with the above given the command? It would also be useful to know.

    See you soon,.
    LKM

  • How to find the SCP to a java card

    Hello

    How will I know if a java card uses SCP01 and SCP02?
    Because I read the respose data returned by the Init setting command suite updated map, but it comes to send back more info back to entity of off - map:
    Main data of diversification 10 bytes
    2-byte key information
    Challenge map 8 bytes
    Cryptogram of card 8 bytes

    And in the same GP2.2 E.1.2.1 , it is written that
    This cryptogram of the card as well as the meter of the sequence, the challenge of the card, the secure channel protocol identifier,
    and other data are sent to the entity of off - map.
    I want to know how to find the SCP protocol identifier?

    In addition, it is written that:
    As the entity of off - map should now have the same information as the card used to generate the cipher of the card.
    It should be capable of generating the same session key and the cipher card even and performing a comparison.
    It is able to authenticate the card.

    Can someone explain please how to generate these keys and check the card?

    Thank you

    Umer says:
    I also found that the SCP is found in the Init-setting control response to date.

    It's also a good way to get the PCs?

    Yes. That's what I use. It does not give you the value of i (current hit is I = 15), but this is not a very big deal in practice (in my code anyway).

    See you soon,.
    Shane

  • How to find the child level for each table in a relational model?

    Earthlings,

    I need your help, and I know that, "Yes, we can change." Change this thread to a question answered.

    So: How to find the child level for each table in a relational model?

    I have a database of relacional (9.2), all right?
    .
         O /* This is a child who makes N references to each of the follow N parent tables (here: three), and so on. */
        /↑\ Fks
       O"O O" <-- level 2 for first table (circle)
      /↑\ Fks
    "o"o"o" <-- level 1 for middle table (circle)
       ↑ Fk
      "º"
    Tips:
    -Each circle represents a table;
    -Red no tables have foreign key
    -the picture on the front line of tree, for example, a level 3, but when 3 becomes N? How is N? That is the question.

    I started to think about the following:

    First of all, I need to know how to take the kids:
    select distinct child.table_name child
      from all_cons_columns father
      join all_cons_columns child
     using (owner, position)
      join (select child.owner,
                   child.constraint_name fk,
                   child.table_name child,
                   child.r_constraint_name pk,
                   father.table_name father
              from all_constraints father, all_constraints child
             where child.r_owner = father.owner
               and child.r_constraint_name = father.constraint_name
               and father.constraint_type in ('P', 'U')
               and child.constraint_type = 'R'
               and child.owner = 'OWNER') aux
     using (owner)
     where child.constraint_name = aux.fk
       and child.table_name = aux.child
       and father.constraint_name = aux.pk
       and father.table_name = aux.father;
    Thought...
    We will share!

    Thanks in advance,
    Philips

    Published by: BluShadow on April 1st, 2011 15:08
    formatting of code and hierarchy for readbility

    Have you looked to see if there is a cycle in the graph of dependence? Is there a table that has a foreign key to B and B has a back of A foreign key?

    SQL> create table my_emp (
      2    emp_id number primary key,
      3    emp_name varchar2(10),
      4    manager_id number
      5  );
    
    Table created.
    
    SQL> ed
    Wrote file afiedt.buf
    
      1  create table my_mgr (
      2    manager_id number primary key,
      3    employee_id number references my_emp( emp_id ),
      4    purchasing_authority number
      5* )
    SQL> /
    
    Table created.
    
    SQL> alter table my_emp
      2    add constraint fk_emp_mgr foreign key( manager_id )
      3         references my_mgr( manager_id );
    
    Table altered.
    
    SQL> ed
    Wrote file afiedt.buf
    
      1   select level lvl,
      2          child_table_name,
      3          sys_connect_by_path( child_table_name, '/' ) path
      4     from (select parent.table_name      parent_table_name,
      5                  parent.constraint_name parent_constraint_name,
      6                  child.table_name        child_table_name,
      7                  child.constraint_name   child_constraint_name
      8             from user_constraints parent,
      9                  user_constraints child
     10            where child.constraint_type = 'R'
     11              and parent.constraint_type = 'P'
     12              and child.r_constraint_name = parent.constraint_name
     13           union all
     14           select null,
     15                  null,
     16                  table_name,
     17                  constraint_name
     18             from user_constraints
     19            where constraint_type = 'P')
     20    start with child_table_name = 'MY_EMP'
     21*  connect by prior child_table_name = parent_table_name
    SQL> /
    ERROR:
    ORA-01436: CONNECT BY loop in user data
    

    If you have a cycle, you have some problems.

    (1) it is a NOCYCLE keyword does not cause the error, but that probably requires an Oracle version which is not so far off support. I don't think it was available at the time 9.2 but I don't have anything old enough to test on

    SQL> ed
    Wrote file afiedt.buf
    
      1   select level lvl,
      2          child_table_name,
      3          sys_connect_by_path( child_table_name, '/' ) path
      4     from (select parent.table_name      parent_table_name,
      5                  parent.constraint_name parent_constraint_name,
      6                  child.table_name        child_table_name,
      7                  child.constraint_name   child_constraint_name
      8             from user_constraints parent,
      9                  user_constraints child
     10            where child.constraint_type = 'R'
     11              and parent.constraint_type = 'P'
     12              and child.r_constraint_name = parent.constraint_name
     13           union all
     14           select null,
     15                  null,
     16                  table_name,
     17                  constraint_name
     18             from user_constraints
     19            where constraint_type = 'P')
     20    start with child_table_name = 'MY_EMP'
     21*  connect by nocycle prior child_table_name = parent_table_name
    SQL> /
    
           LVL CHILD_TABLE_NAME               PATH
    ---------- ------------------------------ --------------------
             1 MY_EMP                         /MY_EMP
             2 MY_MGR                         /MY_EMP/MY_MGR
             1 MY_EMP                         /MY_EMP
             2 MY_MGR                         /MY_EMP/MY_MGR
    

    (2) If you try to write on a table and all of its constraints in a file and do it in a valid order, the entire solution is probably wrong. It is impossible, for example, to generate the DDL for MY_EMP and MY_DEPT such as all instructions for a table come first, and all the instructions for the other are generated second. So even if NOCYCLE to avoid the error, you would end up with an invalid DDL script. If that's the problem, I would rethink the approach.

    -Generate the DDL for all tables without constraint
    -Can generate the DDL for all primary key constraints
    -Can generate the DDL for all unique key constraints
    -Can generate the DDL for all foreign key constraints

    This is not solidarity all the DOF for a given in the file object. But the SQL will be radically simpler writing - there will be no need to even look at the dependency graph.

    Justin

  • How to find the second largest in a pl/sql table

    Hello friends,

    I want to find the first and second maximum items in a pl/sql table.

    Here's the code...

    DECLARE
    Max_earnings_type TYPE TABLE IS NUMBER;
    max_earnings_tab max_earnings_type: = max_earnings_type();
    number of v_count: = 0;
    number of v_max_earnings;


    Can someone give me how to find the maximum first max and second in the type of the given table.

    appreciate your help.

    Thank you/kumar

    Published by: kumar73 on October 21, 2010 09:42

    kumar73 wrote:

    When I tried to implement your logic in my application, I get the following error...

    PL/SQL: digital or value error: NULL index key value table

    What happens if the PL/SQL table has NULL values. Question is how you want to handle NULL values. You want to ignore nulls as GROUP BY do? If you want to consider NULL values, you can say if you want to order the NULLS FIRST or NULLS LAST. I guess that logical GROUP BY:

    DECLARE
        TYPE max_earnings_type IS TABLE OF NUMBER;
        TYPE max_earnings_sorted_type IS TABLE OF NUMBER
          INDEX BY BINARY_INTEGER;
        max_earnings_tab        max_earnings_type;
        max_earnings_tab_sorted max_earnings_sorted_type;
    BEGIN
        SELECT  sal + comm
          BULK COLLECT
          INTO  max_earnings_tab
          FROM  emp;
        FOR v_i in 1..max_earnings_tab.count LOOP
          IF max_earnings_tab(v_i) IS NOT NULL
            THEN
              max_earnings_tab_sorted(max_earnings_tab(v_i)) := 1;
          END IF;
        END LOOP;
        DBMS_OUTPUT.PUT_LINE('MAX value in PL/SQL table is ' || nvl(to_char(max_earnings_tab_sorted.last),'NULL'));
        DBMS_OUTPUT.PUT_LINE('Second MAX value in PL/SQL table is ' || nvl(to_char(max_earnings_tab_sorted.prior(max_earnings_tab_sorted.last)),'NULL'));
    END;
    /
    MAX value in PL/SQL table is 2650
    Second MAX value in PL/SQL table is 1900
    
    PL/SQL procedure successfully completed.
    
    SQL> SELECT  sal + comm
      2    FROM  emp;
    
      SAL+COMM
    ----------
    
          1900
          1750
    
          2650
    
          1500
    
      SAL+COMM
    ----------
    
    14 rows selected.
    
    SQL>
    

    SY.

Maybe you are looking for