KK_OVW_DBP1_VW(SQL View) |
Index Back |
---|---|
CC Budget Overview ExpensesCC Budget Overview Expenses by detail budget period. KK_OVW_DBP0_VW, KK_OVW_DBP1_VW, KK_OVW_DBP2_VW, KK_OVW_DBP3_VW, KK_OVW_DBP4_VW, KK_OVW_DBP5_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.LEDGER , A.KK_BUDG_TRANS_TYPE , B.AFFECT_SPEND_OPTN , 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 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 = '1' 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 = 'P' AND G.BUSINESS_UNIT = A.BUSINESS_UNIT AND (( (F.BP_FROM = ' ' AND F.BP_TO = ' ') OR ( F.BP_FROM <> ' ' AND F.BP_TO <> ' ' AND F.BP_FROM <> F.BP_TO AND A.BUDGET_PERIOD BETWEEN F.BP_FROM AND F.BP_TO ) OR ( F.BP_FROM = ' ' AND F.BP_TO <> ' ' AND A.BUDGET_PERIOD <= F.BP_TO ) OR ( F.BP_FROM <> ' ' AND F.BP_TO = ' ' AND A.BUDGET_PERIOD >= F.BP_FROM ) OR ( F.BP_FROM = F.BP_TO AND F.BP_FROM <> ' ' AND A.BUDGET_PERIOD = F.BP_FROM ) ) AND ( F.INCLUDE_CLOSE_PER = 'Y' OR (F.INCLUDE_CLOSE_PER = 'N' AND A.ACCOUNTING_PERIOD <> 999 AND A.KK_BUDG_TRANS_TYPE <> '4' ) ) AND ( F.INCLUDE_ADJ_PER = 'Y' OR (F.INCLUDE_ADJ_PER = 'N' AND A.ACCOUNTING_PERIOD NOT IN ( SELECT M.ACCOUNTING_PERIOD FROM PS_BUL_CNTL_BUD L , PS_FIN_OPEN_ADJ M WHERE M.PSFT_PRODUCT = 'GL' AND L.BUSINESS_UNIT =M.BUSINESS_UNIT AND L.LEDGER_GROUP = M.LEDGER_GROUP AND L.KK_LEDGER_GROUP = B.LEDGER_GROUP AND L.BUSINESS_UNIT = A.BUSINESS_UNIT ) ) ) ) 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) |
# | 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 | LEDGER | Character(10) | VARCHAR2(10) NOT NULL | Ledger |
26 | 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 |
27 | AFFECT_SPEND_OPTN | Character(1) | VARCHAR2(1) NOT NULL | Affect Spending Authority |
28 | 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. |