CUR_BAL_VW

(SQL View)
Index Back

SELECT a.business_unit ,a.ledger ,a.account ,a.altacct , A.DEPTID ,%subrec(CF9B_AK_SBR,a) ,a.project_id ,a.currency_cd ,a.statistics_code ,a.fiscal_year ,a.accounting_period ,SUM(b.posted_total_amt) FROM PS_LEDGER a , PS_LEDGER b WHERE a.accounting_period >= b.accounting_period AND a.business_unit = b.business_unit AND a.ledger = b.ledger AND a.account = b.account AND a.altacct = b.altacct AND A.DEPTID = B.DEPTID AND %Join(COMMON_FIELDS, CF9B_AK_SBR A, CF9B_AK_SBR B) AND a.project_id = b.project_id AND a.currency_cd = b.currency_cd AND a.statistics_code = b.statistics_code AND a.fiscal_year = b.fiscal_year GROUP BY a.business_unit, a.ledger, a.account, a.altacct, A.DEPTID , %subrec(CF9B_AK_SBR,a), a.project_id, a.currency_cd, a.statistics_code, a.fiscal_year, a.accounting_period

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
2 LEDGER Character(10) VARCHAR2(10) NOT NULL Ledger
3 ACCOUNT Character(10) VARCHAR2(10) NOT NULL Account
4 ALTACCT Character(10) VARCHAR2(10) NOT NULL Alternate Account
5 DEPTID Character(10) VARCHAR2(10) NOT NULL Department

Prompt Table: DEPT_TBL

6 OPERATING_UNIT Character(8) VARCHAR2(8) NOT NULL Operating Unit ChartField

Prompt Table: OPER_UNIT_TBL

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

Prompt Table: PRODUCT_TBL

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

Prompt Table: FUND_TBL

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

Prompt Table: CLASS_CF_TBL

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

Prompt Table: PROGRAM_TBL

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

Prompt Table: BUD_REF_TBL

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

Prompt Table: AFFILIATE_VW

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

Prompt Table: %EDIT_INTRA01

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

Prompt Table: %EDIT_INTRA02

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

Prompt Table: CHARTFIELD1_TBL

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

Prompt Table: CHARTFIELD2_TBL

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

Prompt Table: CHARTFIELD3_TBL

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

Prompt Table: PROJECT_ID_VW

19 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code
20 STATISTICS_CODE Character(3) VARCHAR2(3) NOT NULL Statistics Code
21 FISCAL_YEAR Number(4,0) SMALLINT NOT NULL Fiscal Year
22 ACCOUNTING_PERIOD Number(3,0) SMALLINT NOT NULL Identifies a time period to which you post transactions. Typically, an accounting period represents a month, but it can also represent a week, a day, or any user-defined interval. An accounting period has a beginning date and an ending date, and is defined in the calendar table.
23 CURR_BAL Signed Number(28,3) DECIMAL(26,3) NOT NULL Current Balance