COST_BAL_CFSEC(SQL View) |
Index Back |
---|---|
Asset Current Cost by ChartfldAsset Current Cost by Chartfld for CFSecurity. Cloned from COST_BAL_VW, but uses CFS14_AN_SBR and the various %EDIT_xx prompts for the CFs. |
SELECT A.Business_Unit , A.Asset_Id , A.Book , A.CF_SEQNO , %subrec(CFS14_AN_SBR, A) , A.PROJECT_ID , A.DEPTID , A.Category , A.Cost_Type , A.Group_Asset_Id , A.From_Cur , SUM(A.Activity_Sw) , SUM(A.Retire_Sw) , SUM(A.Quantity) , SUM(A.Cost) , SUM(A.SALVAGE_VALUE) , MIN(A.Trans_Dt) , MAX(A.iu_map_key) FROM PS_COST A WHERE A.Trans_Dt <= %CurrentDateIn GROUP BY A.Business_Unit , A.Asset_Id , A.Book , A.CF_SEQNO, %subrec(CFS14_AN_SBR, A) , A.PROJECT_ID, A.DEPTID, A.Category , A.Cost_Type , A.Group_Asset_Id , A.From_Cur HAVING SUM(A.ACTIVITY_SW) = 0 AND SUM(A.RETIRE_SW) = 0 |
# | 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 |
2 | ASSET_ID | Character(12) | VARCHAR2(12) NOT NULL | Asset Identification |
3 | BOOK | Character(10) | VARCHAR2(10) NOT NULL |
Asset Book Name
Prompt Table: BOOK |
4 | CF_SEQNO | Number(6,0) | INTEGER NOT NULL | Chartfield Sequence Number |
5 | OPERATING_UNIT | Character(8) | VARCHAR2(8) NOT NULL |
Operating Unit ChartField
Prompt Table: %EDIT_OPER_UNIT |
6 | PRODUCT | Character(6) | VARCHAR2(6) NOT NULL |
Product ChartField
Prompt Table: %EDIT_PRODUCT |
7 | FUND_CODE | Character(5) | VARCHAR2(5) NOT NULL |
Fund Code
Prompt Table: %EDIT_FUND_CODE |
8 | CLASS_FLD | Character(5) | VARCHAR2(5) NOT NULL |
Class Field
Prompt Table: %EDIT_CLASS_FLD |
9 | PROGRAM_CODE | Character(5) | VARCHAR2(5) NOT NULL |
Program Code ChartField
Prompt Table: %EDIT_PROG_CODE |
10 | BUDGET_REF | Character(8) | VARCHAR2(8) NOT NULL |
Budget Reference
Prompt Table: %EDIT_BUD_REF |
11 | AFFILIATE | Character(5) | VARCHAR2(5) NOT NULL |
Affiliate
Prompt Table: AFFILIATE_VW |
12 | AFFILIATE_INTRA1 | Character(10) | VARCHAR2(10) NOT NULL |
IntraUnit Affiliate1
Prompt Table: %EDIT_INTRA01 |
13 | AFFILIATE_INTRA2 | Character(10) | VARCHAR2(10) NOT NULL |
Operating Unit Affiliate
Prompt Table: %EDIT_INTRA02 |
14 | CHARTFIELD1 | Character(10) | VARCHAR2(10) NOT NULL |
Expansion chartfield 1
Prompt Table: %EDIT_CHARTFLD1 |
15 | CHARTFIELD2 | Character(10) | VARCHAR2(10) NOT NULL |
Expansion Chartfield 2
Prompt Table: %EDIT_CHARTFLD2 |
16 | CHARTFIELD3 | Character(10) | VARCHAR2(10) NOT NULL |
Expansion Chartfield 3
Prompt Table: %EDIT_CHARTFLD3 |
17 | PROJECT_ID | Character(15) | VARCHAR2(15) NOT NULL |
Project Id ChartField
Prompt Table: %EDIT_PROJECT |
18 | DEPTID | Character(10) | VARCHAR2(10) NOT NULL |
Department
Prompt Table: %EDIT_DEPT |
19 | CATEGORY | Character(5) | VARCHAR2(5) NOT NULL | Asset Category |
20 | COST_TYPE | Character(1) | VARCHAR2(1) NOT NULL |
Cost Type
Prompt Table: COST_TYPE_TBL |
21 | GROUP_ASSET_ID | Character(12) | VARCHAR2(12) NOT NULL | Group Asset ID |
22 | FROM_CUR | Character(3) | VARCHAR2(3) NOT NULL | From Currency Code |
23 | ACTIVITY_SW | Signed Number(2,0) | DECIMAL(1) NOT NULL | Activity Switch |
24 | RETIRE_SW | Signed Number(2,0) | DECIMAL(1) NOT NULL | Retirement Switch |
25 | QUANTITY | Signed Number(17,4) | DECIMAL(15,4) NOT NULL | Qty Interface |
26 | COST | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Total Cost |
27 | SALVAGE_VALUE | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Salvage Value |
28 | MIN_TRANS_DT | Date(10) | DATE | Minimum Trans Date |
29 | IU_MAP_KEY | Number(7,0) | INTEGER NOT NULL | InterUnit transfer map key |