KK_OV_DBPA_CFVW

(SQL View)
Index Back

CC Ledger CF Only View

Only 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 , 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 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 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 KK_BUDG_ORIG_AMT Signed Number(28,3) DECIMAL(26,3) NOT NULL Original Budget Amount
26 KK_BUDG_ADJ_AMT Signed Number(28,3) DECIMAL(26,3) NOT NULL Budget Adjustment Amount
27 KK_BUDG_XADJ_AMT Signed Number(28,3) DECIMAL(26,3) NOT NULL Budget Transfer Adjustment Amt
28 KK_BUDG_XORIG_AMT Signed Number(28,3) DECIMAL(26,3) NOT NULL Budget Transfer Original Amt
29 KK_BUDG_CLOSE_AMT Signed Number(28,3) DECIMAL(26,3) NOT NULL Budget Closing Amount
30 KK_BAL_FORWARD Signed Number(28,3) DECIMAL(26,3) NOT NULL Balance Rolled Forward
31 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
32 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
33 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
34 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
35 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
36 AMT6 Signed Number(28,3) DECIMAL(26,3) NOT NULL Amount 6
37 AMT7 Signed Number(28,3) DECIMAL(26,3) NOT NULL Amount 7