KK_DRL_ALOG_PVW(SQL View) |
Index Back |
---|---|
Open Pre-Enc Act Log linesThis view is used to filter pre-enc activity log rows to only those that have an open balance. For example requisitions that have not been fully liquidated or GL journals that have impacted the pre-enc ledger directly. The view is referenced by the Budgets Overview CC inquiry. The first EXISTS is used to obtain POs that ref open reqs The second EXISTS is used to obtain Open Reqs The third EXISTS is used to obtain standalone Pre-Encumbrances - e.g. GL Jrnls. |
SELECT A.BUSINESS_UNIT , A.LEDGER_GROUP , A.LEDGER , A.ACCOUNT , A.DEPTID , %subrec(CF9A_AK_SBR, A) , %subrec(CFCC2_AK_SBR, A) , A.BUDGET_PERIOD , A.FISCAL_YEAR , A.ACCOUNTING_PERIOD , A.FOREIGN_CURRENCY , A.KK_TRAN_ID , A.KK_TRAN_DT , A.KK_TRAN_LN , A.REFERENCED_BUDGET , A.FOREIGN_AMOUNT , A.BASE_CURRENCY , A.MONETARY_AMOUNT , A.STATISTICS_CODE , A.STATISTIC_AMOUNT , B.KK_SOURCE_TRAN , A.KK_BUDG_TRANS_TYPE FROM PS_KK_ACTIVITY_LOG A , PS_KK_SOURCE_HDR B WHERE A.BALANCING_LINE = 'N' AND A.KK_TRAN_ID = B.KK_TRAN_ID AND A.KK_TRAN_DT = B.KK_TRAN_DT AND ( EXISTS ( SELECT 'X' FROM PS_KK_REFERENCED R , PS_KK_LIQUIDATION L WHERE A.KK_TRAN_ID = R.KK_TRAN_ID AND A.KK_TRAN_DT = R.KK_TRAN_DT AND A.KK_TRAN_LN = R.KK_TRAN_LN AND L.KK_TRAN_ID = R.KK_REFD_ID AND L.KK_TRAN_DT = R.KK_REFD_DT AND L.KK_TRAN_LN = R.KK_REFD_LN AND A.LEDGER_GROUP = L.LEDGER_GROUP AND L.MONETARY_AMOUNT <> 0 AND A.REFERENCED_BUDGET='Y') OR EXISTS ( SELECT 'X' FROM PS_KK_LIQUIDATION B WHERE A.KK_TRAN_ID = B.KK_TRAN_ID AND A.KK_TRAN_DT = B.KK_TRAN_DT AND A.KK_TRAN_LN = B.KK_TRAN_LN AND A.LEDGER_GROUP = B.LEDGER_GROUP AND B.MONETARY_AMOUNT <> 0 AND A.REFERENCED_BUDGET='N') OR EXISTS ( SELECT 'X' FROM PS_KK_SOURCE_HDR H WHERE H.KK_TRAN_ID = A.KK_TRAN_ID AND H.KK_TRAN_DT = A.KK_TRAN_DT AND A.REFERENCED_BUDGET='N' AND NOT EXISTS ( SELECT 'X' FROM PS_KK_SOURCE_TRAN ST WHERE H.KK_SOURCE_TRAN = ST.KK_SOURCE_TRAN_REF))) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Business Unit |
2 | LEDGER_GROUP | Character(10) | VARCHAR2(10) NOT NULL | Ledger Group |
3 | LEDGER | Character(10) | VARCHAR2(10) NOT NULL | Ledger |
4 | ACCOUNT | Character(10) | VARCHAR2(10) NOT NULL | 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 | BUSINESS_UNIT_PC | Character(5) | VARCHAR2(5) NOT NULL |
PC Business Unit
Prompt Table: SP_PCBUGL_NONVW |
19 | PROJECT_ID | Character(15) | VARCHAR2(15) NOT NULL |
Project Id ChartField
Prompt Table: SP_PROJFS_NONVW |
20 | ACTIVITY_ID | Character(15) | VARCHAR2(15) NOT NULL |
Activity ID
Prompt Table: PROJ_ACT_FVW |
21 | RESOURCE_TYPE | Character(5) | VARCHAR2(5) NOT NULL |
Source Type
Prompt Table: PROJ_RESTYPE_FS |
22 | BUDGET_PERIOD | Character(8) | VARCHAR2(8) NOT NULL | Budget Period |
23 | FISCAL_YEAR | Number(4,0) | SMALLINT NOT NULL | Fiscal Year |
24 | 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. |
25 | FOREIGN_CURRENCY | Character(3) | VARCHAR2(3) NOT NULL | Foreign Currency Code |
26 | KK_TRAN_ID | Character(10) | VARCHAR2(10) NOT NULL | Commitment Control Foreign Key for Transaction Identification. |
27 | KK_TRAN_DT | Date(10) | DATE | Commitment Control Transaction Original processing date. Primary key with KK_TRAN_ID. |
28 | KK_TRAN_LN | Number(9,0) | DECIMAL(9) NOT NULL | Commitment Control Transaction Line number. |
29 | REFERENCED_BUDGET | Character(1) | VARCHAR2(1) NOT NULL | Referenced Budget |
30 | 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. |
31 | BASE_CURRENCY | Character(3) | VARCHAR2(3) NOT NULL | "Specifies the primary currency for a general ledger business unit, and is sometimes referred to as the ""book"" currency. Each business unit has one base currency. which is usually, but not always, the local currency for the organization. Journal entries are posted to a business unit in its base currency. " |
32 | 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. |
33 | STATISTICS_CODE | Character(3) | VARCHAR2(3) NOT NULL | Statistics Code |
34 | STATISTIC_AMOUNT | Signed Number(17,2) | DECIMAL(15,2) NOT NULL | Specifies the amount associated with a statistical account on a journal line or a distribution line. It represents a quantity rather than a monetary amount and is qualified by the Unit of Measure associated with the STATISTICS_CODE or statistics ACCOUNT. |
35 | KK_SOURCE_TRAN | Character(10) | VARCHAR2(10) NOT NULL | Source Transaction Type |
36 | KK_BUDG_TRANS_TYPE | Character(1) | VARCHAR2(1) NOT NULL |
Budget Entry Type
0=Original 1=Adjustment 2=Transfer Adjustment 3=Transfer Original 4=Closing 5=Roll Forward |