DECODE(
(SELECT '1' FROM fnd_concurrent_requests cr,
fnd_concurrent_programs_vl cp,
fnd_application a WHERE cp.concurrent_program_id = cr.concurrent_program_id
AND cp.concurrent_program_name = x.process_name
AND cp.application_id = a.application_id
AND a.application_short_name = x.process_app_short_name
AND phase_code != 'C'
),'1','Active','Inactive') "Status",
x.worker_rows "Worker Rows",
x.timeout_hours "Timeout Hours",
x.timeout_minutes "Timeout Minutes",
x.process_hours "Process Interval Hours",
x.process_minutes "Process Interval Minutes",
x.process_seconds "Process Interval Seconds"
FROM
(SELECT mipc.process_code ,
mipc.process_status ,
mipc.process_interval ,
mipc.manager_priority ,
mipc.worker_priority ,
mipc.worker_rows ,
mipc.processing_timeout ,
mipc.process_name ,
mipc.process_app_short_name ,
a.meaning process_type ,
FLOOR(mipc.process_interval /3600) process_hours ,
FLOOR((mipc.process_interval - (FLOOR(mipc.process_interval/3600) * 3600))/60) process_minutes ,
(mipc.process_interval - (FLOOR(mipc.process_interval/3600) * 3600) - (FLOOR((mipc.process_interval - (FLOOR(mipc.process_interval/3600) * 3600))/60) * 60)) process_seconds ,
FLOOR(mipc.processing_timeout /3600) timeout_hours ,
FLOOR((mipc.processing_timeout - FLOOR(mipc.processing_timeout/3600) * 3600)/60) timeout_minutes
FROM mtl_interface_proc_controls mipc,
mfg_lookups a
WHERE a.lookup_type = 'PROCESS_TYPE'
AND a.lookup_code = mipc.process_code
) x
-- WHERE x.PROCESS_TYPE = 'Cost Manager' -- uncomment this to display only the cost manager
ORDER BY 1;
SELECT request_id RequestId,
request_date RequestDt, concurrent_program_name,
phase_code Phase,
status_code Status FROM
fnd_concurrent_requests fcr,
fnd_concurrent_programs fcp
WHERE fcp.application_id = 702 AND
fcp.concurrent_program_name in ('CMCTCM', 'CMCMCW', 'CMCACW') AND
fcr.concurrent_program_id = fcp.concurrent_program_id AND
fcr.program_application_id = 702 AND fcr.phase_code <> 'C'
-- Pending Cost Transations
select count(*) from MTL_MATERIAL_TRANSACTIONS where COSTED_FLAG = 'N' --or COSTED_FLAG = 'N';
--and organization_id=317
select count(*) from MTL_MATERIAL_TRANSACTIONS where COSTED_FLAG = 'E'
select * from cst_lc_adj_interface
Select * from cst_lc_adj_interface
Select * from cst_lc_adj_interface_errors
select * from wip_cost_txn_interface
0 comments :
Post a Comment
Note: Only a member of this blog may post a comment.