KK_FS_TMP_DVW

(SQL View)
Index Back

SELECT DISTINCT R.BUSINESS_UNIT ,R.LEDGER_GROUP ,R.FUND_SOURCE ,B.CONTROL_CHARTFIELD ,V.CHARTFIELD_VALUE ,R.ACCOUNT ,R.DEPTID ,%subrec(CF9A_AK_SBR,R) ,%subrec(CFCC2_AK_SBR,R) ,R.REV_METHOD ,R.CAP ,R.PERCENTAGE FROM %Table(KK_BUDGET_TYPE) B , %Table(KK_FS_VALUE) V ,%Table(KK_REV_XREF) R ,PS_SET_CNTRL_REC S WHERE B.SETID1 = S.SETID AND S.SETCNTRLVALUE = V.BUSINESS_UNIT AND S.RECNAME = 'KK_BUDGET_TYPE' AND B.LEDGER_GROUP = V.LEDGER_GROUP AND B.EFFDT = ( SELECT MAX(B1.EFFDT) FROM %Table(KK_BUDGET_TYPE) B1 WHERE B.SETID1 = B1.SETID1 AND B.LEDGER_GROUP = B1.LEDGER_GROUP) AND R.BUSINESS_UNIT = V.BUSINESS_UNIT AND ((R.LEDGER_GROUP = V.LEDGER_GROUP AND R.REV_METHOD = '0') OR R.LEDGER_GROUP = B.KK_REV_TRACK_LG AND (R.REV_METHOD IN ('1','4')))

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
2 LEDGER_GROUP Character(10) VARCHAR2(10) NOT NULL Ledger Group
3 FUND_SOURCE Character(6) VARCHAR2(6) NOT NULL Funding Source
4 CONTROL_CHARTFIELD Character(18) VARCHAR2(18) NOT NULL Control ChartField
5 CHARTFIELD_VALUE Character(30) VARCHAR2(30) NOT NULL ChartField Value
6 ACCOUNT Character(10) VARCHAR2(10) NOT NULL Account
7 DEPTID Character(10) VARCHAR2(10) NOT NULL Department
8 OPERATING_UNIT Character(8) VARCHAR2(8) NOT NULL Operating Unit ChartField

Prompt Table: OPER_UNIT_TBL

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

Prompt Table: PRODUCT_TBL

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

Prompt Table: FUND_TBL

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

Prompt Table: CLASS_CF_TBL

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

Prompt Table: PROGRAM_TBL

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

Prompt Table: BUD_REF_TBL

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

Prompt Table: AFFILIATE_VW

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

Prompt Table: %EDIT_INTRA01

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

Prompt Table: %EDIT_INTRA02

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

Prompt Table: CHARTFIELD1_TBL

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

Prompt Table: CHARTFIELD2_TBL

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

Prompt Table: CHARTFIELD3_TBL

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

Prompt Table: SP_PCBUGL_NONVW

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

Prompt Table: SP_PROJFS_NONVW

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

Prompt Table: PROJ_ACT_FVW

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

Prompt Table: PROJ_RESTYPE_FS

24 REV_METHOD Character(1) VARCHAR2(1) NOT NULL Revenue Linking Method
0=Budgeted
1=Recognized
2=Greater of Budget or Recognize
3=Lesser of Budget or Recognized
4=Collected
5=Greater of Budget or Collected
6=Lesser of Budget or Collected
25 CAP Signed Number(28,3) DECIMAL(26,3) NOT NULL Spending Cap
26 PERCENTAGE Signed Number(7,2) DECIMAL(5,2) NOT NULL Percentage