WM_PC_PRJ_VW

(SQL View)
Index Back

View by WO type and Service

The purpose of this view is to provide a distinct list of Projects based on a work order type and service group combination. The default project table is based on wildcarding. This record joins to the WO type table to get a full view.

SELECT DISTINCT A.BUSINESS_UNIT , B.WO_TYPE , E.SRVC_GRP_ID , A.EFFDT , A.PROJECT_ID , F.DESCR , A.BUSINESS_UNIT_PC , F.DTTM_STAMP FROM PS_WM_PC_DFLT_DTL A , PS_PROJECT F , PS_WM_WO_TYPE B , PS_WM_SRVC_GRP E WHERE (B.WO_TYPE = A.WO_TYPE OR A.WO_TYPE = '%') AND A.BUSINESS_UNIT_PC = F.BUSINESS_UNIT AND A.PROJECT_ID = F.PROJECT_ID AND F.EFF_STATUS = 'A' AND (E.SRVC_GRP_ID = A.SRVC_GRP_ID OR A.SRVC_GRP_ID = '%') AND EXISTS ( SELECT SETCNTRLVALUE FROM PS_SET_CNTRL_REC D WHERE B.SETID = D.SETID AND D.RECNAME='WM_WO_TYPE' AND D.SETCNTRLVALUE = A.BUSINESS_UNIT ) AND EXISTS ( SELECT SETCNTRLVALUE FROM PS_SET_CNTRL_REC E WHERE B.SETID = E.SETID AND E.RECNAME='WM_SRVC_GRP' AND E.SETCNTRLVALUE = A.BUSINESS_UNIT )

  • Related Language Record: WM_PC_PRJ_VW_LG
  • # PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
    1 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit

    Prompt Table: SP_BU_WM_NONVW

    2 WO_TYPE Character(5) VARCHAR2(5) NOT NULL Work Order Type
    3 SRVC_GRP_ID Character(10) VARCHAR2(10) NOT NULL Service Group
    4 EFFDT Date(10) DATE Effective Date

    Default Value: %date

    5 PROJECT_ID Character(15) VARCHAR2(15) NOT NULL Project Id ChartField
    6 DESCR Character(30) VARCHAR2(30) NOT NULL Description
    7 BUSINESS_UNIT_PC Character(5) VARCHAR2(5) NOT NULL PC Business Unit
    8 SYNCDTTM DateTime(26) TIMESTAMP Synchronization Last Update Date Time