SELECT fu.user_name
requested_by,fu.user_id,
fcr.request_id,--fcr.concurrent_program_id,
CASE
WHEN fcr.phase_code = 'R' AND fcr.status_code = 'R'
THEN
'RUNNING'
ELSE
CASE
WHEN fcr.phase_code = 'C' AND fcr.status_code = 'C'
THEN
'COMPLETED NORMAL'
ELSE
CASE
WHEN fcr.phase_code = 'C'
AND fcr.status_code = 'G'
THEN
'WARNING'
ELSE
CASE
WHEN fcr.phase_code = 'C'
AND fcr.status_code = 'E'
THEN
'ERROR'
ELSE
CASE
WHEN fcr.phase_code = 'P'
AND fcr.status_code = 'Q'
THEN
'PENDING QUEUE INACTIVE MANAGER'
ELSE
CASE
WHEN fcr.phase_code =
'C'
AND fcr.status_code =
'D'
THEN
'COMPLETED CANCELLED'
ELSE
CASE
WHEN fcr.phase_code =
'C'
AND fcr.status_code =
'X'
THEN
'TERMINATED'
ELSE
'CHECK STATUS'
END
END
END
END
END
END
END
status,
parent_request_id,
fcpv.user_concurrent_program_name,fcpv.concurrent_program_id,
fcr.argument_text,
sysdate,
fcr.requested_start_date,
TO_CHAR (fcr.actual_start_date, 'DD-MM-RRRR HH:MI:SS PM')
actual_start_date,
fcr.actual_completion_date,
fcr.responsibility_id,
frv.responsibility_name,
fcr.phase_code,
fcr.status_code,
fcr.completion_text,
logfile_node_name,
outfile_node_name,
printer,
print_style,
EMAIL_ADDRESS,
argument1,
argument2, argument3, argument4, argument5,argument6,argument7,argument8, argument9, argument10,argument11,argument12
, fcr.outfile_name
FROM fnd_concurrent_requests fcr,
fnd_responsibility_vl frv,
fnd_concurrent_programs_vl fcpv,
fnd_user fu
WHERE fcr.concurrent_program_id = fcpv.concurrent_program_id
AND fcr.requested_by = fu.user_id
AND (UPPER (fcpv.user_concurrent_program_name) LIKE
UPPER ('%<Request_set OR Concurrent_program Name>%'))
AND fcr.responsibility_id = frv.responsibility_id
ORDER BY fcr.request_id DESC;
No comments:
Post a Comment