KK_OVW_SAP4_VW(SQL View) |
Index Back |
---|---|
CC Budget Overview BudgetsCC Budget Overview Budgets by summary accounting period. KK_OVW_SAP0_VW, KK_OVW_SAP1_VW, KK_OVW_SAP2_VW, KK_OVW_SAP3_VW, KK_OVW_SAP4_VW, KK_OVW_SAP5_VW are all identical views except the 'where clause' LEDGER_TYPE_KK value. |
SELECT F.OPRID , F.INQUIRY , A.BUSINESS_UNIT , B.LEDGER_GROUP , A.ACCOUNT , A.DEPTID , %subrec(CF9A_AK_SBR, A) , %subrec(CFCC1_AK_SBR, A) , A.STATISTICS_CODE , J.FISCAL_YEAR , J.ACCOUNTING_PERIOD , A.LEDGER , A.KK_BUDG_TRANS_TYPE , B.AFFECT_SPEND_OPTN , SUM(A.POSTED_TOTAL_AMT ) FROM PS_LEDGER_KK A , PS_LED_GRP_LED_TBL B , PS_SET_CNTRL_REC C , PS_SET_CNTRL_REC D , PS_SET_CNTRL_REC E , PS_KK_INQ_LDTS_TMP F , PS_KK_INQ_LD_CRIT G , PS_CAL_SUMP_TBL J , PS_SET_CNTRL_REC K WHERE A.LEDGER = B.LEDGER AND B.SETID = E.SETID AND E.SETCNTRLVALUE = A.BUSINESS_UNIT AND E.RECNAME = 'LED_GRP_TBL' AND A.CURRENCY_CD > ' ' AND A.CURRENCY_CD = A.BASE_CURRENCY AND C.SETCNTRLVALUE = A.BUSINESS_UNIT AND C.RECNAME = 'KK_BD_TYPE_VW' AND D.SETCNTRLVALUE = A.BUSINESS_UNIT AND D.RECNAME = 'GL_ACCT_ALL_VW' AND B.LEDGER_TYPE_KK = '4' AND F.LEDGER_GROUP = B.LEDGER_GROUP AND F.SELECT_ROW_FLAG = 'Y' AND G.OPRID = F.OPRID AND G.INQUIRY = F.INQUIRY AND G.KK_INQ_CAL_TYPE = 'S' AND G.BUSINESS_UNIT = A.BUSINESS_UNIT AND J.CALENDAR_ID = F.CALENDAR_ID AND K.SETCNTRLVALUE = A.BUSINESS_UNIT AND K.RECNAME = 'CAL_SUMP_TBL' AND J.SETID = K.SETID AND J.FISCAL_YEAR = A.FISCAL_YEAR AND A.ACCOUNTING_PERIOD BETWEEN J.DETL_PERIOD_FROM AND J.DETL_PERIOD_TO AND (F.INCLUDE_CLOSE_PER = 'Y' OR (F.INCLUDE_CLOSE_PER = 'N' AND A.KK_BUDG_TRANS_TYPE <> '4' )) AND ( (F.FISCAL_YEAR_FROM = 0 AND F.PERIOD_FROM = 0 AND F.FISCAL_YEAR_TO <> 0 AND F.PERIOD_TO <> 0 AND ( (A.FISCAL_YEAR = F.FISCAL_YEAR_TO AND J.ACCOUNTING_PERIOD <= F.PERIOD_TO) OR (A.FISCAL_YEAR < F.FISCAL_YEAR_TO) ) ) OR (F.FISCAL_YEAR_FROM = 0 AND F.PERIOD_FROM = 0 AND F.FISCAL_YEAR_TO = 0 AND F.PERIOD_TO = 0 ) OR (F.FISCAL_YEAR_FROM <> 0 AND F.PERIOD_FROM <> 0 AND F.FISCAL_YEAR_TO <> 0 AND F.PERIOD_TO <> 0 AND F.FISCAL_YEAR_FROM = F.FISCAL_YEAR_TO AND A.FISCAL_YEAR = F.FISCAL_YEAR_FROM AND J.ACCOUNTING_PERIOD BETWEEN F.PERIOD_FROM AND F.PERIOD_TO ) OR (F.FISCAL_YEAR_FROM <> 0 AND F.PERIOD_FROM <> 0 AND F.FISCAL_YEAR_TO <> 0 AND F.PERIOD_TO <> 0 AND F.FISCAL_YEAR_FROM <> F.FISCAL_YEAR_TO AND ( (A.FISCAL_YEAR = F.FISCAL_YEAR_FROM AND J.ACCOUNTING_PERIOD >= F.PERIOD_FROM) OR (A.FISCAL_YEAR = F.FISCAL_YEAR_TO AND J.ACCOUNTING_PERIOD <= F.PERIOD_TO) OR (A.FISCAL_YEAR > F.FISCAL_YEAR_FROM AND A.FISCAL_YEAR < F.FISCAL_YEAR_TO) ) ) ) AND A.ACCOUNT NOT IN ( SELECT H.ACCOUNT FROM PS_KK_BD_OFFSET H WHERE H.SETID1 = C.SETID AND H.LEDGER_GROUP = B.LEDGER_GROUP AND H.SETID = D.SETID) AND A.ACCOUNT NOT IN ( SELECT I.ACCOUNT FROM PS_KK_TRX_OFFSET I WHERE I.SETID1 = C.SETID AND I.LEDGER_GROUP = B.LEDGER_GROUP AND I.SETID = D.SETID) GROUP BY F.OPRID, F.INQUIRY, A.BUSINESS_UNIT, B.LEDGER_GROUP, A.ACCOUNT, A.DEPTID , %subrec(CF9A_AK_SBR, A), %subrec(CFCC1_AK_SBR, A), A.STATISTICS_CODE, J.FISCAL_YEAR, J.ACCOUNTING_PERIOD, A.LEDGER, A.KK_BUDG_TRANS_TYPE, B.AFFECT_SPEND_OPTN UNION SELECT F.OPRID , F.INQUIRY , A.BUSINESS_UNIT , B.LEDGER_GROUP , A.ACCOUNT , A.DEPTID , %subrec(CF9A_AK_SBR, A) , %subrec(CFCC1_AK_SBR, A) , A.STATISTICS_CODE , J.FISCAL_YEAR , J.ACCOUNTING_PERIOD , A.LEDGER , A.KK_BUDG_TRANS_TYPE , B.AFFECT_SPEND_OPTN , SUM(A.POSTED_TOTAL_AMT ) FROM PS_LEDGER_KK A , PS_LED_GRP_LED_TBL B , PS_SET_CNTRL_REC C , PS_SET_CNTRL_REC D , PS_SET_CNTRL_REC E , PS_KK_INQ_LDTS_TMP F , PS_KK_INQ_LD_CRIT G ,PS_FIN_OPEN_ADJ J , PS_SET_CNTRL_REC K WHERE A.LEDGER = B.LEDGER AND B.SETID = E.SETID AND E.SETCNTRLVALUE = A.BUSINESS_UNIT AND E.RECNAME = 'LED_GRP_TBL' AND A.CURRENCY_CD > ' ' AND A.CURRENCY_CD = A.BASE_CURRENCY AND C.SETCNTRLVALUE = A.BUSINESS_UNIT AND C.RECNAME = 'KK_BD_TYPE_VW' AND D.SETCNTRLVALUE = A.BUSINESS_UNIT AND D.RECNAME = 'GL_ACCT_ALL_VW' AND B.LEDGER_TYPE_KK = '4' AND F.LEDGER_GROUP = B.LEDGER_GROUP AND F.SELECT_ROW_FLAG = 'Y' AND G.OPRID = F.OPRID AND G.INQUIRY = F.INQUIRY AND G.KK_INQ_CAL_TYPE = 'S' AND G.BUSINESS_UNIT = A.BUSINESS_UNIT AND K.SETCNTRLVALUE = A.BUSINESS_UNIT AND K.RECNAME = 'CAL_SUMP_TBL' AND J.FISCAL_YEAR = A.FISCAL_YEAR AND A.ACCOUNTING_PERIOD = J.ACCOUNTING_PERIOD AND F.INCLUDE_ADJ_PER = 'Y' AND A.ACCOUNT NOT IN ( SELECT H.ACCOUNT FROM PS_KK_BD_OFFSET H WHERE H.SETID1 = C.SETID AND H.LEDGER_GROUP = B.LEDGER_GROUP AND H.SETID = D.SETID) AND A.ACCOUNT NOT IN ( SELECT I.ACCOUNT FROM PS_KK_TRX_OFFSET I WHERE I.SETID1 = C.SETID AND I.LEDGER_GROUP = B.LEDGER_GROUP AND I.SETID = D.SETID) GROUP BY F.OPRID, F.INQUIRY, A.BUSINESS_UNIT, B.LEDGER_GROUP, A.ACCOUNT, A.DEPTID , A.OPERATING_UNIT, A.PRODUCT, A.FUND_CODE, A.CLASS_FLD, a.PROGRAM_CODE, A.BUDGET_REF, A.AFFILIATE, A.AFFILIATE_INTRA1, A.AFFILIATE_INTRA2, A.CHARTFIELD1, A.CHARTFIELD2, A.CHARTFIELD3, A.BUSINESS_UNIT_PC, A.PROJECT_ID, A.ACTIVITY_ID, A.RESOURCE_TYPE, A.BUDGET_PERIOD, A.STATISTICS_CODE, J.FISCAL_YEAR, J.ACCOUNTING_PERIOD, A.LEDGER, A.KK_BUDG_TRANS_TYPE, B.AFFECT_SPEND_OPTN |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | OPRID | Character(30) | VARCHAR2(30) NOT NULL | A user's ID (see PSOPRDEFN). |
2 | INQUIRY | Character(10) | VARCHAR2(10) NOT NULL | Inquiry Name |
3 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Business Unit |
4 | LEDGER_GROUP | Character(10) | VARCHAR2(10) NOT NULL | Ledger Group |
5 | ACCOUNT | Character(10) | VARCHAR2(10) NOT NULL | Account |
6 | DEPTID | Character(10) | VARCHAR2(10) NOT NULL |
Department
Prompt Table: DEPT_TBL |
7 | OPERATING_UNIT | Character(8) | VARCHAR2(8) NOT NULL |
Operating Unit ChartField
Prompt Table: OPER_UNIT_TBL |
8 | PRODUCT | Character(6) | VARCHAR2(6) NOT NULL |
Product ChartField
Prompt Table: PRODUCT_TBL |
9 | FUND_CODE | Character(5) | VARCHAR2(5) NOT NULL |
Fund Code
Prompt Table: FUND_TBL |
10 | CLASS_FLD | Character(5) | VARCHAR2(5) NOT NULL |
Class Field
Prompt Table: CLASS_CF_TBL |
11 | PROGRAM_CODE | Character(5) | VARCHAR2(5) NOT NULL |
Program Code ChartField
Prompt Table: PROGRAM_TBL |
12 | BUDGET_REF | Character(8) | VARCHAR2(8) NOT NULL |
Budget Reference
Prompt Table: BUD_REF_TBL |
13 | AFFILIATE | Character(5) | VARCHAR2(5) NOT NULL |
Affiliate
Prompt Table: AFFILIATE_VW |
14 | AFFILIATE_INTRA1 | Character(10) | VARCHAR2(10) NOT NULL |
IntraUnit Affiliate1
Prompt Table: %EDIT_INTRA01 |
15 | AFFILIATE_INTRA2 | Character(10) | VARCHAR2(10) NOT NULL |
Operating Unit Affiliate
Prompt Table: %EDIT_INTRA02 |
16 | CHARTFIELD1 | Character(10) | VARCHAR2(10) NOT NULL |
Expansion chartfield 1
Prompt Table: CHARTFIELD1_TBL |
17 | CHARTFIELD2 | Character(10) | VARCHAR2(10) NOT NULL |
Expansion Chartfield 2
Prompt Table: CHARTFIELD2_TBL |
18 | CHARTFIELD3 | Character(10) | VARCHAR2(10) NOT NULL |
Expansion Chartfield 3
Prompt Table: CHARTFIELD3_TBL |
19 | BUSINESS_UNIT_PC | Character(5) | VARCHAR2(5) NOT NULL |
PC Business Unit
Prompt Table: PC_BU_GL_VW |
20 | PROJECT_ID | Character(15) | VARCHAR2(15) NOT NULL |
Project Id ChartField
Prompt Table: KK_PROJ_ID_VW |
21 | ACTIVITY_ID | Character(15) | VARCHAR2(15) NOT NULL |
Activity ID
Prompt Table: PROJ_ACT_FVW2 |
22 | RESOURCE_TYPE | Character(5) | VARCHAR2(5) NOT NULL |
Source Type
Prompt Table: PROJ_RESTYPE_FS |
23 | BUDGET_PERIOD | Character(8) | VARCHAR2(8) NOT NULL |
Budget Period
Prompt Table: KK_BP_ALL_VW |
24 | STATISTICS_CODE | Character(3) | VARCHAR2(3) NOT NULL | Statistics Code |
25 | FISCAL_YEAR | Number(4,0) | SMALLINT NOT NULL | Fiscal Year |
26 | 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. |
27 | LEDGER | Character(10) | VARCHAR2(10) NOT NULL | Ledger |
28 | 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 |
29 | AFFECT_SPEND_OPTN | Character(1) | VARCHAR2(1) NOT NULL | Affect Spending Authority |
30 | POSTED_TOTAL_AMT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Specifies the net balance of debit and credit amounts that have been posted to a particular ChartField combination. |