SPA_PL_VMSWO_VW

(SQL View)
Index Back

Work Orders for Progress Logs

This view lists the Deliverable based work orders that have a VMS Suplier to create Progress Logs

SELECT DISTINCT A.WO_CONID , A.VENDOR_ID , A.BUSINESS_UNIT , A.WORK_ORDER_ID , W.VMS_SUPPLIER_ID , B.NAME , C.NAME1 , A.JOB_TITLE FROM PS_SPF_WORDERREC A , PS_SPF_WORDERREC_1 W , PS_SPB_PERSON_TBL B , PS_VENDOR C , PS_SET_CNTRL_GROUP D WHERE ((A.WO_STATUS IN ('L','C','F','T')) OR (A.WO_STATUS = 'N' AND EXISTS ( SELECT '*' FROM PS_SPF_WO_HISTORY H WHERE H.BUSINESS_UNIT = A.BUSINESS_UNIT AND H.WORK_ORDER_ID = A.WORK_ORDER_ID AND H.WO_STATUS = 'L'))) AND A.SERVICE_METHOD = 'D' AND B.PERSON_ID = A.WO_CONID AND C.SETID = D.SETID AND C.VENDOR_ID = A.VENDOR_ID AND D.SETCNTRLVALUE = A.BUSINESS_UNIT AND D.REC_GROUP_ID = 'FS_38' AND A.BUSINESS_UNIT = W.BUSINESS_UNIT AND A.WORK_ORDER_ID = W.WORK_ORDER_ID

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 PERSON_ID Character(15) VARCHAR2(15) NOT NULL Person ID
2 VENDOR_ID Character(10) VARCHAR2(10) NOT NULL Vendor Identifier
3 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
4 WORK_ORDER_ID Character(15) VARCHAR2(15) NOT NULL Work Order ID
5 VMS_SUPPLIER_ID Character(10) VARCHAR2(10) NOT NULL VMS Supplier ID
6 NAME Character(50) VARCHAR2(50) NOT NULL Name
7 NAME1 Character(40) VARCHAR2(40) NOT NULL Name 1
8 JOB_TITLE Character(50) VARCHAR2(50) NOT NULL Job Title