RETIRE_VW

(SQL View)
Index Back

Asset Retirement - Chartfields


SELECT a.Business_Unit , a.Asset_ID , a.Book , a.DTTM_Stamp , A.CF_SEQNO , a.Group_Asset_Id , a.Trans_Type , a.Trans_In_Out , a.Trans_Code , a.Trans_Dt , a.Accounting_Dt , %subrec(cf14_An_sbr, a) , %subrec(am_cf1_n_sbr, a) , A.PROJECT_ID , A.DEPTID , a.Category , a.Cost_Type , b.Trade_In_Asset_Id , b.Trade_in_Dttm_Stmp , a.Activity_Sw , a.Retire_Sw , a.Quantity , a.Cost , b.Disposal_Code , b.Retirement_Amt , b.Retirement_Rsv , (CASE WHEN b.Retirement_Amt <> 0 THEN %Round(%DecMult(b.Retirement_Rsv, %DECDIV(a.Cost, b.retirement_amt)), CD.DECIMAL_POSITIONS) ELSE %Round(%DecDiv(b.Retirement_Rsv, d.COUNT_1), CD.DECIMAL_POSITIONS) END) , b.PROCEEDS , (CASE WHEN b.Retirement_Amt <> 0 THEN %Round(%DecMult(b.proceeds, %DECDIV(a.Cost, b.retirement_amt)), CD.DECIMAL_POSITIONS) ELSE %Round(%DecDiv(b.proceeds, d.COUNT_1), CD.DECIMAL_POSITIONS) END) , b.Removal_Cost , (CASE WHEN b.Retirement_Amt <> 0 THEN %Round(%DecMult(b.Removal_cost, %DECDIV(a.Cost, b.retirement_amt)), CD.DECIMAL_POSITIONS) ELSE %Round(%DecDiv(b.Removal_cost, d.COUNT_1), CD.DECIMAL_POSITIONS) END) , b.Gain_Loss , (CASE WHEN b.Retirement_Amt <> 0 THEN %Round(%DecMult(b.Gain_loss, %DECDIV(a.Cost, b.retirement_amt)), CD.DECIMAL_POSITIONS) ELSE %Round(%DecDiv(b.Gain_loss, d.COUNT_1), CD.DECIMAL_POSITIONS) END) , (CASE WHEN b.Retirement_Amt <> 0 THEN %Round(%DecDiv(a.Cost, b.Retirement_Amt), CD.DECIMAL_POSITIONS) ELSE 0 END) , a.From_cur , b.Capital_g_l , (CASE WHEN b.Retirement_Amt <> 0 THEN %Round(%DecMult(b.Capital_g_l, %DECDIV(a.Cost, b.retirement_amt)), CD.DECIMAL_POSITIONS) ELSE %Round(%DecDiv(b.Capital_g_l, d.COUNT_1), CD.DECIMAL_POSITIONS) END) FROM ps_Cost a , PS_RETIREMENT b , PS_CURRENCY_CD_TBL CD , PS_COST_COUNT_VW d WHERE a.Business_Unit = b.Business_Unit AND a.Asset_ID = b.Asset_ID AND a.Book = b.Book AND a.Business_Unit = d.Business_Unit AND a.Asset_ID = d.Asset_ID AND a.Book = d.Book AND (b.Retirement_Amt <> 0 OR b.proceeds <> 0 OR b.Removal_cost <> 0) AND a.DTTM_Stamp = b.DTTM_Stamp AND a.DTTM_Stamp = d.DTTM_Stamp AND A.FROM_CUR = 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

Default Value: OPR_DEF_TBL_FS.BUSINESS_UNIT

Prompt Table: SP_BU_AM_NONVW

2 ASSET_ID Character(12) VARCHAR2(12) NOT NULL Asset Identification

Prompt Table: ASSET

3 BOOK Character(10) VARCHAR2(10) NOT NULL Asset Book Name

Prompt Table: BOOK

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 CF_SEQNO Number(6,0) INTEGER NOT NULL Chartfield Sequence Number
6 GROUP_ASSET_ID Character(12) VARCHAR2(12) NOT NULL Group Asset ID
7 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
8 TRANS_IN_OUT Character(1) VARCHAR2(1) NOT NULL Transaction In/Out
I=In
M=IUT Proceeds Markup
O=Out
9 TRANS_CODE Character(5) VARCHAR2(5) NOT NULL Transaction Code
10 TRANS_DT Date(10) DATE Transaction Date
11 ACCOUNTING_DT Date(10) DATE The accounting entry construction date for a given transaction (a generic field that crosses multiple
12 OPERATING_UNIT Character(8) VARCHAR2(8) NOT NULL Operating Unit ChartField

Prompt Table: OPER_UNIT_TBL

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

Prompt Table: PRODUCT_TBL

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

Prompt Table: FUND_TBL

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

Prompt Table: CLASS_CF_TBL

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

Prompt Table: PROGRAM_TBL

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

Prompt Table: BUD_REF_TBL

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

Prompt Table: AFFILIATE_VW

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

Prompt Table: %EDIT_INTRA01

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

Prompt Table: %EDIT_INTRA02

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

Prompt Table: CHARTFIELD1_TBL

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

Prompt Table: CHARTFIELD2_TBL

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

Prompt Table: CHARTFIELD3_TBL

24 BUSINESS_UNIT_PC Character(5) VARCHAR2(5) NOT NULL PC Business Unit
25 ACTIVITY_ID Character(15) VARCHAR2(15) NOT NULL Activity ID
26 RESOURCE_TYPE Character(5) VARCHAR2(5) NOT NULL Source Type
27 RESOURCE_CATEGORY Character(5) VARCHAR2(5) NOT NULL Category
28 RESOURCE_SUB_CAT Character(5) VARCHAR2(5) NOT NULL Subcategory
29 ANALYSIS_TYPE Character(3) VARCHAR2(3) NOT NULL Analysis Type
30 PROJECT_ID Character(15) VARCHAR2(15) NOT NULL Project Id ChartField
31 DEPTID Character(10) VARCHAR2(10) NOT NULL Department

Prompt Table: DEPT_TBL

32 CATEGORY Character(5) VARCHAR2(5) NOT NULL Asset Category
33 COST_TYPE Character(1) VARCHAR2(1) NOT NULL Cost Type
34 TRADE_IN_ASSET_ID Character(12) VARCHAR2(12) NOT NULL Trade In Asset
35 TRADE_IN_DTTM_STMP DateTime(26) TIMESTAMP Trade In DateTime Stamp
36 ACTIVITY_SW Signed Number(2,0) DECIMAL(1) NOT NULL Activity Switch
37 RETIRE_SW Signed Number(2,0) DECIMAL(1) NOT NULL Retirement Switch
38 QUANTITY Signed Number(17,4) DECIMAL(15,4) NOT NULL Qty Interface
39 LINE_AMT Signed Number(28,3) DECIMAL(26,3) NOT NULL Cost Retired at Chart
40 DISPOSAL_CODE Character(1) VARCHAR2(1) NOT NULL Retirement Type
A=Abandonment
C=Cannibalize for Other Assets
D=Disappeared Assets
E=Expensed
F=Disposal Due to Theft
I=Returned to Inventory
L=Like Kind Exchange
M=Missing Asset
N=Donated to External Group
O=ARO Settlement
R=Scrapped Assets
S=Retirement by Sale
T=Traded In for another Asset
V=Auto-Retire Fully Depr Assets
Y=Casualty Loss
41 RETIREMENT_AMT Signed Number(28,3) DECIMAL(26,3) NOT NULL Retirement Amount
42 RETIREMENT_RSV Signed Number(28,3) DECIMAL(26,3) NOT NULL Accum Depr
43 LINE_RSV Signed Number(28,3) DECIMAL(26,3) NOT NULL Reserve Retired at Chart
44 PROCEEDS Signed Number(28,3) DECIMAL(26,3) NOT NULL Retirement Proceeds
45 LINE_PROCEEDS Signed Number(28,3) DECIMAL(26,3) NOT NULL Proceeds at Chart Level
46 REMOVAL_COST Signed Number(28,3) DECIMAL(26,3) NOT NULL Removal Cost
47 LINE_REMOVAL_COST Signed Number(28,3) DECIMAL(26,3) NOT NULL Removal Cost at Chart
48 GAIN_LOSS Signed Number(28,3) DECIMAL(26,3) NOT NULL Retirement Gain/Loss
49 LINE_GAIN_LOSS Signed Number(28,3) DECIMAL(26,3) NOT NULL Gain/Loss at Chartfield
50 LINE_FRACTION Signed Number(17,2) DECIMAL(15,2) NOT NULL Fraction of Cost at Chart
51 FROM_CUR Character(3) VARCHAR2(3) NOT NULL From Currency Code
52 CAPITAL_G_L Signed Number(28,3) DECIMAL(26,3) NOT NULL Capital Gains and Loss
53 LINE_CAPITAL_G_L Signed Number(28,3) DECIMAL(26,3) NOT NULL