Query to get the details of a submitted concurrent program
--------------------------------------------------------------------------------------------------------------------------------------
/* Formatted on 2015/03/17 16:40 (Formatter Plus v4.8.8) */
SELECT fcp.user_concurrent_program_name program_name,
fcp.concurrent_program_name short_name, fcr.request_id request_id,
frv.responsibility_name responsibility_name,
fcr.request_date request_date, fu.user_name request_submitted_by,
DECODE (fcr.status_code,
'A', 'Waiting',
'B', 'Resuming',
'C', 'Normal',
'D', 'Cancelled',
'E', 'Error',
'F', 'Scheduled',
'G', 'Warning',
'H', 'On Hold',
'I', 'Normal',
'M', 'No Manager',
'Q', 'Standby',
'R', 'Normal',
'S', 'Suspended',
'T', 'Terminating',
'U', 'Disabled',
'W', 'Paused',
'X', 'Terminated',
'Z', 'Waiting'
) status_code,
DECODE (fcr.phase_code,
'C', 'Completed',
'I', 'Inactive',
'P', 'Pending',
'R', 'Running'
) phase_code,
fcr.actual_start_date, fcr.actual_completion_date,
fcr.completion_text completion_status, fcr.logfile_name,
fcr.outfile_name, fcr.argument1 parameter1, fcr.argument2 parameter2,
fcr.argument3 parameter3, fcr.argument4 parameter4,
fcr.argument5 parameter5, fcr.argument6 parameter6,
fcr.argument7 parameter7, fcr.argument8 parameter8,
fcr.argument9 parameter9, fcr.argument10 parameter10,
fcr.argument11 parameter11, fcr.argument12 parameter12,
fcr.argument13 parameter13, fcr.argument14 parameter14,
fcr.argument15 parameter15, fcr.argument16 parameter16,
fcr.argument17 parameter17, fcr.argument18 parameter18,
fcr.argument19 parameter19, fcr.argument20 parameter20
FROM apps.fnd_concurrent_programs_vl fcp,
apps.fnd_concurrent_requests fcr,
apps.fnd_responsibility_vl frv,
apps.fnd_user fu
WHERE fcp.concurrent_program_id = fcr.concurrent_program_id
AND frv.responsibility_id = fcr.responsibility_id
AND fcr.requested_by = fu.user_id
--and fcr.request_id = 156574443 --use this condition to check detaiols for particular request
AND fcp.user_concurrent_program_name = 'XYZ' --Enter program name here
ORDER BY fcr.request_date;
--------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------
/* Formatted on 2015/03/17 16:40 (Formatter Plus v4.8.8) */
SELECT fcp.user_concurrent_program_name program_name,
fcp.concurrent_program_name short_name, fcr.request_id request_id,
frv.responsibility_name responsibility_name,
fcr.request_date request_date, fu.user_name request_submitted_by,
DECODE (fcr.status_code,
'A', 'Waiting',
'B', 'Resuming',
'C', 'Normal',
'D', 'Cancelled',
'E', 'Error',
'F', 'Scheduled',
'G', 'Warning',
'H', 'On Hold',
'I', 'Normal',
'M', 'No Manager',
'Q', 'Standby',
'R', 'Normal',
'S', 'Suspended',
'T', 'Terminating',
'U', 'Disabled',
'W', 'Paused',
'X', 'Terminated',
'Z', 'Waiting'
) status_code,
DECODE (fcr.phase_code,
'C', 'Completed',
'I', 'Inactive',
'P', 'Pending',
'R', 'Running'
) phase_code,
fcr.actual_start_date, fcr.actual_completion_date,
fcr.completion_text completion_status, fcr.logfile_name,
fcr.outfile_name, fcr.argument1 parameter1, fcr.argument2 parameter2,
fcr.argument3 parameter3, fcr.argument4 parameter4,
fcr.argument5 parameter5, fcr.argument6 parameter6,
fcr.argument7 parameter7, fcr.argument8 parameter8,
fcr.argument9 parameter9, fcr.argument10 parameter10,
fcr.argument11 parameter11, fcr.argument12 parameter12,
fcr.argument13 parameter13, fcr.argument14 parameter14,
fcr.argument15 parameter15, fcr.argument16 parameter16,
fcr.argument17 parameter17, fcr.argument18 parameter18,
fcr.argument19 parameter19, fcr.argument20 parameter20
FROM apps.fnd_concurrent_programs_vl fcp,
apps.fnd_concurrent_requests fcr,
apps.fnd_responsibility_vl frv,
apps.fnd_user fu
WHERE fcp.concurrent_program_id = fcr.concurrent_program_id
AND frv.responsibility_id = fcr.responsibility_id
AND fcr.requested_by = fu.user_id
--and fcr.request_id = 156574443 --use this condition to check detaiols for particular request
AND fcp.user_concurrent_program_name = 'XYZ' --Enter program name here
ORDER BY fcr.request_date;
--------------------------------------------------------------------------------------------------------------------------------------
Comments
Post a Comment