DEPR_CALC_VW

(SQL View)
Index Back

SELECT b.Business_Unit , b.Asset_ID , b.Book , b.DtTm_Stamp , a.Fiscal_Year , a.Accounting_Period , a.begin_dt , a.end_dt , %subrec(cf12_An_sbr, b) , %subrec(am_cf1_n_sbr, b) , B.PROJECT_ID , B.DEPTID , b.Category , b.Cost_Type , b.Trans_Type , b.Trans_In_Out , b.Trans_Code , b.Trans_Dt , b.Activity_Sw , %Round(%DecDiv(%DecMult(%DecMult(b.Depr,a.Pd_Alloc),(1+0.0)),a.Pd_Alloc_Total ) ,CD.DECIMAL_POSITIONS) , a.Calendar_id , a.setid , b.Currency_Cd FROM ps_Depr_Alloc_Tbl a , PS_DEPRECIATION b , PS_CURRENCY_CD_TBL CD WHERE a.Fiscal_Year = b.Fiscal_Year AND a.Start_Pd = b.Start_Pd AND a.End_Pd = b.End_Pd AND b.Currency_Cd = CD.CURRENCY_CD %Sql(AM_CUR_CD_EFFDT)

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
2 ASSET_ID Character(12) VARCHAR2(12) NOT NULL Asset Identification
3 BOOK Character(10) VARCHAR2(10) NOT NULL Asset Book Name
4 DTTM_STAMP DateTime(26) TIMESTAMP Specifies the date and time of the last update to an entry. This field is maintained by PeopleSoft and is used in a variety of contexts.
5 FISCAL_YEAR Number(4,0) SMALLINT NOT NULL Fiscal Year
6 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.
7 BEGIN_DT Date(10) DATE Begin Date
8 END_DT Date(10) DATE End Date
9 OPERATING_UNIT Character(8) VARCHAR2(8) NOT NULL Operating Unit ChartField
10 PRODUCT Character(6) VARCHAR2(6) NOT NULL Product ChartField
11 FUND_CODE Character(5) VARCHAR2(5) NOT NULL Fund Code
12 CLASS_FLD Character(5) VARCHAR2(5) NOT NULL Class Field
13 PROGRAM_CODE Character(5) VARCHAR2(5) NOT NULL Program Code ChartField
14 BUDGET_REF Character(8) VARCHAR2(8) NOT NULL Budget Reference
15 AFFILIATE Character(5) VARCHAR2(5) NOT NULL Affiliate
16 AFFILIATE_INTRA1 Character(10) VARCHAR2(10) NOT NULL IntraUnit Affiliate1
17 AFFILIATE_INTRA2 Character(10) VARCHAR2(10) NOT NULL Operating Unit Affiliate
18 CHARTFIELD1 Character(10) VARCHAR2(10) NOT NULL Expansion chartfield 1
19 CHARTFIELD2 Character(10) VARCHAR2(10) NOT NULL Expansion Chartfield 2
20 CHARTFIELD3 Character(10) VARCHAR2(10) NOT NULL Expansion Chartfield 3
21 BUSINESS_UNIT_PC Character(5) VARCHAR2(5) NOT NULL PC Business Unit
22 ACTIVITY_ID Character(15) VARCHAR2(15) NOT NULL Activity ID
23 RESOURCE_TYPE Character(5) VARCHAR2(5) NOT NULL Source Type
24 RESOURCE_CATEGORY Character(5) VARCHAR2(5) NOT NULL Category
25 RESOURCE_SUB_CAT Character(5) VARCHAR2(5) NOT NULL Subcategory
26 ANALYSIS_TYPE Character(3) VARCHAR2(3) NOT NULL Analysis Type
27 PROJECT_ID Character(15) VARCHAR2(15) NOT NULL Project Id ChartField
28 DEPTID Character(10) VARCHAR2(10) NOT NULL Department

Prompt Table: DEPT_TBL

29 CATEGORY Character(5) VARCHAR2(5) NOT NULL Asset Category
30 COST_TYPE Character(1) VARCHAR2(1) NOT NULL Cost Type
31 TRANS_TYPE Character(3) VARCHAR2(3) NOT NULL Types of Asset Management Transactions
ACR=Accretion Expense
ADD=Asset Addition
ADJ=Asset Cost Adjustment
BKS=Book Adjustment
BUD=Budgeted Depreciation
DPR=Depreciation
INF=Inflation Adjustment
LEX=Lease Expense
LPB=Budgeted Lease Payments
LPY=Lease Payment
PDP=Prior Period Depreciation
PLP=Prior Lease Payment
RAD=Manual Reserve Adjustment
RCT=Asset Recategorization
REI=Asset Reinstatement
RES=Resume Depreciation
RET=Asset Retirement
RRC=Retro rate change for grp ast
SUS=Suspend Depreciation
TRF=Asset Transfer
32 TRANS_IN_OUT Character(1) VARCHAR2(1) NOT NULL Transaction In/Out
I=In
M=IUT Proceeds Markup
O=Out
33 TRANS_CODE Character(5) VARCHAR2(5) NOT NULL Transaction Code
34 TRANS_DT Date(10) DATE Transaction Date
35 ACTIVITY_SW Signed Number(2,0) DECIMAL(1) NOT NULL Activity Switch
36 PERIOD_DEPR Signed Number(29,4) DECIMAL(27,4) NOT NULL Period Depreciation
37 CALENDAR_ID Character(2) VARCHAR2(2) NOT NULL Calendar ID
38 SETID Character(5) VARCHAR2(5) NOT NULL SetID
39 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code