SPA_EXP_WO_VW(SQL View) |
Index Back |
---|---|
Work Order ViewExpenses Work Order View |
SELECT W.WO_CONID , W.BUSINESS_UNIT , W.WORK_ORDER_ID , W.JOB_TITLE , 999 , B.DESCRSHORT , W.WO_NAME , ' ' FROM PS_SPF_WORDERREC W , PS_BUS_UNIT_TBL_FS B WHERE B.BUSINESS_UNIT = W.BUSINESS_UNIT AND ((W.WO_STATUS IN ('L', 'C', 'T')) OR (W.WO_STATUS = 'N' AND EXISTS ( SELECT '*' FROM PS_SPF_WO_HISTORY H WHERE H.BUSINESS_UNIT = W.BUSINESS_UNIT AND H.WORK_ORDER_ID = W.WORK_ORDER_ID AND H.WO_STATUS = 'L'))) AND W.SERVICE_METHOD IN ('R','D') AND (W.SPF_EXPENSE_AMT > 0 OR W.SPF_EXPENSE_AMT = -999) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | PERSON_ID | Character(15) | VARCHAR2(15) NOT NULL | Person ID |
2 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL |
Business Unit
Default Value: OPR_DEF_TBL_FS.BUSINESS_UNIT Prompt Table: SP_BU_SP_NONVW |
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 | DISTRIB_LINE_NUM | Number(5,0) | INTEGER NOT NULL | Distribution Line |
6 | DESCRSHORT | Character(10) | VARCHAR2(10) NOT NULL | Short Description |
7 | WO_NAME | Character(30) | VARCHAR2(30) NOT NULL | Work Order Name |
8 | DESCR | Character(30) | VARCHAR2(30) NOT NULL | Description |