EE_BUD_CLOSE_VW

(SQL View)
Index Back

Entry Event Budget Closed View


SELECT B.BUSINESS_UNIT , B.JOURNAL_ID , B.JOURNAL_DATE , B.UNPOST_SEQ , G.LEDGER , G.LEDGER_GROUP , B.JOURNAL_LINE , A.IN_PROCESS_FLG , B.ACCOUNT , B.DEPTID , %subrec(CF12_AN_SBR, G) , %subrec(CFCC1_AN_SBR, G) , B.JOURNAL_DATE , A.ACCOUNTING_PERIOD , ' ' , B.BUSINESS_UNIT , B.CURRENCY_CD , A.FISCAL_YEAR , B.FOREIGN_CURRENCY , 'N' , C.ASSOCIATED_LED_GRP , B.PROCESS_INSTANCE , G.LEDGER , G.LEDGER_GROUP , B.MONETARY_AMOUNT , B.FOREIGN_AMOUNT , B.LINE_DESCR , G.ENTRY_EVENT , B.EE_PROC_STATUS , 'C' , G.KK_TRAN_ID , G.KK_TRAN_DT , G.KK_TRAN_LN FROM PS_KK_BUDGET_HDR A , PS_KK_BUDGET_LN B , PS_BU_LED_GRP_TBL C , PS_KK_SOURCE_HDR E , PS_KK_SOURCE_LN F , PS_KK_ACTIVITY_LOG G WHERE A.BUSINESS_UNIT = B.BUSINESS_UNIT AND A.JOURNAL_ID = B.JOURNAL_ID AND A.JOURNAL_DATE = B.JOURNAL_DATE AND A.UNPOST_SEQ = B.UNPOST_SEQ AND A.BUSINESS_UNIT = C.BUSINESS_UNIT AND A.LEDGER_GROUP = C.LEDGER_GROUP AND A.BD_HDR_STATUS IN ('P', 'U') AND A.KK_BUDG_TRANS_TYPE = '4' AND E.BUSINESS_UNIT = A.BUSINESS_UNIT AND E.JOURNAL_ID = A.JOURNAL_ID AND E.JOURNAL_DATE = A.JOURNAL_DATE AND E.UNPOST_SEQ = A.UNPOST_SEQ AND E.KK_TRAN_ID = F.KK_TRAN_ID AND E.KK_TRAN_DT = F.KK_TRAN_DT AND F.JOURNAL_LINE = B.JOURNAL_LINE AND F.KK_TRAN_ID = G.KK_TRAN_ID AND F.KK_TRAN_DT = G.KK_TRAN_DT AND F.KK_TRAN_LN = G.KK_TRAN_LN AND G.SEQNBR = 0 AND G.REFERENCED_BUDGET = 'N' AND G.BALANCING_LINE = 'N' AND G.ENTRY_EVENT <> ' ' AND EXISTS ( SELECT 'X' FROM PS_BUL_CNTL_BUD D WHERE C.BUSINESS_UNIT = D.BUSINESS_UNIT AND C.ASSOCIATED_LED_GRP = D.LEDGER_GROUP AND D.KK_LEDGER_GROUP = A.LEDGER_GROUP AND D.EE_GL_BUD IN ('O', 'R'))

# 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 KK_JOURNAL_ID Character(10) VARCHAR2(10) NOT NULL Budget Journal ID
3 KK_JOURNAL_DATE Date(10) DATE NOT NULL Budget Journal Date
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 KK_LEDGER Character(10) VARCHAR2(10) NOT NULL Ledger
6 KK_LEDGER_GROUP Character(10) VARCHAR2(10) NOT NULL Control Budget Ledger Group
7 KK_JOURNAL_LINE Number(9,0) DECIMAL(9) NOT NULL Budget Journal line number
8 IN_PROCESS_FLG Character(1) VARCHAR2(1) NOT NULL In process flag
9 ACCOUNT Character(10) VARCHAR2(10) NOT NULL Account
10 DEPTID Character(10) VARCHAR2(10) NOT NULL Department

Prompt Table: DEPTID_BUGL_VW

11 OPERATING_UNIT Character(8) VARCHAR2(8) NOT NULL Operating Unit ChartField
12 PRODUCT Character(6) VARCHAR2(6) NOT NULL Product ChartField
13 FUND_CODE Character(5) VARCHAR2(5) NOT NULL Fund Code
14 CLASS_FLD Character(5) VARCHAR2(5) NOT NULL Class Field
15 PROGRAM_CODE Character(5) VARCHAR2(5) NOT NULL Program Code ChartField
16 BUDGET_REF Character(8) VARCHAR2(8) NOT NULL Budget Reference
17 AFFILIATE Character(5) VARCHAR2(5) NOT NULL Affiliate
18 AFFILIATE_INTRA1 Character(10) VARCHAR2(10) NOT NULL IntraUnit Affiliate1
19 AFFILIATE_INTRA2 Character(10) VARCHAR2(10) NOT NULL Operating Unit Affiliate
20 CHARTFIELD1 Character(10) VARCHAR2(10) NOT NULL Expansion chartfield 1
21 CHARTFIELD2 Character(10) VARCHAR2(10) NOT NULL Expansion Chartfield 2
22 CHARTFIELD3 Character(10) VARCHAR2(10) NOT NULL Expansion Chartfield 3
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
28 ACCOUNTING_DT Date(10) DATE The accounting entry construction date for a given transaction (a generic field that crosses multiple
29 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.
30 APPL_JRNL_ID Character(10) VARCHAR2(10) NOT NULL Journal Template
31 BUSINESS_UNIT_GL Character(5) VARCHAR2(5) NOT NULL GL Business Unit
32 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code
33 FISCAL_YEAR Number(4,0) SMALLINT NOT NULL Fiscal Year
34 FOREIGN_CURRENCY Character(3) VARCHAR2(3) NOT NULL Foreign Currency Code
35 GL_DISTRIB_STATUS Character(1) VARCHAR2(1) NOT NULL Distribution Status
C=Available to Contracts
D=Distributed
G=Generated
H=Hold
I=Ignored
J=Creating Journals
M=Modified
N=None
P=To be processed
X=Waiting for Reversal
36 LEDGER_GROUP Character(10) VARCHAR2(10) NOT NULL Ledger Group
37 PROCESS_INSTANCE Number(10,0) DECIMAL(10) NOT NULL Process Instance
38 ASSOCIATED_LEDGER Character(10) VARCHAR2(10) NOT NULL Associated Actuals Ledger
39 ASSOCIATED_LED_GRP Character(10) VARCHAR2(10) NOT NULL Associated Actual Ledger Group
40 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.
41 FOREIGN_AMOUNT Signed Number(28,3) DECIMAL(26,3) NOT NULL Specifies the monetary amount of a debit or credit (accounting entry line) in the entry currency of the item. The sum of FOREIGN_AMOUNT values on AR lines should equal the ENTRY_AMT on the pending item.
42 LINE_DESCR Character(30) VARCHAR2(30) NOT NULL Describes the nature of a journal line. It is defaulted from the description of the Account ChartField or manually entered.
43 ENTRY_EVENT Character(10) VARCHAR2(10) NOT NULL Entry Event
44 EE_PROC_STATUS Character(1) VARCHAR2(1) NOT NULL Entry Event Line Status
45 ADJUSTING_ENTRY Character(1) VARCHAR2(1) NOT NULL Adjusting Entry
C=Fiscal Year Close
N=Non-Adjusting Entry
Y=Adjusting Entry
46 KK_TRAN_ID Character(10) VARCHAR2(10) NOT NULL Commitment Control Foreign Key for Transaction Identification.
47 KK_TRAN_DT Date(10) DATE Commitment Control Transaction Original processing date. Primary key with KK_TRAN_ID.
48 KK_TRAN_LN Number(9,0) DECIMAL(9) NOT NULL Commitment Control Transaction Line number.