KK_OVW_DAP0_VW

(SQL View)
Index Back

CC Budget Overview Budgets

CC Budget Overview Budgets by detail accounting period, adjustments not included. KK_OVW_DAP0_VW, KK_OVW_DAP1_VW, KK_OVW_DAP2_VW, KK_OVW_DAP3_VW, KK_OVW_DAP4_VW, KK_OVW_DAP5_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 , A.FISCAL_YEAR , A.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_DEFN_TBL L , PS_SET_CNTRL_REC M 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 = 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 = '0' 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 = 'D' AND G.BUSINESS_UNIT = A.BUSINESS_UNIT AND M.SETCNTRLVALUE = A.BUSINESS_UNIT AND M.RECNAME = 'CAL_DEFN_TBL' AND L.SETID = M.SETID AND L.CALENDAR_ID = F.CALENDAR_ID AND ( (F.INCLUDE_CLOSE_PER = 'Y' AND (A.ACCOUNTING_PERIOD = 999 OR A.ACCOUNTING_PERIOD = 0 OR A.KK_BUDG_TRANS_TYPE = '4' ) ) OR (A.KK_BUDG_TRANS_TYPE <> '4' AND (F.INCLUDE_ADJ_PER = 'N' 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 A.ACCOUNTING_PERIOD BETWEEN 0 AND F.PERIOD_TO) OR (A.FISCAL_YEAR < F.FISCAL_YEAR_TO AND A.ACCOUNTING_PERIOD BETWEEN 0 AND L.NUMBER_OF_PERIODS) ) ) OR ( F.FISCAL_YEAR_FROM = 0 AND F.PERIOD_FROM = 0 AND F.FISCAL_YEAR_TO = 0 AND F.PERIOD_TO = 0 AND A.ACCOUNTING_PERIOD BETWEEN 0 AND L.NUMBER_OF_PERIODS ) 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 A.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 A.ACCOUNTING_PERIOD BETWEEN F.PERIOD_FROM AND L.NUMBER_OF_PERIODS) OR (A.FISCAL_YEAR = F.FISCAL_YEAR_TO AND A.ACCOUNTING_PERIOD BETWEEN 0 AND F.PERIOD_TO) OR ( A.FISCAL_YEAR > F.FISCAL_YEAR_FROM AND A.FISCAL_YEAR < F.FISCAL_YEAR_TO AND A.ACCOUNTING_PERIOD BETWEEN 0 AND L.NUMBER_OF_PERIODS ) ) ) ) ) OR ( F.INCLUDE_ADJ_PER = 'Y' 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 A.ACCOUNTING_PERIOD BETWEEN 0 AND F.PERIOD_TO) OR (A.FISCAL_YEAR = F.FISCAL_YEAR_TO AND A.ACCOUNTING_PERIOD BETWEEN (L.NUMBER_OF_PERIODS + 1) AND 998) OR (A.FISCAL_YEAR < F.FISCAL_YEAR_TO AND A.ACCOUNTING_PERIOD BETWEEN 0 AND 998) ) ) OR ( F.FISCAL_YEAR_FROM = 0 AND F.PERIOD_FROM = 0 AND F.FISCAL_YEAR_TO = 0 AND F.PERIOD_TO = 0 AND A.ACCOUNTING_PERIOD BETWEEN 0 AND 998 ) 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 A.ACCOUNTING_PERIOD BETWEEN F.PERIOD_FROM AND F.PERIOD_TO ) OR (A.FISCAL_YEAR = F.FISCAL_YEAR_FROM AND A.ACCOUNTING_PERIOD BETWEEN (L.NUMBER_OF_PERIODS + 1) AND 998 ) 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 A.ACCOUNTING_PERIOD BETWEEN F.PERIOD_FROM AND 998) OR (A.FISCAL_YEAR = F.FISCAL_YEAR_TO AND A.ACCOUNTING_PERIOD BETWEEN (L.NUMBER_OF_PERIODS + 1) AND 998 ) OR (A.FISCAL_YEAR = F.FISCAL_YEAR_TO AND A.ACCOUNTING_PERIOD BETWEEN 0 AND F.PERIOD_TO) OR (A.FISCAL_YEAR > F.FISCAL_YEAR_FROM AND A.FISCAL_YEAR < F.FISCAL_YEAR_TO AND A.ACCOUNTING_PERIOD BETWEEN 0 AND 998) ) ) ) ) ) ) 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, A.FISCAL_YEAR, A.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.

Prompt Table: CAL_DETP_TBL

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.