SPA_PRJEXP_WO_V(SQL View) |
Index Back |
---|---|
Project Export WO viewView to display available WOs for Sending Time/Expense to Project Costing |
SELECT DISTINCT A.BUSINESS_UNIT , A.WORK_ORDER_ID , A.JOB_TITLE , A.VENDOR_ID , C.NAME1 FROM PS_SPF_WORDERREC A , PS_VENDOR C , PS_SET_CNTRL_GROUP D WHERE ((A.WO_STATUS IN ('L','C','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 C.SETID = D.SETID AND C.VENDOR_ID = A.VENDOR_ID AND D.SETCNTRLVALUE = A.BUSINESS_UNIT AND D.REC_GROUP_ID = 'FS_38' |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Business Unit |
2 | WORK_ORDER_ID | Character(15) | VARCHAR2(15) NOT NULL | Work Order ID |
3 | JOB_TITLE | Character(50) | VARCHAR2(50) NOT NULL | Job Title |
4 | VENDOR_ID | Character(10) | VARCHAR2(10) NOT NULL | Vendor Identifier |
5 | NAME1 | Character(40) | VARCHAR2(40) NOT NULL | Name 1 |