PGM_PROGMBUD_VW

(SQL View)
Index Back

Program Budget Approval View

Program Budget Approval View for Fluid Approvals.

SELECT C.BUSINESS_UNIT ,C.PROJECT_ID ,C.DESCR ,A.PC_BUDGET_ID ,B.DESCR ,B.PC_BUD_TYPE ,B.CALENDAR_ID ,B.START_DT ,B.NUM_PERIODS ,( SELECT N.OPRDEFNDESC FROM PSOPRDEFN N WHERE N.EMPLID=C.BUDGET_APPROVER) AS APPROVER, ( SELECT N.OPRDEFNDESC FROM PSOPRDEFN N WHERE N.OPRID=A.OPRID) AS REQUESTOR,A.TOTAL_BUDGET_AMT,A.CURRENCY_CD,A.BUD_STATUS,A.DTTM_STAMP FROM PS_PGM_BUD_AUDIT A,PS_PGM_BUD_PLAN B,PS_PROJECT C WHERE A.BUSINESS_UNIT=B.BUSINESS_UNIT AND A.PROJECT_ID=B.PROJECT_ID AND A.PC_BUDGET_ID=B.PC_BUDGET_ID AND A.BUSINESS_UNIT=C.BUSINESS_UNIT AND A.PROJECT_ID=C.PROJECT_ID AND A.DTTM_STAMP = ( SELECT MAX(D.DTTM_STAMP) FROM PS_PGM_BUD_AUDIT D WHERE D.BUSINESS_UNIT= A.BUSINESS_UNIT AND D.PROJECT_ID = A.PROJECT_ID AND D.PC_BUDGET_ID= A.PC_BUDGET_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 PROJDESCR Character(30) VARCHAR2(30) NOT NULL Project Name
4 PC_BUDGET_ID Number(3,0) SMALLINT NOT NULL Budget Plan ID
5 DESCR Character(30) VARCHAR2(30) NOT NULL Description
6 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
7 CALENDAR_ID Character(2) VARCHAR2(2) NOT NULL Calendar ID
8 START_DT Date(10) DATE Start Date
9 NUM_PERIODS Number(2,0) SMALLINT NOT NULL Number of Time Periods
10 APPROVER_NAME Character(50) VARCHAR2(50) NOT NULL Approver
11 REQUESTOR_NAME Character(50) VARCHAR2(50) NOT NULL Requestor
12 TOTAL_BUDGET_AMT Signed Number(28,3) DECIMAL(26,3) NOT NULL TOTAL_BUDGET_AMT
13 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code
14 BUD_STATUS Character(1) VARCHAR2(1) NOT NULL Budget Status
1=Active
2=Inactive
3=Submitted
4=Returned
15 DTTM_STAMP DateTime(26) TIMESTAMP Specifies the date and time of the last update to an entry. This field is maintained by PeopleSoft and is used in a variety of contexts.