Tuesday 13 March 2012

Query to List all the responsibilities attached to a User

Based on a request from one of the reader here is the query which he was looking for.

SELECT
    fu.user_name
    , fr.responsibility_name
    , furg.START_DATE
    , furg.END_DATE
   FROM       fnd_user_resp_groups_direct furg
    , fnd_user fu
    , fnd_responsibility_tl fr
WHERE     fu.user_user_name = :user_name
       AND     furg.user_id = fu.user_id
       AND     furg.responsibility_id = fr.responsibility_id
       AND     fr.language = userenv('LANG')

No comments:

Post a Comment