SPA_PL_WOADD_VW(SQL View) |
Index Back |
---|---|
Work Orders for Progress LogsThis view lists the Deliverable based work orders to create Progress Logs |
SELECT DISTINCT A.BUSINESS_UNIT , E.OPRID , A.WORK_ORDER_ID , A.JOB_TITLE , A.WO_CONID , B.NAME , A.VENDOR_ID , C.NAME1 FROM PS_SPF_WORDERREC A , PS_SPB_PERSON_TBL B , PS_VENDOR C , PS_SET_CNTRL_GROUP D , PSOPRDEFN E 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 A.SERVICE_METHOD = 'D' AND B.PERSON_ID = A.WO_CONID AND A.WO_CLIID = E.OPRID 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 | OPRID | Character(30) | VARCHAR2(30) NOT NULL | A user's ID (see PSOPRDEFN). |
3 | WORK_ORDER_ID | Character(15) | VARCHAR2(15) NOT NULL | Work Order ID |
4 | JOB_TITLE | Character(50) | VARCHAR2(50) NOT NULL | Job Title |
5 | PERSON_ID | Character(15) | VARCHAR2(15) NOT NULL | Person ID |
6 | NAME | Character(50) | VARCHAR2(50) NOT NULL | Name |
7 | VENDOR_ID | Character(10) | VARCHAR2(10) NOT NULL | Vendor Identifier |
8 | NAME1 | Character(40) | VARCHAR2(40) NOT NULL | Name 1 |