PC_BUGL_TEAM_VW

(SQL View)
Index Back

Operational Projects Team View

The view provides an easy to use on-line prompt for the project table. If a Project enforces that only team members can charge to that Project, this prompt shows only the Projects that this user is a team member of. This prompt also shows the Projects that are not setup to enforce team-member only validation.

SELECT C.EMPLID , B.BUSINESS_UNIT_GL , A.BUSINESS_UNIT , A.PROJECT_ID , A.DESCR FROM PS_PROJECT A , PS_PC_INT_TMPL_GL B , PS_PERSONAL_DATA C WHERE A.EFF_STATUS = 'A' AND A.SUMMARY_PRJ = 'N' AND A.INTEGRATION_TMPL = B.INTEGRATION_TMPL AND EXISTS ( SELECT 'X' FROM PS_SET_CNTRL_REC WHERE RECNAME = 'PC_INT_TMPL_GL' AND SETCNTRLVALUE = A.BUSINESS_UNIT AND B.SETID = SETID ) AND ((A.ENFORCE_TYPE IN ('P', 'B') AND A.ENFORCE NOT IN ('N','T') AND EXISTS ( SELECT 'X' FROM PS_PROJECT_TEAM PT WHERE A.BUSINESS_UNIT = PT.BUSINESS_UNIT AND A.PROJECT_ID = PT.PROJECT_ID AND PT.TEAM_MEMBER_CLASS = 'L' AND PT.TEAM_MEMBER_IND = 'E' AND C.EMPLID = PT.TEAM_MEMBER )) OR (A.ENFORCE_TYPE IN ('N', 'X') AND NOT EXISTS ( SELECT 'X' FROM PS_PROJECT B WHERE A.BUSINESS_UNIT = B.BUSINESS_UNIT AND A.PROJECT_ID = B.PROJECT_ID AND (B.ENFORCE_TYPE IN ('P', 'B', 'R', 'S') AND B.ENFORCE IN ('Y', 'E', 'T')) AND B.BUSINESS_UNIT = A.BUSINESS_UNIT GROUP BY B.BUSINESS_UNIT HAVING COUNT(*) > 0 )) OR (A.ENFORCE_TYPE IN ('P', 'B') AND A.ENFORCE = 'T' AND NOT EXISTS ( SELECT 'X' FROM PS_PROJECT B WHERE A.BUSINESS_UNIT = B.BUSINESS_UNIT AND A.PROJECT_ID = B.PROJECT_ID AND (B.ENFORCE_TYPE IN ('N', 'X', 'R', 'S') AND B.ENFORCE IN ('Y', 'E', 'N')) AND B.BUSINESS_UNIT = A.BUSINESS_UNIT GROUP BY B.BUSINESS_UNIT HAVING COUNT(*) > 0)) OR (A.ENFORCE_TYPE IN ('R', 'S') AND EXISTS ( SELECT 'X' FROM PS_PGM_POOL_CACH PL WHERE A.BUSINESS_UNIT = PL.BUSINESS_UNIT AND A.PROJECT_ID = PL.PROJECT_ID AND C.EMPLID = PL.EMPLID )))

  • Related Language Record: PC_BUGL_TEAM_LG
  • # PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
    1 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID
    2 BUSINESS_UNIT_GL Character(5) VARCHAR2(5) NOT NULL GL Business Unit
    3 BUSINESS_UNIT_PC Character(5) VARCHAR2(5) NOT NULL PC Business Unit
    4 PROJECT_ID Character(15) VARCHAR2(15) NOT NULL Project Id ChartField
    5 DESCR Character(30) VARCHAR2(30) NOT NULL Description