KK_INQ_BDLD_VW

(SQL View)
Index Back

VW of KK Budgets in Ledger

/* MPL Audits Cleanup jun 2001 */ Was modified the CF22B_AK_SBR name (before CF22_AK_SBR)

SELECT DISTINCT A.BUSINESS_UNIT , B.LEDGER_GROUP , A.ACCOUNT , A.DEPTID , %subrec(CF22B_AK_SBR, A) , %subrec(CFCC2_AK_SBR, A) , A.BUDGET_PERIOD , a.STATISTICS_CODE FROM PS_LEDGER_KK A , PS_LED_GRP_LED_TBL B , PS_SET_CNTRL_REC C , PS_SET_CNTRL_REC D WHERE A.LEDGER = B.LEDGER AND B.SETID = ( SELECT E.SETID FROM PS_SET_CNTRL_REC E WHERE E.SETCNTRLVALUE = A.BUSINESS_UNIT AND E.RECNAME = 'LED_GRP_TBL') 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 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 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit

Prompt Table: SP_BU_GL_NONVW

2 LEDGER_GROUP Character(10) VARCHAR2(10) NOT NULL Ledger Group

Prompt Table: SP_LGRPKK_NONVW

3 ACCOUNT Character(10) VARCHAR2(10) NOT NULL Account

Prompt Table: GL_ACCOUNT_TBL

4 DEPTID Character(10) VARCHAR2(10) NOT NULL Department

Prompt Table: DEPT_ALL_VW

5 OPERATING_UNIT Character(8) VARCHAR2(8) NOT NULL Operating Unit ChartField

Prompt Table: OPERUNIT_ALL_VW

6 PRODUCT Character(6) VARCHAR2(6) NOT NULL Product ChartField

Prompt Table: PROD_ALL_VW

7 FUND_CODE Character(5) VARCHAR2(5) NOT NULL Fund Code

Prompt Table: FUND_ALL_VW

8 CLASS_FLD Character(5) VARCHAR2(5) NOT NULL Class Field

Prompt Table: CLASS_CF_ALL_VW

9 PROGRAM_CODE Character(5) VARCHAR2(5) NOT NULL Program Code ChartField

Prompt Table: PROGRAM_ALL_VW

10 BUDGET_REF Character(8) VARCHAR2(8) NOT NULL Budget Reference

Prompt Table: BUDREF_ALL_VW

11 AFFILIATE Character(5) VARCHAR2(5) NOT NULL Affiliate

Prompt Table: AFFILIATE_VW

12 AFFILIATE_INTRA1 Character(10) VARCHAR2(10) NOT NULL IntraUnit Affiliate1

Prompt Table: %EDIT_INTRA01

13 AFFILIATE_INTRA2 Character(10) VARCHAR2(10) NOT NULL Operating Unit Affiliate

Prompt Table: %EDIT_INTRA02

14 CHARTFIELD1 Character(10) VARCHAR2(10) NOT NULL Expansion chartfield 1

Prompt Table: CF1_ALL_VW

15 CHARTFIELD2 Character(10) VARCHAR2(10) NOT NULL Expansion Chartfield 2

Prompt Table: CF2_ALL_VW

16 CHARTFIELD3 Character(10) VARCHAR2(10) NOT NULL Expansion Chartfield 3

Prompt Table: CF3_ALL_VW

17 BUSINESS_UNIT_PC Character(5) VARCHAR2(5) NOT NULL PC Business Unit

Prompt Table: BUS_UNIT_TBL_PC

18 PROJECT_ID Character(15) VARCHAR2(15) NOT NULL Project Id ChartField

Prompt Table: PROJECT_ID_VW2

19 ACTIVITY_ID Character(15) VARCHAR2(15) NOT NULL Activity ID

Prompt Table: PROJ_ACT_SET_VW

20 RESOURCE_TYPE Character(5) VARCHAR2(5) NOT NULL Source Type

Prompt Table: PROJ_RES_TYPE

21 BUDGET_PERIOD Character(8) VARCHAR2(8) NOT NULL Budget Period

Prompt Table: KK_BP_ALL_VW

22 STATISTICS_CODE Character(3) VARCHAR2(3) NOT NULL Statistics Code