|
|
发表于 2011/2/12 17:32:34
|
显示全部楼层
系统管理员-》请求-》查看-》所有个人请求-》查找
或者
SELECT Phase_Code, Status_Code, Completion_Text,
Phase.Lookup_Code, Status.Lookup_Code,
Phase.Meaning Phase, Status.Meaning Status
From Fnd_Concurrent_Requests R,
Fnd_Concurrent_programs P,
Fnd_Lookups Phase,
Fnd_Lookups Status
Where
Phase.Lookup_Type = 'CP_PHASE_CODE'
AND Phase.Lookup_Code = Decode(Status.Lookup_Code, 'H', 'I',
'S', 'I',
'U', 'I',
'M', 'I',
R.Phase_Code)
AND Status.Lookup_Type = 'CP_STATUS_CODE'
AND Status.Lookup_Code = Decode(R.Phase_Code,
'P', Decode(R.Hold_Flag, 'Y', 'H',
Decode(P.Enabled_Flag, 'N', 'U',
Decode(Sign(R.Requested_Start_Date - SYSDATE),1,'P',
R.Status_Code))),
'R', Decode(R.Hold_Flag, 'Y', 'S',
Decode(R.Status_Code, 'Q', 'B',
'I', 'B',
R.Status_Code)),
R.Status_Code)
And (R.Concurrent_Program_Id = P.Concurrent_program_ID AND
R.Program_Application_ID= P.Application_ID )
And Request_Id = '&Request_ID'
|
|