Search This Blog

Friday, March 22, 2019

User assigned to a responsibility

Below query can be helpful to find users assigned to a specific responsibility

SELECT * FROM (
SELECT   DISTINCT
         user_name
       , DECODE (
            GREATEST (u.start_date
                    , ur.start_date
                    , r.start_date
                    , TO_DATE ('01/01/1000', 'DD/MM/YYYY'))
          , TO_DATE ('01/01/1000', 'DD/MM/YYYY'), ''
          , TO_CHAR (GREATEST (u.start_date, ur.start_date, r.start_date))) resp_start_date
       , DECODE (
            LEAST (NVL (u.end_date, TO_DATE ('01/01/4712', 'DD/MM/YYYY'))
                 , NVL (ur.end_date, TO_DATE ('01/01/4712', 'DD/MM/YYYY'))
                 , NVL (r.end_date, TO_DATE ('01/01/4712', 'DD/MM/YYYY')))
          , TO_DATE ('01/01/4712', 'DD/MM/YYYY'), ''
          , TO_CHAR (
               LEAST (NVL (u.end_date, NVL (ur.end_date, r.end_date))
                    , NVL (ur.end_date, NVL (u.end_date, r.end_date))
                    , NVL (r.end_date, NVL (u.end_date, ur.end_date))))) resp_end_date
       , s.security_group_name
       , u.description
FROM     fnd_user u
       , fnd_user_resp_groups_all ur
       , fnd_responsibility r
       , fnd_security_groups_vl s
       , fnd_responsibility_tl frt
WHERE        1 = 1
         AND frt.responsibility_name = :resp_name
         AND ur.responsibility_application_id = r.application_id
         AND ur.responsibility_id = r.responsibility_id
         AND u.user_id = ur.user_id
         AND ur.security_group_id = s.security_group_id
         AND frt.responsibility_id = r.responsibility_id
         AND frt.language = userenv('lang')
) a
WHERE Nvl(resp_end_date,sysdate + 1) > sysdate         
ORDER BY USER_NAME, SECURITY_GROUP_NAME

2 Comments:

Unknown said...

Hi Suresh,
Currently Oracle EBS 11.5.9 is working fine on Windows 7 machine with Jinitiator 1.1.8.19.

However I am not able to install Jinitiator 1.1.8.19 on Windows 8.1 machine and hence not able to use Oracle EBS 11.5.9 application. The Oracle forms are not opening and trying to install oajinit.exe automatically but it doesn't work. I think the JInitiar is 16 bit which doen't supported on Windoew 8.1.

I have installed Jinitiator 1.3.1.18 on Windows 8.1 machine, but its default trying to install oajinit.exe(Jinitiator 1.1.8.19) when I am trying to login with Oracle EBS web URL.

Web URL - http://deapvi5l.dcc.btignite.com:9010/OA_HTML/US/ICXINDEX_IGNPROD_deapvi5l.htm

Kindly provide your advice to resolve this issue. Thanks a lot.

Vihan said...

Nice Post oracle cloud application tool in UK

Copyright (c) All rights reserved. Presented by Suresh Vaishya