AM_COST_LOC_VW(SQL View) |
Index Back |
---|
SELECT DISTINCT A.ASSET_ID , A.BUSINESS_UNIT , A.DESCR , A.TAG_NUMBER , A.SERIAL_ID , C.CATEGORY , SUM(C.COST) , C.FROM_CUR , SUM(C.QUANTITY) , 0 , C.FROM_CUR , 0 , C.FROM_CUR , SUM(C.QUANTITY) , 'S' , %CurrentDateIn FROM PS_ASSET A , PS_COST C , PS_ASSET_LOCATION E , PS_SP_BU_AM_NONVW F , PS_BUS_UNIT_TBL_AM G WHERE A.BUSINESS_UNIT = C.BUSINESS_UNIT AND A.ASSET_ID = C.ASSET_ID AND A.ASSET_STATUS = 'I' AND A.BUSINESS_UNIT = E.BUSINESS_UNIT AND A.ASSET_ID = E.ASSET_ID AND A.BUSINESS_UNIT = F.BUSINESS_UNIT AND C.BUSINESS_UNIT = G.BUSINESS_UNIT AND C.BOOK = G.DEFAULT_BOOK AND C.TRANS_DT <= %CurrentDateIn AND %Sql(AM_LOC_EFFDT_EFFSEQ) GROUP BY A.ASSET_ID , A.BUSINESS_UNIT , A.DESCR , A.TAG_NUMBER , A.SERIAL_ID , C.CATEGORY, C.FROM_CUR HAVING SUM(ACTIVITY_SW) = 0 AND SUM(RETIRE_SW) = 0 |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | ASSET_ID | Character(12) | VARCHAR2(12) NOT NULL | Asset Identification |
2 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Business Unit |
3 | DESCR | Character(30) | VARCHAR2(30) NOT NULL | Description |
4 | TAG_NUMBER | Character(12) | VARCHAR2(12) NOT NULL | Tag Number |
5 | SERIAL_ID | Character(20) | VARCHAR2(20) NOT NULL | Serial ID |
6 | CATEGORY | Character(5) | VARCHAR2(5) NOT NULL | Asset Category |
7 | COST | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Total Cost |
8 | CURRENCY_CD | Character(3) | VARCHAR2(3) NOT NULL | Currency Code |
9 | QUANTITY | Signed Number(17,4) | DECIMAL(15,4) NOT NULL | Qty Interface |
10 | PROCEEDS | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Retirement Proceeds |
11 | TXN_CURRENCY_CD | Character(3) | VARCHAR2(3) NOT NULL | Transaction Currency |
12 | REMOVAL_COST | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Removal Cost |
13 | TXN_CURRENCY_CD1 | Character(3) | VARCHAR2(3) NOT NULL | Transaction Currency Display |
14 | RETIRE_QUANTITY | Signed Number(17,4) | DECIMAL(15,4) NOT NULL | Retirement Quantity |
15 | DISPOSAL_CODE | Character(1) | VARCHAR2(1) NOT NULL |
Retirement Type
A=Abandonment C=Cannibalize for Other Assets D=Disappeared Assets E=Expensed F=Disposal Due to Theft I=Returned to Inventory L=Like Kind Exchange M=Missing Asset N=Donated to External Group O=ARO Settlement R=Scrapped Assets S=Retirement by Sale T=Traded In for another Asset V=Auto-Retire Fully Depr Assets Y=Casualty Loss |
16 | RETIREMENT_DT | Date(10) | DATE | Projected Retirement Date |