Backend Queries to get Frontend Details
a)Query to get executable_name ,execution_method_code from concurrent program name
SELECT fcpt.user_concurrent_program_name,
fcp.concurrent_program_name,
fe.execution_file_name,
DECODE (fe.execution_method_code,
'A', 'Spawned',
'B', 'Request Set Stage Function',
'E', 'Perl Concurrent Program',
'H', 'Host',
'I', 'PL/SQL Stored Procedure',
'J', 'Java Stored Procedure',
'K', 'Java Concurrent Program',
'L', 'SQL*Loader',
'M', 'Multi Language Function',
'P', 'Oracle Reports',
'Q', 'SQL*Plus',
'S', 'Immediate',
'Other') as execution_method_code
FROM apps.fnd_concurrent_programs_tl fcpt,
apps.fnd_concurrent_programs fcp,
fnd_executables fe
WHERE fcpt.concurrent_program_id = fcp.concurrent_program_id
AND fcp.executable_id = fe.executable_id
AND UPPER (user_concurrent_program_name) LIKE
'%<CONCURRENT PROGRAM NAME IN UPPER CASE>%'
b)Query to get responsibility for a concurrent program
SELECT frgu.REQUEST_UNIT_ID,
frt.responsibility_name,
frg.request_group_name,
frgu.request_unit_type,
frgu.request_unit_id,
fcpt.user_concurrent_program_name
FROM fnd_Responsibility fr,
fnd_responsibility_tl frt,
fnd_request_groups frg,
fnd_request_group_units frgu,
fnd_concurrent_programs_tl fcpt
WHERE frt.responsibility_id = fr.responsibility_id
AND frg.request_group_id = fr.request_group_id
AND frgu.request_group_id = frg.request_group_id
AND fcpt.concurrent_program_id = frgu.request_unit_id
AND fcpt.user_concurrent_program_name = 'CP_NAME'
ORDER BY 1,
2,
3,
4
SELECT fcpt.user_concurrent_program_name,
fcp.concurrent_program_name,
fe.execution_file_name,
DECODE (fe.execution_method_code,
'A', 'Spawned',
'B', 'Request Set Stage Function',
'E', 'Perl Concurrent Program',
'H', 'Host',
'I', 'PL/SQL Stored Procedure',
'J', 'Java Stored Procedure',
'K', 'Java Concurrent Program',
'L', 'SQL*Loader',
'M', 'Multi Language Function',
'P', 'Oracle Reports',
'Q', 'SQL*Plus',
'S', 'Immediate',
'Other') as execution_method_code
FROM apps.fnd_concurrent_programs_tl fcpt,
apps.fnd_concurrent_programs fcp,
fnd_executables fe
WHERE fcpt.concurrent_program_id = fcp.concurrent_program_id
AND fcp.executable_id = fe.executable_id
AND UPPER (user_concurrent_program_name) LIKE
'%<CONCURRENT PROGRAM NAME IN UPPER CASE>%'
b)Query to get responsibility for a concurrent program
SELECT frgu.REQUEST_UNIT_ID,
frt.responsibility_name,
frg.request_group_name,
frgu.request_unit_type,
frgu.request_unit_id,
fcpt.user_concurrent_program_name
FROM fnd_Responsibility fr,
fnd_responsibility_tl frt,
fnd_request_groups frg,
fnd_request_group_units frgu,
fnd_concurrent_programs_tl fcpt
WHERE frt.responsibility_id = fr.responsibility_id
AND frg.request_group_id = fr.request_group_id
AND frgu.request_group_id = frg.request_group_id
AND fcpt.concurrent_program_id = frgu.request_unit_id
AND fcpt.user_concurrent_program_name = 'CP_NAME'
ORDER BY 1,
2,
3,
4
Comments
Post a Comment