ASSET_CUST_VW

(SQL View)
Index Back

Asset Current Custodian


SELECT A.BUSINESS_UNIT , A.ASSET_ID , A.EFFDT , A.EFFSEQ , A.CUSTODIAN , A.EMPLID , %subrec(CF14_AN_SBR, A) , A.PROJECT_ID , A.DEPTID , A.OFFSITE_SW , A.AUTH_STATUS , A.AUTHORIZATION_NAME , A.AUTHORIZATION_DT , A.DEPTID FROM PS_ASSET_CUSTODIAN A WHERE A.EFFDT = ( SELECT MAX(B.EFFDT) FROM PS_ASSET_CUSTODIAN B WHERE A.BUSINESS_UNIT = B.BUSINESS_UNIT AND A.ASSET_ID = B.ASSET_ID AND B.EFFDT <= %CurrentDateIn) AND A.EFFSEQ = ( SELECT MAX(Y.EFFSEQ) FROM PS_ASSET_CUSTODIAN Y WHERE Y.BUSINESS_UNIT = A.BUSINESS_UNIT AND Y.ASSET_ID = A.ASSET_ID AND Y.EFFDT = A.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
3 CUSTODIAN_EFFDT Date(10) DATE Asset Custodian Effective Dt
4 EFFSEQ Number(3,0) SMALLINT NOT NULL Effective Sequence
5 CUSTODIAN Character(30) VARCHAR2(30) NOT NULL Custodian
6 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID
7 OPERATING_UNIT Character(8) VARCHAR2(8) NOT NULL Operating Unit ChartField

Prompt Table: OPER_UNIT_TBL

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

Prompt Table: PRODUCT_TBL

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

Prompt Table: FUND_TBL

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

Prompt Table: CLASS_CF_TBL

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

Prompt Table: PROGRAM_TBL

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

Prompt Table: BUD_REF_TBL

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

Prompt Table: AFFILIATE_VW

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

Prompt Table: %EDIT_INTRA01

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

Prompt Table: %EDIT_INTRA02

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

Prompt Table: CHARTFIELD1_TBL

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

Prompt Table: CHARTFIELD2_TBL

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

Prompt Table: CHARTFIELD3_TBL

19 PROJECT_ID Character(15) VARCHAR2(15) NOT NULL Project Id ChartField

Prompt Table: PROJECT_ID_VW

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

Prompt Table: DEPT_TBL

21 OFFSITE_SW Character(1) VARCHAR2(1) NOT NULL This Asset is Offsite

Y/N Table Edit

Default Value: N

22 AUTH_STATUS Character(1) VARCHAR2(1) NOT NULL Authorization Status
A=Authorized
N=Not Authorized
P=Authorization Pending
23 AUTHORIZATION_NAME Character(30) VARCHAR2(30) NOT NULL Authorization Name
24 AUTHORIZATION_DT Date(10) DATE Date Authorized
25 CUSTODIAN_DEPTID Character(10) VARCHAR2(10) NOT NULL Asset Custodian Deptid