SPA_PL_WO2_VW

(SQL View)
Index Back

Workorders for time lines

Workorders for time lines

SELECT A.WO_CONID , A.BUSINESS_UNIT , A.TE_TEMPLATE_ID , A.WORK_ORDER_ID , A.JOB_TITLE , A.PROJECT_ID FROM PS_SPF_WORDERREC A 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'

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 PERSON_ID Character(15) VARCHAR2(15) NOT NULL Person ID
2 BUSINESS_UNIT_GL Character(5) VARCHAR2(5) NOT NULL GL Business Unit
3 TE_TEMPLATE_ID Character(8) VARCHAR2(8) NOT NULL Used to define a particular type of travel, i.e. company relocation, internal travel, etc. Determines what type of expenses and expenditure limits are associated with that particular type of travel. Established in the Structure Expenses system and chosen on the header panel of cash expense sheets.
4 WORK_ORDER_ID Character(15) VARCHAR2(15) NOT NULL Work Order ID
5 JOB_TITLE Character(50) VARCHAR2(50) NOT NULL Job Title
6 PROJECT_ID Character(15) VARCHAR2(15) NOT NULL Project Id ChartField