Return to Snippet

Revision: 46816
at May 12, 2016 01:01 by theonlyalterego


Updated Code
SELECT r.responsibility_name,r.responsibility_key, fa.APPLICATION_SHORT_NAME, r.version, u.user_name, u.description, ur.start_date, ur.end_date
        FROM apps_fnd.fnd_user_v u,
        apps_fnd.fnd_user_resp_groups_direct ur,
        fnd_responsibility_vl r,
        fnd_application_tl a,
        fnd_application fa
        WHERE
        ur .responsibility_id = r.responsibility_id
        AND u.user_id = ur.user_id
        AND fa.APPLICATION_ID = a.APPLICATION_ID
        AND r.application_id = a.application_id
        AND ( u.user_name = UPPER (:user_name) OR UPPER(u.description) LIKE UPPER('%'||:user_name||'%'))
        ORDER BY 5,3,2,1;

Revision: 46815
at June 14, 2012 05:48 by theonlyalterego


Updated Code
SELECT r.responsibility_name,r.responsibility_key, fa.APPLICATION_SHORT_NAME, r.version, u.user_name, u.description, r.start_date, r.end_date
    FROM apps_fnd.fnd_user_v u,
    apps_fnd.fnd_user_resp_groups ur,
    fnd_responsibility_vl r,
    fnd_application_tl a,
    fnd_application fa
    WHERE
    ur .responsibility_id = r.responsibility_id
    AND u.user_id = ur.user_id
    AND fa.APPLICATION_ID = a.APPLICATION_ID
    AND r.application_id = a.application_id
    AND ( u.user_name = UPPER (:user_name) or upper(u.description) like upper('%'||:user_name||'%'))
    ORDER BY 5,3,2,1

Revision: 46814
at December 10, 2011 05:22 by theonlyalterego


Updated Code
SELECT r.responsibility_name,r.responsibility_key, fa.APPLICATION_SHORT_NAME, r.version, u.user_name, u.description
    FROM apps_fnd.fnd_user_v u,
    apps_fnd.fnd_user_resp_groups ur,
    fnd_responsibility_vl r,
    fnd_application_tl a,
    fnd_application fa
    WHERE
    ur .responsibility_id = r.responsibility_id
    AND u.user_id = ur.user_id
    AND fa.APPLICATION_ID = a.APPLICATION_ID
    AND r.application_id = a.application_id
    AND ( u.user_name = UPPER (:user_name) or upper(u.description) like upper('%'||:user_name||'%'))
    ORDER BY 5,3,2,1

Revision: 46813
at December 10, 2011 05:15 by theonlyalterego


Updated Code
SELECT r.responsibility_name,r.responsibility_key, fa.APPLICATION_SHORT_NAME, r.version, u.user_name, u.description
    FROM apps_fnd.fnd_user_v u,
    apps_fnd.fnd_user_resp_groups ur,
    fnd_responsibility_vl r,
    fnd_application_tl a,
    fnd_application fa
    WHERE
    ur .responsibility_id = r.responsibility_id
    AND u.user_id = ur.user_id
    AND fa.APPLICATION_ID = a.APPLICATION_ID
    AND r.application_id = a.application_id
    AND ( u.user_name = UPPER (:user_name) or upper(u.description) like upper('%'||:user_name||'%'))
    ORDER BY 5

Revision: 46812
at December 3, 2011 05:06 by theonlyalterego


Updated Code
SELECT  r.responsibility_name,r.responsibility_key, fa.APPLICATION_SHORT_NAME, r.version
    FROM apps_fnd.fnd_user_v u,
         apps_fnd.fnd_user_resp_groups ur,
         fnd_responsibility_vl r,
         fnd_application_tl a,
         fnd_application fa
   WHERE
        ur   .responsibility_id = r.responsibility_id
         AND u.user_id = ur.user_id
         AND fa.APPLICATION_ID = a.APPLICATION_ID
         AND r.application_id = a.application_id
         AND u.user_name = UPPER (:user_name)
ORDER BY 1

Revision: 46811
at December 3, 2011 05:03 by theonlyalterego


Updated Code
SELECT r.responsibility_key, fa.APPLICATION_SHORT_NAME, r.version
    FROM apps_fnd.fnd_user_v u,
         apps_fnd.fnd_user_resp_groups ur,
         fnd_responsibility r,
         fnd_application_tl a,
         fnd_application fa
   WHERE
        ur   .responsibility_id = r.responsibility_id
         AND u.user_id = ur.user_id
         AND fa.APPLICATION_ID = a.APPLICATION_ID
         AND r.application_id = a.application_id
         AND u.user_name = UPPER (:user_name)
ORDER BY 1

Revision: 46810
at May 26, 2011 00:17 by theonlyalterego


Initial Code
SELECT r.responsibility_key, fa.APPLICATION_SHORT_NAME
    FROM fnd_user u,
         fnd_user_resp_groups ur,
         fnd_responsibility r,
         fnd_application_tl a,
         fnd_application fa
   WHERE     r.version = 'W'
         AND ur.responsibility_id = r.responsibility_id
         AND u.user_id = ur.user_id
         AND fa.APPLICATION_ID = a.APPLICATION_ID
         AND r.application_id = a.application_id
         AND u.user_name = UPPER (:user_name)
ORDER BY 1

Initial URL
http://forums.oracle.com/forums/thread.jspa?threadID=953780

Initial Description
I found this today and it's very useful for finding the responsibility key when trying ot run OAF from JDev.

Initial Title
Oracle Application - List Responsibilities and Responsibility Keys that are assigned to a user

Initial Tags
sql, Oracle

Initial Language
PL/SQL