AM_ED_COST_BAL

(SQL View)
Index Back

Asset Current Cost by Chartfld


SELECT A.BUSINESS_UNIT , A.ASSET_ID , A.BOOK , A.CF_SEQNO , %subrec(CF12_AN_SBR, A) , %subrec(AM_CF1_N_SBR, A) , A.PROJECT_ID , B.DESCR AS PROJ_DESCR , %Sql(DEPTID, A.) , A.CATEGORY , (%Sql(AM_ED_CF_DESCR_SEL, PS_CATEGORY_VW3, 'CATEGORY_VW3', CATEGORY)) , (%Sql(AM_ED_CF_DESCR_SEL, PS_DEPT_ALL_VW, 'DEPT_ALL_VW', %Sql(DEPTID,))) , (%Sql(AM_ED_CF_DESCR_SEL, PS_OPERUNIT_ALL_VW, 'OPERUNIT_ALL_VW', %Sql(OPERATING_UNIT,))) , (%Sql(AM_ED_CF_DESCR_SEL, PS_PROD_ALL_VW, 'PROD_ALL_VW', %Sql(PRODUCT,))) , (%Sql(AM_ED_CF_DESCR_SEL, PS_FUND_ALL_VW, 'FUND_ALL_VW', %Sql(FUND_CODE,))) , (%Sql(AM_ED_CF_DESCR_SEL, PS_CLASS_CF_ALL_VW, 'CLASS_CF_ALL_VW', %Sql(CLASS_FLD,))) , (%Sql(AM_ED_CF_DESCR_SEL, PS_PROGRAM_ALL_VW, 'PROGRAM_ALL_VW', %Sql(PROGRAM_CODE,))) , (%Sql(AM_ED_CF_DESCR_SEL, PS_BUDREF_ALL_VW, 'BUDREF_ALL_VW', %Sql(BUDGET_REF,))) , A.FROM_CUR , A.QUANTITY , A.COST FROM PS_COST_BAL_VW A LEFT OUTER JOIN PS_PROJECT B ON B.PROJECT_ID = A.PROJECT_ID WHERE EXISTS ( SELECT 'X' FROM PS_COST_BAL_VW X WHERE X.BUSINESS_UNIT = A.BUSINESS_UNIT AND X.ASSET_ID = A.ASSET_ID AND X.BOOK = A.BOOK AND X.PROJECT_ID <> ' ')

  • Parent record: BOOK
  • # 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 Default Book

    Default Value: BUS_UNIT_TBL_AM.DEFAULT_BOOK

    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
    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

    Prompt Table: PROJECT_ID_VW

    24 PROJ_DESCR Character(30) VARCHAR2(30) NOT NULL Project ID Description
    25 DEPTID Character(10) VARCHAR2(10) NOT NULL Department
    26 CATEGORY Character(5) VARCHAR2(5) NOT NULL Asset Category
    27 CATEGORY_DESCR Character(60) VARCHAR2(60) NOT NULL Category Description
    28 DEPTID_DESCR Character(30) VARCHAR2(30) NOT NULL Department Description
    29 OPER_UNIT_DESCR Character(30) VARCHAR2(30) NOT NULL Operating Unit Description
    30 PRODUCT_DESCR Character(30) VARCHAR2(30) NOT NULL Product Description
    31 CF_DESCR3 Character(30) VARCHAR2(30) NOT NULL
    32 CF_DESCR4 Character(30) VARCHAR2(30) NOT NULL
    33 CF_DESCR5 Character(30) VARCHAR2(30) NOT NULL
    34 CF_DESCR6 Character(30) VARCHAR2(30) NOT NULL
    35 FROM_CUR Character(3) VARCHAR2(3) NOT NULL From Currency Code
    36 QUANTITY Signed Number(17,4) DECIMAL(15,4) NOT NULL Qty Interface
    37 COST Signed Number(28,3) DECIMAL(26,3) NOT NULL Total Cost