PCMP_RIJOBTERVW

(SQL View)
Index Back

Prof Comp Job Termination View

Used in the Professional Compliance module. View used for workflow notification when Regulated Individual is terminated from their job.

SELECT A.EMPLID ,A.EMPL_RCD ,A.PCMP_TYPE ,A.PCMP_REG_AUTH ,A.BUSINESS_UNIT ,C.PCMP_MGR_SUPER_ID ,C.PCMP_MGR_SUPER ,B.PCMP_NOTIFY_TRM ,B.PCMP_NOTIFY_MESS_T ,B.PCMP_NOTIFY_ACTN_T ,B.PCMP_NOTIFY_TIME_T FROM PS_PCMP_RI A ,PS_PCMP_REG_AUTH B ,PS_PCMP_MGRSUP_RI C WHERE B.PCMP_TYPE=A.PCMP_TYPE AND B.PCMP_REG_AUTH=A.PCMP_REG_AUTH AND B.PCMP_NOTIFY_TRM='Y' AND C.EMPLID=A.EMPLID AND C.EMPL_RCD=A.EMPL_RCD AND C.PCMP_TYPE=A.PCMP_TYPE AND C.PCMP_REG_AUTH=A.PCMP_REG_AUTH AND C.PCMP_RI_STATUS='A' AND C.PCMP_ASSIGNED_DT = ( SELECT MAX(PCMP_ASSIGNED_DT) FROM PS_PCMP_MGRSUP_RI WHERE PCMP_MGR_SUPER_ID = C.PCMP_MGR_SUPER_ID AND EMPLID = C.EMPLID AND EMPL_RCD = C.EMPL_RCD AND PCMP_TYPE = C.PCMP_TYPE AND PCMP_REG_AUTH = C.PCMP_REG_AUTH AND PCMP_ASSIGNED_DT <= %CurrentDateIn)

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID
2 EMPL_RCD Number(3,0) SMALLINT NOT NULL Empl Rcd Nbr
3 PCMP_TYPE Character(3) VARCHAR2(3) NOT NULL Professiona Compliance Type - Used in the Professional Compliance module. Identifies the different types of professional complianc within a company.
4 PCMP_REG_AUTH Character(10) VARCHAR2(10) NOT NULL Professional Compliance Regulatory Authority - Used within the Professional Compliance module. Identifies the body or organization that defines the rules/regulations that a company must apply to its individuals in order for them to become compliant/qualified in that particular field.
5 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
6 PCMP_MGR_SUPER_ID Character(11) VARCHAR2(11) NOT NULL Professional Compliance Manager/Supervisor ID - Used in the Professional Compliance module. Holds the EMPLID of the Manager/Supervisor.
7 PCMP_MGR_SUPER Character(1) VARCHAR2(1) NOT NULL Professional Compliance Manager/Supervisor - Used within the Professional Compliance module. Identifies whether the role is that of a Manager, or a Supervisor.
M=Manager
S=Supervisor
8 PCMP_NOTIFY_TRM Character(1) VARCHAR2(1) NOT NULL Used in the Professional Compliance module. Checkbox to determine whether notifcation is required when termination/retirement of employee.
N=No
Y=Yes
9 PCMP_NOTIFY_MESS_T Character(80) VARCHAR2(80) NOT NULL Used in the Professional Compliance module. Notification message.
10 PCMP_NOTIFY_ACTN_T Character(80) VARCHAR2(80) NOT NULL Used in the Professional Compliance module. Notification action message.
11 PCMP_NOTIFY_TIME_T Number(3,0) SMALLINT NOT NULL Used in the Professional Compliance module. Time limit for notification action in days.