AM_NBVDT_PDI_VW

(SQL View)
Index Back

Cost Detail by FY/PD


SELECT A.BUSINESS_UNIT BUSINESS_UNIT , A.BOOK BOOK , A.CATEGORY CATEGORY , A.FISCAL_YEAR FISCAL_YEAR , A.ACCOUNTING_PERIOD ACCOUNTING_PERIOD , SUM(A.COST) COST , SUM(A.DEPR) + SUM(DEPR_PDP) DEPR , SUM(A.DEPR_YTD) DEPR_YTD , SUM(A.DEPR_LTD) DEPR_LTD , SUM(A.COST) - SUM(A.DEPR_LTD) NBV , SUM(A.COST_ADD ) ADD1 , SUM(A.COST_ADJ ) ADJ , SUM(A.COST_TRF ) TRF , SUM(A.COST_RCT ) RCT , SUM(A.COST_REI ) REI , SUM(A.COST_RET ) RET , SUM(A.COST) - SUM(A.DEPR_YTD) COST1 , A.CURRENCY_CD CURRENCY_CD FROM PS_DEPR_RPT A , PS_ASSET B WHERE A.BUSINESS_UNIT = B.BUSINESS_UNIT AND A.ASSET_ID = B.ASSET_ID AND A.GROUP_ASSET_FLAG <> 'G' AND A.DEPR_LTD <> 0 AND A.COST <> 0 GROUP BY A.BUSINESS_UNIT, A.BOOK, A.CATEGORY,A.FISCAL_YEAR,A.ACCOUNTING_PERIOD, A.CURRENCY_CD UNION SELECT A.BUSINESS_UNIT BUSINESS_UNIT , A.BOOK BOOK , A.CATEGORY CATEGORY , A.FISCAL_YEAR FISCAL_YEAR , A.ACCOUNTING_PERIOD ACCOUNTING_PERIOD , 0 COST , SUM(A.DEPR) + SUM(DEPR_PDP) DEPR , 0 DEPR_YTD , 0 DEPR_LTD , 0 NBV , SUM(A.COST_ADD ) ADD1 , SUM(A.COST_ADJ ) ADJ , SUM(A.COST_TRF ) TRF , SUM(A.COST_RCT ) RCT , SUM(A.COST_REI ) REI , SUM(A.COST_RET ) RET , 0 COST1 , A.CURRENCY_CD CURRENCY_CD FROM PS_DEPR_RPT A , PS_ASSET B WHERE A.BUSINESS_UNIT = B.BUSINESS_UNIT AND A.ASSET_ID = B.ASSET_ID AND A.GROUP_ASSET_FLAG <> 'G' AND A.DEPR_LTD = 0 AND A.COST = 0 GROUP BY A.BUSINESS_UNIT, A.BOOK, A.CATEGORY,A.FISCAL_YEAR,A.ACCOUNTING_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
2 BOOK Character(10) VARCHAR2(10) NOT NULL Asset Book Name
3 CATEGORY Character(5) VARCHAR2(5) NOT NULL Asset Category
4 FISCAL_YEAR Number(4,0) SMALLINT NOT NULL Fiscal Year
5 ACCOUNTING_PERIOD Number(3,0) SMALLINT NOT NULL Identifies a time period to which you post transactions. Typically, an accounting period represents a month, but it can also represent a week, a day, or any user-defined interval. An accounting period has a beginning date and an ending date, and is defined in the calendar table.
6 COST Signed Number(28,3) DECIMAL(26,3) NOT NULL Total Cost
7 DEPR Signed Number(28,3) DECIMAL(26,3) NOT NULL Depreciation Amt
8 DEPR_YTD Signed Number(28,3) DECIMAL(26,3) NOT NULL Year to Date Depreciation
9 DEPR_LTD Signed Number(28,3) DECIMAL(26,3) NOT NULL Life to Date Depreciation
10 NBV Signed Number(28,3) DECIMAL(26,3) NOT NULL Net Book Value
11 COST_ADD Signed Number(28,3) DECIMAL(26,3) NOT NULL Cost Addition
12 COST_ADJ Signed Number(28,3) DECIMAL(26,3) NOT NULL Cost Adjustment
13 COST_TRF Signed Number(28,3) DECIMAL(26,3) NOT NULL Cost Transfer
14 COST_RCT Signed Number(28,3) DECIMAL(26,3) NOT NULL Cost Recategorization
15 COST_REI Signed Number(28,3) DECIMAL(26,3) NOT NULL Cost Reinstatement
16 COST_RET Signed Number(28,3) DECIMAL(26,3) NOT NULL Cost Retirement
17 COST1 Signed Number(28,3) DECIMAL(26,3) NOT NULL Total Cost
18 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code