Find Out Concurrent Program attache to user
SELECT request_group_name,
DECODE (request_unit_type,
'A', 'Application',
'P', 'Program',
'S', 'Request Set',
'-NA-'
) request_unit_type,
user_concurrent_program_name program_name
FROM fnd_request_groups a,
fnd_request_group_units b,
fnd_concurrent_programs_vl c
WHERE a.request_group_id = b.request_group_id
AND b.request_unit_id = c.concurrent_program_id
AND (c.CONCURRENT_PROGRAM_NAME = :P_Conc_Prog_Short_Name
OR request_group_name = 'OM Concurrent Programs')
AND request_unit_type = 'P'
;
SELECT request_group_name,
DECODE (request_unit_type,
'A', 'Application',
'P', 'Program',
'S', 'Request Set',
'-NA-'
) request_unit_type,
user_concurrent_program_name program_name
FROM fnd_request_groups a,
fnd_request_group_units b,
fnd_concurrent_programs_vl c
WHERE a.request_group_id = b.request_group_id
AND b.request_unit_id = c.concurrent_program_id
AND (c.CONCURRENT_PROGRAM_NAME = :P_Conc_Prog_Short_Name
OR request_group_name = 'OM Concurrent Programs')
AND request_unit_type = 'P'
;
No comments:
Post a Comment