We can use below simple query to find all the responsibilities a user has:
SELECT
(SELECT responsibility_name
FROM fnd_responsibility_vl frv
WHERE fur.responsibility_id = frv.responsibility_id
AND nvl(frv.end_date,sysdate+1) > sysdate) responsibility_name,
fur.end_date
FROM apps.fnd_user_resp_groups_direct fur,
fnd_user fu
WHERE fu.user_id = fur.user_id
AND fu.user_name = '&USERNAME';
SELECT
(SELECT responsibility_name
FROM fnd_responsibility_vl frv
WHERE fur.responsibility_id = frv.responsibility_id
AND nvl(frv.end_date,sysdate+1) > sysdate) responsibility_name,
fur.end_date
FROM apps.fnd_user_resp_groups_direct fur,
fnd_user fu
WHERE fu.user_id = fur.user_id
AND fu.user_name = '&USERNAME';
No comments:
Post a Comment