PC_WC_BUD_EX_VW

(SQL View)
Index Back

Posted Budget not in Proj Led

Posted Budget not in Project Ledger

SELECT BD.BUSINESS_UNIT ,BD.PROJECT_ID ,PRJ.DESCR ,PRJ.START_DT ,PRJ.END_DT ,BD.PC_BUDGET_ID ,BD.BUDGET_PERIOD ,CAL.BEGIN_DT ,CAL.END_DT ,BD.PC_BUDGET_ITEM ,BD.RESOURCE_AMOUNT ,MYP.OPRID FROM PS_PROJECT PRJ ,PS_PC_BUD_DETAIL BD ,PS_CAL_BP_TBL CAL ,PS_PROJ_AN_GRP_MAP AGM ,PS_SET_CNTRL_REC SCR ,PS_PC_OPRID_PRJACT MYP WHERE PRJ.BUSINESS_UNIT = BD.BUSINESS_UNIT AND PRJ.PROJECT_ID = BD.PROJECT_ID AND BD.BUDGET_PERIOD = CAL.BUDGET_PERIOD AND SCR.SETCNTRLVALUE = BD.BUSINESS_UNIT AND SCR.RECNAME = 'PROJ_AN_GRP_MAP' AND SCR.SETID = AGM.SETID AND AGM.ANALYSIS_GROUP = PRJ.AN_GRP_ACTV_BUD AND BD.ANALYSIS_TYPE = AGM.ANALYSIS_TYPE AND PRJ.BUSINESS_UNIT = MYP.BUSINESS_UNIT AND PRJ.PROJECT_ID = MYP.PROJECT_ID AND BD.KK_DISTRIB_STATUS = 'D' AND NOT EXISTS ( SELECT 'X' FROM PS_PROJ_RESOURCE PR WHERE PR.BUSINESS_UNIT = BD.BUSINESS_UNIT AND PR.PROJECT_ID = BD.PROJECT_ID AND PR.ACTIVITY_ID = BD.ACTIVITY_ID AND PR.RESOURCE_ID = BD.RESOURCE_ID ) UNION SELECT BD.BUSINESS_UNIT ,BD.PROJECT_ID ,PRJ.DESCR ,PRJ.START_DT ,PRJ.END_DT ,BD.PC_BUDGET_ID ,BD.BUDGET_PERIOD ,GM.BEGIN_DT ,GM.END_DT ,BD.PC_BUDGET_ITEM ,BD.RESOURCE_AMOUNT ,MYP.OPRID FROM PS_PC_BUD_DETAIL BD ,PS_PROJECT PRJ ,PS_GM_bud_PERIOD GM ,PS_PROJ_AN_GRP_MAP AGM ,PS_SET_CNTRL_REC SCR ,PS_PC_OPRID_PRJACT MYP WHERE PRJ.BUSINESS_UNIT = BD.BUSINESS_UNIT AND PRJ.PROJECT_ID = BD.PROJECT_ID AND BD.BUSINESS_UNIT = GM.BUSINESS_UNIT AND BD.PROJECT_ID = GM.SUB_PROP_NBR AND BD.BUDGET_PERIOD = TO_CHAR(GM.BUDGET_PERIOD_GM) AND BD.ACTIVITY_ID = GM.BUDGET_ID AND SCR.SETCNTRLVALUE = BD.BUSINESS_UNIT AND SCR.RECNAME = 'PROJ_AN_GRP_MAP' AND SCR.SETID = AGM.SETID AND AGM.ANALYSIS_GROUP = PRJ.AN_GRP_ACTV_BUD AND BD.ANALYSIS_TYPE = AGM.ANALYSIS_TYPE AND PRJ.BUSINESS_UNIT = MYP.BUSINESS_UNIT AND PRJ.PROJECT_ID = MYP.PROJECT_ID AND BD.KK_DISTRIB_STATUS = 'D' AND NOT EXISTS ( SELECT 'X' FROM PS_PROJ_RESOURCE PR WHERE PR.BUSINESS_UNIT = BD.BUSINESS_UNIT AND PR.PROJECT_ID = BD.PROJECT_ID AND PR.ACTIVITY_ID = BD.ACTIVITY_ID AND PR.RESOURCE_ID = BD.RESOURCE_ID )

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
2 PROJECT_ID Character(15) VARCHAR2(15) NOT NULL Project Id ChartField
3 DESCR Character(30) VARCHAR2(30) NOT NULL Description
4 START_DATE_FROM Date(10) DATE State date
5 END_DATE_TO Date(10) DATE End date
6 PC_BUDGET_ID Number(3,0) SMALLINT NOT NULL Budget Plan ID
7 BUDGET_PERIOD Character(8) VARCHAR2(8) NOT NULL Budget Period
8 BEGIN_DT Date(10) DATE Begin Date
9 END_DT Date(10) DATE End Date
10 PC_BUDGET_ITEM Character(15) VARCHAR2(15) NOT NULL Project Budgeting: Budget Item 11/15/2004- FS - Added label COST_BUDGET_ITEM
11 RESOURCE_AMOUNT Signed Number(28,3) DECIMAL(26,3) NOT NULL Transaction Amount
12 OPRID Character(30) VARCHAR2(30) NOT NULL A user's ID (see PSOPRDEFN).