ASSET_TXN1_VW

(SQL View)
Index Back

Asset Cost Txns for Upd/Del


SELECT DISTINCT A.OPRID , A.OPEN_TRANS_ID , A.BUSINESS_UNIT , A.ASSET_ID , B.BOOK , C.DTTM_STAMP , A.TRANS_TYPE , A.TRANS_DT , A.ACCOUNTING_DT , C.TRANS_CODE , C.CONVENTION , B.IN_SERVICE_DT , B.DEPR_STATUS FROM PS_OPEN_TRANS A , PS_COST C , PS_BOOK B WHERE A.BUSINESS_UNIT = C.BUSINESS_UNIT AND A.ASSET_ID = C.ASSET_ID AND A.BOOK = C.BOOK AND B.BUSINESS_UNIT = C.BUSINESS_UNIT AND B.ASSET_ID = C.ASSET_ID AND B.BOOK = C.BOOK AND A.CALC_DEPR_STATUS = 'P' AND C.DTTM_STAMP = A.DTTM_STAMP AND C.TRANS_IN_OUT IN ('I', ' ') AND A.DTTM_STAMP = ( SELECT MAX(DTTM_STAMP) FROM PS_OPEN_TRANS D WHERE D.BUSINESS_UNIT = A.BUSINESS_UNIT AND D.ASSET_ID = A.ASSET_ID) AND (A.TRANS_TYPE IN ( SELECT TYPE_RETIRE FROM PS_INSTALLATION_AM) OR A.TRANS_TYPE IN ( SELECT TYPE_RECATEGORIZE FROM PS_INSTALLATION_AM) OR A.TRANS_TYPE IN ( SELECT TYPE_ADD FROM PS_INSTALLATION_AM) OR A.TRANS_TYPE IN ( SELECT TYPE_ADJUSTMENT FROM PS_INSTALLATION_AM) OR A.TRANS_TYPE IN ( SELECT TYPE_TRANSFER FROM PS_INSTALLATION_AM))

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 OPRID Character(30) VARCHAR2(30) NOT NULL A user's ID (see PSOPRDEFN).
2 OPEN_TRANS_ID Number(10,0) DECIMAL(10) NOT NULL Open Transaction ID
3 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
4 ASSET_ID Character(12) VARCHAR2(12) NOT NULL Asset Identification
5 BOOK Character(10) VARCHAR2(10) NOT NULL Asset Book Name

Prompt Table: SP_BU_BK_NONVW

6 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.
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_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 TRANS_CODE Character(5) VARCHAR2(5) NOT NULL Transaction Code
11 CONVENTION Character(2) VARCHAR2(2) NOT NULL Book Depreciation Convention or Cost Convention

Prompt Table: CONV_TBL

12 IN_SERVICE_DT Date(10) DATE In Service Date
13 DEPR_STATUS Character(1) VARCHAR2(1) NOT NULL Depreciation Status
D=Depreciable
N=Non Depreciable