WM_TE_KEYS

(SQL View)
Index Back

Work Order Elapsed Time View


SELECT A.TIME_SHEET_ID , A.VERSION_NUM , B.BUSINESS_UNIT_WO AS BUSINESS_UNIT , B.WO_ID , B.WO_TASK_ID , B.RES_LN_NBR , B.LINE_NBR , B.RSRC_TYPE , ' ' , B.BUSINESS_UNIT_GL , %subrec(CF16_AN_SBR, B) , %subrec(PC_CF1_N_SBR, B) FROM PS_EX_TIME_HDR A , PS_EX_TIME_DTL B WHERE A.TIME_SHEET_ID = B.TIME_SHEET_ID AND A.VERSION_NUM = B.VERSION_NUM AND A.VERSION_NUM = ( SELECT MAX(H.VERSION_NUM) FROM PS_EX_TIME_HDR H WHERE H.TIME_SHEET_ID = A.TIME_SHEET_ID) AND B.TIME_SHEET_ID = ( SELECT MAX(D.TIME_SHEET_ID) FROM PS_EX_TIME_DTL D WHERE D.BUSINESS_UNIT_WO = B.BUSINESS_UNIT_WO AND D.WO_ID = B.WO_ID AND D.WO_TASK_ID = B.WO_TASK_ID )

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 TIME_SHEET_ID Character(10) VARCHAR2(10) NOT NULL Time Sheet Unique Identifier (System Generated)
2 VERSION_NUM Number(3,0) SMALLINT NOT NULL Version Number
3 BUSINESS_UNIT_WO Character(5) VARCHAR2(5) NOT NULL Business Unit Work Order

Default Value: WM_WOE_WB_VW.BUSINESS_UNIT

Prompt Table: SP_BU_WM_NONVW

4 WO_ID Character(10) VARCHAR2(10) NOT NULL Work Order Identification

Prompt Table: WM_WO_ACTIVE_VW

5 WO_TASK_ID Number(5,0) INTEGER NOT NULL Task Number

Prompt Table: WM_WO_TSKACT_VW

6 RES_LN_NBR Number(5,0) INTEGER NOT NULL Resource Line No.

Prompt Table: WM_SCHED_LBR_VW

7 SEQ_NBR Number(15,0) DECIMAL(15) NOT NULL Sequence Number
8 RSRC_TYPE Character(1) VARCHAR2(1) NOT NULL Work Order Management Resource Types
1=Labor
2=Tools
3=Material
9 CRAFT_ID Character(16) VARCHAR2(16) NOT NULL Craft Identification
10 BUSINESS_UNIT_GL Character(5) VARCHAR2(5) NOT NULL GL Business Unit
11 OPERATING_UNIT Character(8) VARCHAR2(8) NOT NULL Operating Unit ChartField

Prompt Table: OPERUNT_BUGL_VW

12 PRODUCT Character(6) VARCHAR2(6) NOT NULL Product ChartField

Prompt Table: PRODUCT_BUGL_VW

13 FUND_CODE Character(5) VARCHAR2(5) NOT NULL Fund Code

Prompt Table: FUND_BUGL_VW

14 CLASS_FLD Character(5) VARCHAR2(5) NOT NULL Class Field

Prompt Table: CLASSCF_BUGL_VW

15 PROGRAM_CODE Character(5) VARCHAR2(5) NOT NULL Program Code ChartField

Prompt Table: PROGRAM_BUGL_VW

16 BUDGET_REF Character(8) VARCHAR2(8) NOT NULL Budget Reference

Prompt Table: BUD_REF_BUGL_VW

17 AFFILIATE Character(5) VARCHAR2(5) NOT NULL Affiliate

Prompt Table: AFFILIATE_VW

18 AFFILIATE_INTRA1 Character(10) VARCHAR2(10) NOT NULL IntraUnit Affiliate1

Prompt Table: %EDIT_INTRA01

19 AFFILIATE_INTRA2 Character(10) VARCHAR2(10) NOT NULL Operating Unit Affiliate

Prompt Table: %EDIT_INTRA02

20 CHARTFIELD1 Character(10) VARCHAR2(10) NOT NULL Expansion chartfield 1

Prompt Table: CF1_BUGL_VW

21 CHARTFIELD2 Character(10) VARCHAR2(10) NOT NULL Expansion Chartfield 2

Prompt Table: CF2_BUGL_VW

22 CHARTFIELD3 Character(10) VARCHAR2(10) NOT NULL Expansion Chartfield 3

Prompt Table: CF3_BUGL_VW

23 BUSINESS_UNIT_PC Character(5) VARCHAR2(5) NOT NULL PC Business Unit

Prompt Table: %EDIT_BU_PC

24 PROJECT_ID Character(15) VARCHAR2(15) NOT NULL Project Id ChartField

Prompt Table: %EDIT_PROJECT

25 ACTIVITY_ID Character(15) VARCHAR2(15) NOT NULL Activity ID

Prompt Table: %EDIT_ACTIVITY

26 RESOURCE_TYPE Character(5) VARCHAR2(5) NOT NULL Source Type

Prompt Table: PROJ_RESTYPE_FS
Set Control Field: BUSINESS_UNIT_PC

27 RESOURCE_CATEGORY Character(5) VARCHAR2(5) NOT NULL Category

Prompt Table: %EDIT_RES_CAT
Set Control Field: BUSINESS_UNIT_PC

28 RESOURCE_SUB_CAT Character(5) VARCHAR2(5) NOT NULL Subcategory

Prompt Table: %EDIT_RES_SUB
Set Control Field: BUSINESS_UNIT_PC

29 ANALYSIS_TYPE Character(3) VARCHAR2(3) NOT NULL Analysis Type

Prompt Table: %EDIT_ANALYSIS
Set Control Field: BUSINESS_UNIT_PC