Below is the Query to get the list of responsibilities attached to a particualr user in Oracle application.
SELECT fu.user_name, frt.responsibility_name, furg.start_date, furg.end_date, fr.responsibility_key, fa.application_short_name
FROM fnd_user_resp_groups_direct furg,
applsys.fnd_user fu,
applsys.fnd_responsibility_tl frt,
applsys.fnd_responsibility fr,
applsys.fnd_application_tl fat,
applsys.fnd_application fa
WHERE furg.user_id = fu.user_id
AND furg.responsibility_id = frt.responsibility_id
AND fr.responsibility_id = frt.responsibility_id
AND fa.application_id = fat.application_id
AND fr.application_id = fat.application_id
AND frt.LANGUAGE = USERENV ('LANG')
AND fat.LANGUAGE = USERENV ('LANG')
AND UPPER (fu.user_name) = upper(nvl(:EnterUserName,fu.user_name))
ORDER BY frt.responsibility_name;
No comments:
Post a Comment