KK_OV_SAPACF_VW(SQL View) |
Index Back |
---|---|
CC Ledger Amts ViewOnly used for CF descr |
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 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 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 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) |
# | 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 | KK_BUDG_ORIG_AMT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Original Budget Amount |
28 | KK_BUDG_ADJ_AMT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Budget Adjustment Amount |
29 | KK_BUDG_XADJ_AMT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Budget Transfer Adjustment Amt |
30 | KK_BUDG_XORIG_AMT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Budget Transfer Original Amt |
31 | KK_BUDG_CLOSE_AMT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Budget Closing Amount |
32 | KK_BAL_FORWARD | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Balance Rolled Forward |
33 | AMT1 | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Used in Virtual Approver to store the various rule amounts that go on each approval step |
34 | AMT2 | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Used in Virtual Approver to store the various rule amounts that go on each approval step |
35 | AMT3 | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Used in Virtual Approver to store the various rule amounts that go on each approval step |
36 | AMT4 | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Used in Virtual Approver to store the various rule amounts that go on each approval step |
37 | AMT5 | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Used in Virtual Approver to store the various rule amounts that go on each approval step |
38 | AMT6 | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Amount 6 |
39 | AMT7 | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Amount 7 |