TRADE_IN_VW

(SQL View)
Index Back

Asset Trade In by Chartfields


SELECT a.Business_Unit , a.Asset_ID , a.Book , a.DTTM_Stamp , a.Trans_Type , a.Trans_In_Out , a.Trans_Code , a.Trans_Dt , a.Accounting_Dt , A.CF_SEQNO , %subrec(CF13_AN_SBR, A) , %subrec(AM_CF1_N_SBR, A) , a.PROJECT_ID , A.DEPTID , a.Category , a.Cost_Type , a.Activity_Sw , a.Retire_Sw , a.Quantity , a.Cost , a.TXN_Cost , b.Retirement_Amt , b.Retirement_Rsv , %Round( %DecMult(b.Retirement_Rsv , %DECDIV(a.Cost , b.trade_in_amt)) ,CD.DECIMAL_POSITIONS) , b.TXN_PROCEEDS , %Round( %DecMult(b.TXN_Proceeds , %DECDIV(a.TXN_Cost , b.TXN_Trade_In_Amt)) ,CD.DECIMAL_POSITIONS) , b.PROCEEDS , %Round( %DecMult(b.proceeds , %DECDIV(a.Cost , b.trade_in_amt)) ,CD.DECIMAL_POSITIONS) , b.Removal_Cost , %Round( %DecMult(b.Removal_cost , %DECDIV(a.Cost , b.trade_in_amt)) ,CD.DECIMAL_POSITIONS) , b.Gain_Loss , %Round( %DecMult(b.Gain_loss , %DECDIV(a.Cost , b.trade_in_amt)) ,CD.DECIMAL_POSITIONS) , %Round( %DecDiv(a.Cost , b.Trade_In_Amt) ,CD.DECIMAL_POSITIONS) , a.from_cur , A.TXN_CURRENCY_CD , A.RATE_MULT , A.RATE_DIV , A.RT_TYPE , A.GROUP_ASSET_ID FROM ps_Cost a , PS_RETIREMENT b , PS_CURRENCY_CD_TBL CD WHERE a.Business_Unit = b.Business_Unit AND a.Asset_ID = b.Trade_In_Asset_ID AND a.Book = b.Book AND b.Retirement_Amt <> 0 AND a.DTTM_Stamp = b.Trade_In_DTTM_Stmp 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 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
6 TRANS_IN_OUT Character(1) VARCHAR2(1) NOT NULL Transaction In/Out
I=In
M=IUT Proceeds Markup
O=Out
7 TRANS_CODE Character(5) VARCHAR2(5) NOT NULL Transaction Code
8 TRANS_DT Date(10) DATE Transaction Date
9 ACCOUNTING_DT Date(10) DATE The accounting entry construction date for a given transaction (a generic field that crosses multiple
10 CF_SEQNO Number(6,0) INTEGER NOT NULL Chartfield Sequence Number
11 OPERATING_UNIT Character(8) VARCHAR2(8) NOT NULL Operating Unit ChartField

Prompt Table: OPER_UNIT_TBL

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

Prompt Table: PRODUCT_TBL

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

Prompt Table: FUND_TBL

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

Prompt Table: CLASS_CF_TBL

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

Prompt Table: PROGRAM_TBL

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

Prompt Table: BUD_REF_TBL

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

Prompt Table: AFFILIATE_VW

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

Prompt Table: %EDIT_INTRA01

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

Prompt Table: %EDIT_INTRA02

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

Prompt Table: CHARTFIELD1_TBL

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

Prompt Table: CHARTFIELD2_TBL

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

Prompt Table: CHARTFIELD3_TBL

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

Prompt Table: PROJECT_ID_VW

30 DEPTID Character(10) VARCHAR2(10) NOT NULL Department

Prompt Table: DEPT_TBL

31 CATEGORY Character(5) VARCHAR2(5) NOT NULL Asset Category
32 COST_TYPE Character(1) VARCHAR2(1) NOT NULL Cost Type
33 ACTIVITY_SW Signed Number(2,0) DECIMAL(1) NOT NULL Activity Switch
34 RETIRE_SW Signed Number(2,0) DECIMAL(1) NOT NULL Retirement Switch
35 QUANTITY Signed Number(17,4) DECIMAL(15,4) NOT NULL Qty Interface
36 LINE_AMT Signed Number(28,3) DECIMAL(26,3) NOT NULL Cost Retired at Chart
37 LINE_TXN_AMT Signed Number(28,3) DECIMAL(26,3) NOT NULL Cost Retired at Chart
38 RETIREMENT_AMT Signed Number(28,3) DECIMAL(26,3) NOT NULL Retirement Amount
39 RETIREMENT_RSV Signed Number(28,3) DECIMAL(26,3) NOT NULL Accum Depr
40 LINE_RSV Signed Number(28,3) DECIMAL(26,3) NOT NULL Reserve Retired at Chart
41 TXN_PROCEEDS Signed Number(28,3) DECIMAL(26,3) NOT NULL Transaction Proceeds
42 LINE_TXN_PROCEEDS Signed Number(28,3) DECIMAL(26,3) NOT NULL Proceeds at Chart Level
43 PROCEEDS Signed Number(28,3) DECIMAL(26,3) NOT NULL Retirement Proceeds
44 LINE_PROCEEDS Signed Number(28,3) DECIMAL(26,3) NOT NULL Proceeds at Chart Level
45 REMOVAL_COST Signed Number(28,3) DECIMAL(26,3) NOT NULL Removal Cost
46 LINE_REMOVAL_COST Signed Number(28,3) DECIMAL(26,3) NOT NULL Removal Cost at Chart
47 GAIN_LOSS Signed Number(28,3) DECIMAL(26,3) NOT NULL Retirement Gain/Loss
48 LINE_GAIN_LOSS Signed Number(28,3) DECIMAL(26,3) NOT NULL Gain/Loss at Chartfield
49 LINE_FRACTION Signed Number(17,2) DECIMAL(15,2) NOT NULL Fraction of Cost at Chart
50 FROM_CUR Character(3) VARCHAR2(3) NOT NULL From Currency Code
51 TXN_CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Transaction Currency
52 RATE_MULT Signed Number(17,8) DECIMAL(15,8) NOT NULL Rate Multiplier
53 RATE_DIV Number(16,8) DECIMAL(15,8) NOT NULL Rate Divisor
54 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.
55 GROUP_ASSET_ID Character(12) VARCHAR2(12) NOT NULL Group Asset ID