PC_STAT_DESC_VW

(SQL View)
Index Back

Project Status Descr View

This view returned the most current effective-dated status and returns the status and the Description from the PROJ_STATUS_TBL.

SELECT A.BUSINESS_UNIT , A.PROJECT_ID , A.EFFDT , A.EFFSEQ , A.PROJECT_STATUS , TBL.DESCR FROM PS_PROJECT_STATUS A , PS_PROJ_STATUS_TBL TBL , PS_SET_CNTRL_REC CNTRL WHERE TBL.SETID = CNTRL.SETID AND CNTRL.RECNAME = 'PROJ_STATUS_TBL' AND CNTRL.SETCNTRLVALUE = A.BUSINESS_UNIT AND TBL.PROJECT_STATUS = A.PROJECT_STATUS AND TBL.EFF_STATUS = 'A' AND TBL.EFFDT = ( SELECT MAX(D.EFFDT) FROM PS_PROJ_STATUS_TBL D WHERE TBL.SETID = D.SETID AND TBL.PROJECT_STATUS = D.PROJECT_STATUS AND D.EFFDT <= %CurrentDateIn) AND A.EFFDT = ( SELECT MAX(B.EFFDT) FROM PS_PROJECT_STATUS B WHERE A.BUSINESS_UNIT = B.BUSINESS_UNIT AND A.PROJECT_ID = B.PROJECT_ID AND B.EFFDT <= %CurrentDateIn) AND A.EFFSEQ = ( SELECT MAX(C.EFFSEQ) FROM PS_PROJECT_STATUS C WHERE A.BUSINESS_UNIT = C.BUSINESS_UNIT AND A.PROJECT_ID = C.PROJECT_ID AND A.EFFDT = C.EFFDT)

  • Parent record: PROJECT
  • # PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
    1 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit

    Default Value: PROJECT.BUSINESS_UNIT

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

    Prompt Table: PROJECT

    3 EFFDT Date(10) DATE Effective Date

    Default Value: %date

    4 EFFSEQ Number(3,0) SMALLINT NOT NULL Effective Sequence
    5 PROJECT_STATUS Character(1) VARCHAR2(1) NOT NULL Project Status
    B=Budgeted
    C=Closed
    H=Hold
    O=Open
    P=Proposed

    Prompt Table: %EDITTABLE3

    6 STATUS_DESCR Character(30) VARCHAR2(30) NOT NULL Status Description