Query to get list of users and responsibilities that got access to a Concurrent Program through Request Group
SELECT fcpt.user_concurrent_program_name,
frt.responsibility_name,
SUBSTR (fu.description, 1, 49) user_name
FROM apps.fnd_request_group_units frgu,
apps.fnd_concurrent_programs_tl fcpt,
apps.fnd_request_groups frg,
apps.fnd_responsibility fr,
apps.fnd_responsibility_tl frt,
apps.fnd_user_resp_groups_all furg,
apps.fnd_user fu
WHERE fcpt.user_concurrent_program_name LIKE :p_user_concurrent_program_name
AND frgu.unit_application_id = fcpt.application_id
AND frgu.request_unit_id = fcpt.concurrent_program_id
AND frg.application_id = frgu.application_id
AND frg.request_group_id = frgu.request_group_id
AND fr.request_group_id = frg.request_group_id
AND fr.application_id = frg.application_id
AND frt.responsibility_id = fr.responsibility_id
AND frt.application_id = fr.application_id
AND furg.responsibility_id = fr.responsibility_id
AND furg.user_id = fu.user_id
AND NVL (furg.end_date, SYSDATE) > SYSDATE - 1
AND NVL (fu.end_date, SYSDATE) > SYSDATE - 1
AND (SYSDATE BETWEEN fr.start_date AND fr.end_date OR fr.end_date IS NULL)
ORDER BY fcpt.user_concurrent_program_name, frgu.request_group_id
***Please leave a comment***
SELECT fcpt.user_concurrent_program_name,
frt.responsibility_name,
SUBSTR (fu.description, 1, 49) user_name
FROM apps.fnd_request_group_units frgu,
apps.fnd_concurrent_programs_tl fcpt,
apps.fnd_request_groups frg,
apps.fnd_responsibility fr,
apps.fnd_responsibility_tl frt,
apps.fnd_user_resp_groups_all furg,
apps.fnd_user fu
WHERE fcpt.user_concurrent_program_name LIKE :p_user_concurrent_program_name
AND frgu.unit_application_id = fcpt.application_id
AND frgu.request_unit_id = fcpt.concurrent_program_id
AND frg.application_id = frgu.application_id
AND frg.request_group_id = frgu.request_group_id
AND fr.request_group_id = frg.request_group_id
AND fr.application_id = frg.application_id
AND frt.responsibility_id = fr.responsibility_id
AND frt.application_id = fr.application_id
AND furg.responsibility_id = fr.responsibility_id
AND furg.user_id = fu.user_id
AND NVL (furg.end_date, SYSDATE) > SYSDATE - 1
AND NVL (fu.end_date, SYSDATE) > SYSDATE - 1
AND (SYSDATE BETWEEN fr.start_date AND fr.end_date OR fr.end_date IS NULL)
ORDER BY fcpt.user_concurrent_program_name, frgu.request_group_id
***Please leave a comment***