CA_WC_SPBUD_VW

(SQL View)
Index Back

Sponsor WC Tot Budget posted

This view shows the total budget amount of the award.

SELECT HDR.CONTRACT_NUM , C.BUSINESS_UNIT , DTL.CONTRACT_LINE_NUM , C.PROJECT_ID , C.ACTIVITY_ID , C.PC_BUDGET_ID , C.BUDGET_PERIOD , B.PC_BUD_TYPE , PROJ.DESCR , C.CURRENCY_CD , SUM(C.RESOURCE_AMOUNT) , ( SELECT SUM(D.RESOURCE_AMOUNT) FROM PS_PC_BUD_DETAIL D WHERE D.BUSINESS_UNIT = C.BUSINESS_UNIT AND D.PROJECT_ID =C.PROJECT_ID AND D.ACTIVITY_ID = C.ACTIVITY_ID AND D.PC_BUDGET_ID = C.PC_BUDGET_ID AND D.BUDGET_PERIOD =C.BUDGET_PERIOD AND D.ANALYSIS_TYPE = 'BUD' AND D.PC_DISTRIB_STATUS='D') , ( SELECT SUM(E.RESOURCE_AMOUNT) FROM PS_PC_BUD_DETAIL E WHERE E.BUSINESS_UNIT = C.BUSINESS_UNIT AND E.PROJECT_ID =C.PROJECT_ID AND E.ACTIVITY_ID = C.ACTIVITY_ID AND E.PC_BUDGET_ID = C.PC_BUDGET_ID AND E.BUDGET_PERIOD =C.BUDGET_PERIOD AND E.ANALYSIS_TYPE = 'CBU' AND E.PC_DISTRIB_STATUS='D') FROM PS_CA_CONTR_HDR HDR , PS_GM_AWARD AWD , PS_PROJECT PROJ , PS_CA_DETAIL_PROJ DTL , PS_PC_BUD_PLAN B , PS_PC_BUD_DETAIL C WHERE AWD.CONTRACT_NUM = HDR.CONTRACT_NUM AND DTL.CONTRACT_NUM = HDR.CONTRACT_NUM AND DTL.BUSINESS_UNIT_PC = C.BUSINESS_UNIT AND DTL.PROJECT_ID = C.PROJECT_ID AND DTL.ACTIVITY_ID = C.ACTIVITY_ID AND PROJ.BUSINESS_UNIT = DTL.BUSINESS_UNIT_PC AND PROJ.PROJECT_ID = DTL.PROJECT_ID AND B.BUSINESS_UNIT = C.BUSINESS_UNIT AND B.PROJECT_ID =C.PROJECT_ID AND B.PC_BUDGET_ID = C.PC_BUDGET_ID GROUP BY HDR.CONTRACT_NUM, C.BUSINESS_UNIT, DTL.CONTRACT_LINE_NUM,C.PROJECT_ID,C.ACTIVITY_ID,C.PC_BUDGET_ID, C.BUDGET_PERIOD,B.PC_BUD_TYPE, PROJ.DESCR,C.CURRENCY_CD

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 CONTRACT_NUM Character(25) VARCHAR2(25) NOT NULL Contract
2 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
3 CONTRACT_LINE_NUM Number(3,0) SMALLINT NOT NULL Contract Line Num
4 PROJECT_ID Character(15) VARCHAR2(15) NOT NULL Project Id ChartField
5 ACTIVITY_ID Character(15) VARCHAR2(15) NOT NULL Activity ID
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 PC_BUD_TYPE Character(1) VARCHAR2(1) NOT NULL This field defines a Projects Budget as either Cost or Revenue Based.
C=Cost Budget
R=Revenue Budget
9 DESCR Character(30) VARCHAR2(30) NOT NULL Description
10 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code
11 RESOURCE_AMOUNT Signed Number(28,3) DECIMAL(26,3) NOT NULL Transaction Amount
12 TOTAL_SPONSOR_AMT Signed Number(28,3) DECIMAL(26,3) NOT NULL TOTAL_SPONSOR_AMT
13 TOTAL_COST_SHARE Signed Number(28,3) DECIMAL(26,3) NOT NULL Total C/S Budget