KK_JLN_FS_VW4

(SQL View)
Index Back

SELECT A.BUSINESS_UNIT , A.JOURNAL_ID , A.JOURNAL_DATE , A.UNPOST_SEQ , A.LEDGER_GROUP , C.FUND_SOURCE , SUM(C.MONETARY_AMOUNT) , C.CURRENCY_CD , C.ACCOUNT , C.DEPTID , %subrec(CF14_AN_SBR, C) , %subrec(CFCC1_AN_SBR, C) FROM PS_KK_BUDGET_HDR A , PS_KK_BUDGET_HDR B , PS_KK_BUDGET_LN C WHERE A.BUSINESS_UNIT = B.BUSINESS_UNIT AND A.LEDGER_GROUP = B.LEDGER_GROUP AND ((B.BD_HDR_STATUS IN ('P','U')) OR (A.JOURNAL_ID = B.JOURNAL_ID AND A.JOURNAL_DATE = B.JOURNAL_DATE AND A.UNPOST_SEQ=B.UNPOST_SEQ)) AND B.BUSINESS_UNIT = C.BUSINESS_UNIT AND B.JOURNAL_ID = C.JOURNAL_ID AND B.JOURNAL_DATE = C.JOURNAL_DATE AND B.UNPOST_SEQ = C.UNPOST_SEQ AND C.FUND_SOURCE <> ' ' GROUP BY A.BUSINESS_UNIT, A.JOURNAL_ID, A.JOURNAL_DATE, A.UNPOST_SEQ , A.LEDGER_GROUP, C.FUND_SOURCE, C.CURRENCY_CD,C.ACCOUNT,C.DEPTID, %subrec(CF14_AN_SBR, C), %subrec(CFCC1_AN_SBR, C)

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
2 JOURNAL_ID Character(10) VARCHAR2(10) NOT NULL Identifies a journal entry, consisting of a header and one or more lines. The Journal ID itself does not have to be unique, but together with the journal business unit and journal date, it forms a unique journal identifier.
3 JOURNAL_DATE Date(10) DATE Specifies the date the journal was created.
4 UNPOST_SEQ Number(2,0) SMALLINT NOT NULL Identifies the sequence of journal entries when a journal is "unposted". When a journal is posted the UnPost Sequence is automatically set to "0". When a journal is unposted, a new reversing entry is automatically created with an UnPost Sequence of "1".
5 LEDGER_GROUP Character(10) VARCHAR2(10) NOT NULL Ledger Group
6 FUND_SOURCE Character(6) VARCHAR2(6) NOT NULL Funding Source
7 MONETARY_AMOUNT Signed Number(28,3) DECIMAL(26,3) NOT NULL Specifies the monetary amount of a debit or credit in the business unit base currency. Debit entries are positive and credit entries are negative. This amount is only zero if associated with a statistical account.
8 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code
9 ACCOUNT Character(10) VARCHAR2(10) NOT NULL Account
10 DEPTID Character(10) VARCHAR2(10) NOT NULL Department
11 OPERATING_UNIT Character(8) VARCHAR2(8) NOT NULL Operating Unit ChartField

Prompt Table: OPER_UNIT_TBL

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

Prompt Table: PRODUCT_TBL

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

Prompt Table: FUND_TBL

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

Prompt Table: CLASS_CF_TBL

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

Prompt Table: PROGRAM_TBL

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

Prompt Table: BUD_REF_TBL

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

Prompt Table: AFFILIATE_VW

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

Prompt Table: %EDIT_INTRA01

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

Prompt Table: %EDIT_INTRA02

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

Prompt Table: CHARTFIELD1_TBL

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

Prompt Table: CHARTFIELD2_TBL

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

Prompt Table: CHARTFIELD3_TBL

23 BUSINESS_UNIT_PC Character(5) VARCHAR2(5) NOT NULL PC Business Unit
24 PROJECT_ID Character(15) VARCHAR2(15) NOT NULL Project Id ChartField
25 ACTIVITY_ID Character(15) VARCHAR2(15) NOT NULL Activity ID
26 RESOURCE_TYPE Character(5) VARCHAR2(5) NOT NULL Source Type
27 BUDGET_PERIOD Character(8) VARCHAR2(8) NOT NULL Budget Period