WM_PTM_TSDTL_VW

(SQL View)
Index Back

WO Punch TimeSheet Dtl Vw

Used to source EX TimeSheet Detail (incl Hrs) data for PunchTime Entry in %Update mode (level 1 view)

SELECT A.EMPLID , A.TIME_SHEET_ID , A.VERSION_NUM , B.LINE_NBR , %subrec(WM_WO_SBR, B) , C.DATE_UNDER_RPT , C.START_TIME , C.END_TIME , C.TOTAL_HOURS , B.BUSINESS_UNIT_GL , %subrec(CF16_AN_SBR, B) , %subrec(PC_CF1_N_SBR, B) , B.DEPTID FROM PS_EX_TIME_HDR A , PS_EX_TIME_DTL B , PS_EX_TIME_DTL_HRS C WHERE 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 = A.TIME_SHEET_ID AND B.VERSION_NUM = A.VERSION_NUM AND C.TIME_SHEET_ID = B.TIME_SHEET_ID AND C.VERSION_NUM = B.VERSION_NUM AND C.LINE_NBR = B.LINE_NBR

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID
2 TIME_SHEET_ID Character(10) VARCHAR2(10) NOT NULL Time Sheet Unique Identifier (System Generated)
3 VERSION_NUM Number(3,0) SMALLINT NOT NULL Version Number
4 LINE_NBR Number(5,0) INTEGER NOT NULL Line Number: 11/24/08 - Added TARGET label [PC product]
5 BUSINESS_UNIT_WO Character(5) VARCHAR2(5) NOT NULL Business Unit Work Order
6 WO_ID Character(10) VARCHAR2(10) NOT NULL Work Order Identification
7 WO_TASK_ID Number(5,0) INTEGER NOT NULL Task Number
8 RSRC_TYPE Character(1) VARCHAR2(1) NOT NULL Work Order Management Resource Types
1=Labor
2=Tools
3=Material
9 RES_LN_NBR Number(5,0) INTEGER NOT NULL Resource Line No.
10 DATE_UNDER_RPT Date(10) DATE Date Under Report
11 START_TIME Time(15) TIMESTAMP Start of Shift
12 END_TIME Time(15) TIMESTAMP End of Shift
13 TOTAL_HOURS Number(7,2) DECIMAL(6,2) NOT NULL Total Hours
14 BUSINESS_UNIT_GL Character(5) VARCHAR2(5) NOT NULL GL Business Unit
15 OPERATING_UNIT Character(8) VARCHAR2(8) NOT NULL Operating Unit ChartField

Prompt Table: OPERUNT_BUGL_VW

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

Prompt Table: PRODUCT_BUGL_VW

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

Prompt Table: FUND_BUGL_VW

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

Prompt Table: CLASSCF_BUGL_VW

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

Prompt Table: PROGRAM_BUGL_VW

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

Prompt Table: BUD_REF_BUGL_VW

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

Prompt Table: AFFILIATE_VW

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

Prompt Table: %EDIT_INTRA01

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

Prompt Table: %EDIT_INTRA02

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

Prompt Table: CF1_BUGL_VW

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

Prompt Table: CF2_BUGL_VW

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

Prompt Table: CF3_BUGL_VW

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

Prompt Table: %EDIT_BU_PC

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

Prompt Table: %EDIT_PROJECT

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

Prompt Table: %EDIT_ACTIVITY

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

Prompt Table: PROJ_RESTYPE_FS
Set Control Field: BUSINESS_UNIT_PC

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

Prompt Table: %EDIT_RES_CAT
Set Control Field: BUSINESS_UNIT_PC

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

Prompt Table: %EDIT_RES_SUB
Set Control Field: BUSINESS_UNIT_PC

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

Prompt Table: %EDIT_ANALYSIS
Set Control Field: BUSINESS_UNIT_PC

34 DEPTID Character(10) VARCHAR2(10) NOT NULL Department