PI_EXTRACT_VW(SQL View) |
Index Back |
---|---|
Asset PI Extract View |
SELECT A.BUSINESS_UNIT , A.ASSET_ID , D.BOOK , D.CF_sEQNO , %subrec(CF12_AN_SBR, D) , %subrec(AM_CF1_N_SBR, D) , d.PROJECT_ID , D.DEPTID , D.CATEGORY , A.ACQUISITION_CD , D.COST_TYPE , D.COST , A.TAG_NUMBER , A.SERIAL_ID , A.PARENT_ID , A.MODEL , C.LOCATION , B.EMPLID , A.DESCR , A.TAGGABLE_SW , A.MANUFACTURER , %DateNull , A.PROFILE_ID , A.ASSET_CLASS , A.ASSET_TYPE , A.ASSET_SUBTYPE , A.FINANCIAL_ASSET_SW , B.CUSTODIAN , C.AREA_ID , A.ACQUISITION_DT , B.DEPTID FROM PS_ASSET A , PS_ASSET_CUSTODIAN B , PS_ASSET_LOCATION C , PS_COST_BAL_VW D , PS_BUS_UNIT_TBL_AM E WHERE A.BUSINESS_UNIT = B.BUSINESS_UNIT AND A.BUSINESS_UNIT = C.BUSINESS_UNIT AND A.BUSINESS_UNIT = D.BUSINESS_UNIT AND A.BUSINESS_UNIT = E.BUSINESS_UNIT AND D.BOOK = E.DEFAULT_BOOK AND A.ASSET_ID = D.ASSET_ID AND A.ASSET_ID = B.ASSET_ID AND A.ASSET_ID = C.ASSET_ID AND A.GROUP_ASSET_FLAG <> 'G' AND B.EFFDT = ( SELECT MAX(Z.EFFDT) FROM PS_ASSET_CUSTODIAN Z WHERE Z.BUSINESS_UNIT = A.BUSINESS_UNIT AND Z.ASSET_ID = A.ASSET_ID AND Z.EFFDT <= %CurrentDateIn) AND B.EFFSEQ = ( SELECT MAX(G.EFFSEQ) FROM PS_ASSET_CUSTODIAN G WHERE G.BUSINESS_UNIT = A.BUSINESS_UNIT AND G.ASSET_ID = A.ASSET_ID AND G.EFFDT = B.EFFDT) AND C.EFFDT = ( SELECT MAX(X.EFFDT) FROM PS_ASSET_LOCATION X WHERE X.BUSINESS_UNIT = A.BUSINESS_UNIT AND X.ASSET_ID = A.ASSET_ID AND X.EFFDT <= %CurrentDateIn) AND C.EFFSEQ = ( SELECT MAX(Y.EFFSEQ) FROM PS_ASSET_LOCATION Y WHERE Y.BUSINESS_UNIT = A.BUSINESS_UNIT AND Y.ASSET_ID = A.ASSET_ID AND Y.EFFDT = C.EFFDT) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Business Unit |
2 | ASSET_ID | Character(12) | VARCHAR2(12) NOT NULL | Asset Identification |
3 | BOOK | Character(10) | VARCHAR2(10) NOT NULL | Asset Book Name |
4 | CF_SEQNO | Number(6,0) | INTEGER NOT NULL | Chartfield Sequence Number |
5 | OPERATING_UNIT | Character(8) | VARCHAR2(8) NOT NULL | Operating Unit ChartField |
6 | PRODUCT | Character(6) | VARCHAR2(6) NOT NULL | Product ChartField |
7 | FUND_CODE | Character(5) | VARCHAR2(5) NOT NULL | Fund Code |
8 | CLASS_FLD | Character(5) | VARCHAR2(5) NOT NULL | Class Field |
9 | PROGRAM_CODE | Character(5) | VARCHAR2(5) NOT NULL | Program Code ChartField |
10 | BUDGET_REF | Character(8) | VARCHAR2(8) NOT NULL | Budget Reference |
11 | AFFILIATE | Character(5) | VARCHAR2(5) NOT NULL | Affiliate |
12 | AFFILIATE_INTRA1 | Character(10) | VARCHAR2(10) NOT NULL | IntraUnit Affiliate1 |
13 | AFFILIATE_INTRA2 | Character(10) | VARCHAR2(10) NOT NULL | Operating Unit Affiliate |
14 | CHARTFIELD1 | Character(10) | VARCHAR2(10) NOT NULL | Expansion chartfield 1 |
15 | CHARTFIELD2 | Character(10) | VARCHAR2(10) NOT NULL | Expansion Chartfield 2 |
16 | CHARTFIELD3 | Character(10) | VARCHAR2(10) NOT NULL | Expansion Chartfield 3 |
17 | BUSINESS_UNIT_PC | Character(5) | VARCHAR2(5) NOT NULL | PC Business Unit |
18 | ACTIVITY_ID | Character(15) | VARCHAR2(15) NOT NULL | Activity ID |
19 | RESOURCE_TYPE | Character(5) | VARCHAR2(5) NOT NULL | Source Type |
20 | RESOURCE_CATEGORY | Character(5) | VARCHAR2(5) NOT NULL | Category |
21 | RESOURCE_SUB_CAT | Character(5) | VARCHAR2(5) NOT NULL | Subcategory |
22 | ANALYSIS_TYPE | Character(3) | VARCHAR2(3) NOT NULL | Analysis Type |
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 | ACQUISITION_CD | Character(1) | VARCHAR2(1) NOT NULL |
Acquisition Code
C=Constructed D=Donated I=Trade In K=Like Exchange L=Leased P=Purchased T=Transferred |
27 | COST_TYPE | Character(1) | VARCHAR2(1) NOT NULL | Cost Type |
28 | COST | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Total Cost |
29 | TAG_NUMBER | Character(12) | VARCHAR2(12) NOT NULL | Tag Number |
30 | SERIAL_ID | Character(20) | VARCHAR2(20) NOT NULL | Serial ID |
31 | PARENT_ID | Character(12) | VARCHAR2(12) NOT NULL | Parent ID |
32 | MODEL | Character(30) | VARCHAR2(30) NOT NULL | Model |
33 | LOCATION | Character(10) | VARCHAR2(10) NOT NULL | Location Code |
34 | EMPLID | Character(11) | VARCHAR2(11) NOT NULL | Employee ID |
35 | DESCR | Character(30) | VARCHAR2(30) NOT NULL | Description |
36 | TAGGABLE_SW | Character(1) | VARCHAR2(1) NOT NULL |
Taggable Asset
N=Non Taggable Asset Y=Taggable Asset |
37 | MANUFACTURER | Character(60) | VARCHAR2(60) NOT NULL | Manufacturer Name |
38 | INVENTORY_DT | Date(10) | DATE | Inventory Date |
39 | PROFILE_ID | Character(10) | VARCHAR2(10) NOT NULL | Asset Profile ID |
40 | ASSET_CLASS | Character(10) | VARCHAR2(10) NOT NULL | Asset Class |
41 | ASSET_TYPE | Character(3) | VARCHAR2(3) NOT NULL |
Asset Type
010=IT Hardware 020=IT Software 040=Equipment 050=Property 060=Fleet 070=Machinery 080=Furniture 090=Facility 100=Intangible 200=Asset Retirement Obligations 999=Other |
42 | ASSET_SUBTYPE | Character(15) | VARCHAR2(15) NOT NULL | Asset Subtype |
43 | FINANCIAL_ASSET_SW | Character(1) | VARCHAR2(1) NOT NULL |
Capitalized Asset
N=Non Cap Y=Capitalize |
44 | CUSTODIAN | Character(30) | VARCHAR2(30) NOT NULL | Custodian |
45 | AREA_ID | Character(10) | VARCHAR2(10) NOT NULL | Area ID |
46 | ACQUISITION_DT | Date(10) | DATE | Acquisition Date |
47 | CUSTODIAN_DEPTID | Character(10) | VARCHAR2(10) NOT NULL | Asset Custodian Deptid |