RETIRE_CUR_VW2

(SQL View)
Index Back

Asset Retirement - Current2


SELECT a.Business_Unit , a.Asset_ID , a.Book , a.DTTM_Stamp , a.CF_SEQNO , a.Trans_Type , a.Trans_In_Out , a.Trans_Code , a.Trans_Dt , a.Accounting_Dt , %subrec(CF12_AN_SBR, A) , a.PROJECT_ID , A.DEPTID , a.Category , a.Cost_Type , a.Activity_Sw , a.Retire_Sw , a.Quantity , a.Cost , b.Retirement_Amt , b.Retirement_Rsv , %Round( %DecMult(b.Retirement_Rsv , %decmult(a.Cost , %decdiv((1 + 0.0), b.Retirement_Amt))) ,CD.DECIMAL_POSITIONS) , b.PROCEEDS , %Round( %DecMult(b.Proceeds , %decmult(a.Cost , %decdiv(1, b.Retirement_Amt))) ,CD.DECIMAL_POSITIONS) , b.TXN_PROCEEDS , %Round( %DecMult(b.TXN_Proceeds , %decmult(a.Cost , %decdiv(1, b.Retirement_Amt))) ,CD.DECIMAL_POSITIONS) , B.TXN_CURRENCY_CD , B.RATE_MULT , B.RATE_DIV , b.Removal_Cost , %Round( %DecMult(b.Removal_Cost , %decmult(a.Cost , %decdiv((1+0.0) , b.Retirement_Amt))) ,CD.DECIMAL_POSITIONS) , b.TXN_Removal_Cost , %Round( %DecMult(b.TXN_Removal_Cost , %decmult(a.Cost , %decdiv((1+0.0), b.Retirement_Amt))) ,CD.DECIMAL_POSITIONS) , B.TXN_CURRENCY_CD2 , B.RATE_MULT_2 , B.RATE_DIV_2 , b.Gain_Loss , %Round( %DecMult(b.Gain_Loss , %decmult(a.Cost, %decdiv((1+0.0), b.Retirement_Amt))) ,CD.DECIMAL_POSITIONS) , %Round( %DecMult(a.Cost , %decdiv((1+0.0), b.Retirement_Amt)) ,CD.DECIMAL_POSITIONS) , a.From_cur , a.salvage_value , B.FULLY_DEPR_SW , B.DISPOSAL_CODE , B.RT_TYPE , ASSET.ASSET_STATUS FROM ps_Cost a , PS_RETIREMENT b , PS_CURRENCY_CD_TBL CD , PS_ASSET ASSET WHERE a.Business_Unit = b.Business_Unit AND a.Asset_ID = b.Asset_ID AND a.Book = b.Book AND b.Retirement_Amt <> 0 AND a.DTTM_Stamp = b.DTTM_Stamp AND b.dttm_stamp = ( SELECT MAX(c.dttm_stamp) FROM PS_RETIREMENT c WHERE c.dttm_stamp < %CurrentDateTimeIn AND c.Business_Unit = b.Business_Unit AND c.asset_id = b.asset_id AND c.book = b.book) AND a.Trans_Type = 'RET' AND A.FROM_CUR = CD.CURRENCY_CD %Sql(AM_CUR_CD_EFFDT) AND ASSET.ASSET_ID = A.ASSET_ID AND ASSET.ASSET_STATUS <> 'I'

# 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 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
7 TRANS_IN_OUT Character(1) VARCHAR2(1) NOT NULL Transaction In/Out
I=In
M=IUT Proceeds Markup
O=Out
8 TRANS_CODE Character(5) VARCHAR2(5) NOT NULL Transaction Code
9 TRANS_DT Date(10) DATE Transaction Date
10 ACCOUNTING_DT Date(10) DATE The accounting entry construction date for a given transaction (a generic field that crosses multiple
11 OPERATING_UNIT Character(8) VARCHAR2(8) NOT NULL Operating Unit ChartField
12 PRODUCT Character(6) VARCHAR2(6) NOT NULL Product ChartField
13 FUND_CODE Character(5) VARCHAR2(5) NOT NULL Fund Code
14 CLASS_FLD Character(5) VARCHAR2(5) NOT NULL Class Field
15 PROGRAM_CODE Character(5) VARCHAR2(5) NOT NULL Program Code ChartField
16 BUDGET_REF Character(8) VARCHAR2(8) NOT NULL Budget Reference
17 AFFILIATE Character(5) VARCHAR2(5) NOT NULL Affiliate
18 AFFILIATE_INTRA1 Character(10) VARCHAR2(10) NOT NULL IntraUnit Affiliate1
19 AFFILIATE_INTRA2 Character(10) VARCHAR2(10) NOT NULL Operating Unit Affiliate
20 CHARTFIELD1 Character(10) VARCHAR2(10) NOT NULL Expansion chartfield 1
21 CHARTFIELD2 Character(10) VARCHAR2(10) NOT NULL Expansion Chartfield 2
22 CHARTFIELD3 Character(10) VARCHAR2(10) NOT NULL Expansion Chartfield 3
23 PROJECT_ID Character(15) VARCHAR2(15) NOT NULL Project Id ChartField
24 DEPTID Character(10) VARCHAR2(10) NOT NULL Department
25 CATEGORY Character(5) VARCHAR2(5) NOT NULL Asset Category
26 COST_TYPE Character(1) VARCHAR2(1) NOT NULL Cost Type
27 ACTIVITY_SW Signed Number(2,0) DECIMAL(1) NOT NULL Activity Switch
28 RETIRE_SW Signed Number(2,0) DECIMAL(1) NOT NULL Retirement Switch
29 QUANTITY Signed Number(17,4) DECIMAL(15,4) NOT NULL Qty Interface
30 LINE_AMT Signed Number(28,3) DECIMAL(26,3) NOT NULL Cost Retired at Chart
31 RETIREMENT_AMT Signed Number(28,3) DECIMAL(26,3) NOT NULL Retirement Amount
32 RETIREMENT_RSV Signed Number(28,3) DECIMAL(26,3) NOT NULL Accum Depr
33 LINE_RSV Signed Number(28,3) DECIMAL(26,3) NOT NULL Reserve Retired at Chart
34 PROCEEDS Signed Number(28,3) DECIMAL(26,3) NOT NULL Retirement Proceeds
35 LINE_PROCEEDS Signed Number(28,3) DECIMAL(26,3) NOT NULL Proceeds at Chart Level
36 TXN_PROCEEDS Signed Number(28,3) DECIMAL(26,3) NOT NULL Transaction Proceeds
37 LINE_TXN_PROCEEDS Signed Number(28,3) DECIMAL(26,3) NOT NULL Proceeds at Chart Level
38 TXN_CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Transaction Currency
39 RATE_MULT Signed Number(17,8) DECIMAL(15,8) NOT NULL Rate Multiplier
40 RATE_DIV Number(16,8) DECIMAL(15,8) NOT NULL Rate Divisor
41 REMOVAL_COST Signed Number(28,3) DECIMAL(26,3) NOT NULL Removal Cost
42 TXN_REMOVAL_COST Signed Number(28,3) DECIMAL(26,3) NOT NULL Transaction Removal Cost
43 LINE_TXN_REM_COST Signed Number(28,3) DECIMAL(26,3) NOT NULL Transaction Line Removal Cost
44 LINE_REMOVAL_COST Signed Number(28,3) DECIMAL(26,3) NOT NULL Removal Cost at Chart
45 TXN_CURRENCY_CD2 Character(3) VARCHAR2(3) NOT NULL Transaction Currency Display
46 RATE_MULT_2 Signed Number(17,8) DECIMAL(15,8) NOT NULL Rate Multiplier
47 RATE_DIV_2 Number(16,8) DECIMAL(15,8) NOT NULL Rate Divisor
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 SALVAGE_VALUE Signed Number(28,3) DECIMAL(26,3) NOT NULL Salvage Value
53 FULLY_DEPR_SW Character(1) VARCHAR2(1) NOT NULL Retire As Fully Depreciated SW
F=Fully Depr with Future Expense
N=Calculate Gain/Loss
Y=Fully Depr no Future Expense
54 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
55 RT_TYPE Character(5) VARCHAR2(5) NOT NULL Defines a category of market rates for currency conversion. Some examples of rate types are commercial, average, floating, and historical.
56 ASSET_STATUS Character(1) VARCHAR2(1) NOT NULL Asset Status
A=Received (Not in Service)
B=Budgeted
C=Commitment
D=Disposed
I=In Service
M=Suspended
R=Requisitioned
T=Transferred
W=Work In Progress