WM_ASSETCOST_VW

(SQL View)
Index Back

Asset Maintenance Event


SELECT A.BUSINESS_UNIT , A.PARENT_ASSET , A.ASSET_ID , A.BUSINESS_UNIT_WO , A.SHOP_ID , A.WO_TYPE , A.WO_ID , A.WO_TASK_ID , A.MAINT_TYPE , B.WM_FISCAL_PERIOD , A.CURRENCY_CD , SUM(A.EST_LABOR_COST) , SUM(A.EST_MATERIALS_COST) , SUM(A.EST_PURCH_COST) , SUM(A.EST_TOOLS_COST) , SUM(A.EST_OTHER_COST) , SUM(A.LABOR_COST) , SUM(A.MATERIALS_COST) , SUM(A.PURCH_COST) , SUM(A.TOOLS_COST) , SUM(A.OTHER_COST) , SUM(A.EST_ASSET_COST) , SUM(A.ACTL_ASSET_COST) , SUM(A.EST_COMP_COST) , SUM(A.COMP_COST) , SUM(A.TOTAL_EST_AMOUNT) , SUM(A.TOTAL_ACTL_COST) , (SUM(A.TOTAL_EST_AMOUNT) - SUM(A.TOTAL_ACTL_COST) ) , CASE WHEN SUM(A.TOTAL_EST_AMOUNT) <> 0 THEN %DecMult(%DecDiv(%ABS(SUM(A.TOTAL_ACTL_COST) - SUM(A.TOTAL_EST_AMOUNT)),SUM(A.TOTAL_EST_AMOUNT) ), 100) ELSE 0 END , SUM(A.EST_DOWN_HOURS) , SUM(A.DOWN_HOURS) , SUM(A.EST_LABOR_HOURS) , SUM(A.LABOR_HOURS) FROM PS_WM_ASSET_COST1 A , PS_WM_DATE_DIM B WHERE B.TRANS_DATE = A.CLOSED_DT GROUP BY A.BUSINESS_UNIT , A.ASSET_ID , A.PARENT_ASSET , A.BUSINESS_UNIT_WO , A.SHOP_ID , A.WO_TYPE , A.WO_ID , A.WO_TASK_ID , A.MAINT_TYPE , B.WM_FISCAL_PERIOD , A.CURRENCY_CD

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit

Default Value: OPR_DEF_TBL_FS.BUSINESS_UNIT

Prompt Table: SP_BU_AM_NONVW

2 PARENT_ASSET Character(12) VARCHAR2(12) NOT NULL Asset Identification
3 ASSET_ID Character(12) VARCHAR2(12) NOT NULL Asset Identification
4 BUSINESS_UNIT_WO Character(5) VARCHAR2(5) NOT NULL Business Unit Work Order

Prompt Table: SP_BU_WM_NONVW

5 SHOP_ID Character(10) VARCHAR2(10) NOT NULL Shop Identification
6 WO_TYPE Character(5) VARCHAR2(5) NOT NULL Work Order Type
7 WO_ID Character(10) VARCHAR2(10) NOT NULL Work Order Identification

Prompt Table: WM_WO_HDR

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

Prompt Table: WM_WO_TSK

9 MAINT_TYPE Character(10) VARCHAR2(10) NOT NULL This field is used for maintenance type

Prompt Table: MAINT_TYPE_TBL

10 WM_FISCAL_PERIOD Character(20) VARCHAR2(20) NOT NULL Period
11 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code
12 EST_LABOR_COST Signed Number(28,3) DECIMAL(26,3) NOT NULL Estimated Labor Cost
13 EST_MATERIALS_COST Signed Number(28,3) DECIMAL(26,3) NOT NULL Estimated Materials Cost
14 EST_PURCH_COST Signed Number(28,3) DECIMAL(26,3) NOT NULL Estimated
15 EST_TOOLS_COST Signed Number(28,3) DECIMAL(26,3) NOT NULL Estimated
16 EST_OTHER_COST Signed Number(28,3) DECIMAL(26,3) NOT NULL Estimated Other Cost
17 LABOR_COST Signed Number(28,3) DECIMAL(26,3) NOT NULL Labor Cost
18 MATERIALS_COST Signed Number(28,3) DECIMAL(26,3) NOT NULL Material Cost
19 PURCH_COST Signed Number(28,3) DECIMAL(26,3) NOT NULL Purchase Cost
20 TOOLS_COST Signed Number(28,3) DECIMAL(26,3) NOT NULL Tools Cost
21 OTHER_COST Signed Number(28,3) DECIMAL(26,3) NOT NULL Other Cost
22 EST_ASSET_COST Signed Number(28,3) DECIMAL(26,3) NOT NULL Estimated Asset Cost
23 ACTL_ASSET_COST Signed Number(28,3) DECIMAL(26,3) NOT NULL Actual Asset Cost
24 EST_COMP_COST Signed Number(28,3) DECIMAL(26,3) NOT NULL Estimated Component Cost
25 COMP_COST Signed Number(28,3) DECIMAL(26,3) NOT NULL Actual Component Cost
26 TOTAL_EST_AMOUNT Signed Number(28,3) DECIMAL(26,3) NOT NULL Total Estimated Amount
27 TOTAL_ACTL_COST Signed Number(28,3) DECIMAL(26,3) NOT NULL Total Actual Cost
28 WM_VARIANCE_AMT Signed Number(28,3) DECIMAL(26,3) NOT NULL Variance Amount
29 WM_VARIANCE_PCT3 Signed Number(9,2) DECIMAL(7,2) NOT NULL Variance Percent
30 EST_DOWN_HOURS Signed Number(10,2) DECIMAL(8,2) NOT NULL Estimated DownTime Hours
31 DOWN_HOURS Signed Number(10,2) DECIMAL(8,2) NOT NULL Downtime Hours
32 EST_LABOR_HOURS Signed Number(10,2) DECIMAL(8,2) NOT NULL Estimated Labor Hours
33 LABOR_HOURS Signed Number(10,2) DECIMAL(8,2) NOT NULL Labor Hours