NON_LK_EXCH_VW

(SQL View)
Index Back

Asset Trade In by Chartfields


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(CF14_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, %decdiv(a.Cost, b.NON_LIKE_BASIS)) , C.DECIMAL_POSITIONS) , b.PROCEEDS , %Round(%DecMult(b.Proceeds, %decdiv( a.Cost , b.NON_LIKE_BASIS )) , C.DECIMAL_POSITIONS) , b.Removal_Cost , %Round(%DecMult(b.Removal_Cost, %decdiv(a.Cost , b.NON_LIKE_BASIS ) ) , C.DECIMAL_POSITIONS) , b.Gain_Loss , %Round(%DecMult(b.Gain_Loss, %decdiv(a.Cost , b.NON_LIKE_BASIS ) ) , C.DECIMAL_POSITIONS) , b.Recog_Gain_Loss , %Round(%DecMult(b.Recog_Gain_Loss ,%decdiv(a.Cost , b.NON_LIKE_BASIS ) ) , C.DECIMAL_POSITIONS) , b.cash , %Round(%DecMult(b.cash , %decdiv(a.Cost , b.NON_LIKE_BASIS ) ) , C.DECIMAL_POSITIONS) , b.trade_in_value , %Round(%DecMult(b.trade_in_value , %decdiv(a.Cost , b.NON_LIKE_BASIS ) ) , C.DECIMAL_POSITIONS) , b.Non_Like_Kind , %Round(%DecMult(b.Non_Like_kind , %decdiv(a.Cost , b.NON_LIKE_BASIS ) ) , C.DECIMAL_POSITIONS) , b.liability_assumed , %Round(%DecMult(b.liability_assumed , %decdiv (a.Cost , b.NON_LIKE_BASIS ) ) , C.DECIMAL_POSITIONS) , %Round(%DecDiv(a.Cost , b.NON_LIKE_BASIS ) , C.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 C WHERE a.Business_Unit = b.Business_Unit AND a.Asset_ID = b.NON_LIKE_ASSET_ID AND a.Book = b.Book AND b.Retirement_Amt <> 0 AND B.NON_LIKE_BASIS <> 0 AND a.DTTM_Stamp =b.NON_LKE_DTTM_STAMP AND C.CURRENCY_CD = B.FROM_CUR AND C.EFF_STATUS = 'A' AND C.EFFDT = ( SELECT MAX(D.EFFDT) FROM PS_CURRENCY_CD_TBL D WHERE D.CURRENCY_CD = C.CURRENCY_CD AND D.EFFDT < %CurrentDateIn)

# 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

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 PROJECT_ID Character(15) VARCHAR2(15) NOT NULL Project Id ChartField

Prompt Table: PROJECT_ID_VW

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

Prompt Table: DEPT_TBL

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 REMOVAL_COST Signed Number(28,3) DECIMAL(26,3) NOT NULL Removal Cost
37 LINE_REMOVAL_COST Signed Number(28,3) DECIMAL(26,3) NOT NULL Removal Cost at Chart
38 GAIN_LOSS Signed Number(28,3) DECIMAL(26,3) NOT NULL Retirement Gain/Loss
39 LINE_GAIN_LOSS Signed Number(28,3) DECIMAL(26,3) NOT NULL Gain/Loss at Chartfield
40 RECOG_GAIN_LOSS Signed Number(28,3) DECIMAL(26,3) NOT NULL Ret. Recognized Gain/Loss
41 LINE_RECOG_GL Signed Number(28,3) DECIMAL(26,3) NOT NULL Ret. Recognized GL at Chart
42 CASH Signed Number(28,3) DECIMAL(26,3) NOT NULL Cash Received/Paid
43 LINE_CASH Signed Number(28,3) DECIMAL(26,3) NOT NULL Cash Received/Paid- Like Exch
44 TRADE_IN_VALUE Signed Number(28,3) DECIMAL(26,3) NOT NULL Trade In value
45 LINE_TRADEINVALUE Signed Number(28,3) DECIMAL(26,3) NOT NULL Trade In value
46 NON_LIKE_KIND Signed Number(28,3) DECIMAL(26,3) NOT NULL FMV Non Like Kind Property
47 LINE_NON_LIKE_KIND Signed Number(28,3) DECIMAL(26,3) NOT NULL FMV Non Like Kind Property
48 LIABILITY_ASSUMED Signed Number(28,3) DECIMAL(26,3) NOT NULL Liabilities Assumed
49 LINE_LIAB_ASSUMED Signed Number(28,3) DECIMAL(26,3) NOT NULL Liabilities Assumed
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 TXN_CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Transaction Currency
53 RATE_MULT Signed Number(17,8) DECIMAL(15,8) NOT NULL Rate Multiplier
54 RATE_DIV Number(16,8) DECIMAL(15,8) NOT NULL Rate Divisor
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 GROUP_ASSET_ID Character(12) VARCHAR2(12) NOT NULL Group Asset ID