WM_WO_HDRCLS_VW

(SQL View)
Index Back

Work Orders ready for close

Work order tasks ready to be closed

SELECT BUSINESS_UNIT , WO_ID , DESCR254 FROM PS_WM_WO_HDR HDR WHERE (HDR.INTERNAL_STATUS <> '06' AND HDR.INTERNAL_STATUS <> '07') OR (HDR.INTERNAL_STATUS = '06' AND EXISTS( SELECT 'x' FROM PS_WM_WO_TSK TSK WHERE TSK.BUSINESS_UNIT = HDR.BUSINESS_UNIT AND TSK.WO_ID = HDR.WO_ID AND TSK.INTERNAL_STATUS = '06' AND TSK.PROCESS_MAN_CLOSE = 'Y'))

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit

Prompt Table: BUS_UNIT_TBL_WM

2 WO_ID Character(10) VARCHAR2(10) NOT NULL Work Order Identification
3 DESCR254 Character(254) VARCHAR2(254) NOT NULL Description of length 254