TRW_PY_ER_DEDS

(SQL View)
Index Back

NA Payroll ER Deduction View

This view retrieves employer pay deduction detail from North American Payroll.

SELECT PC.COMPANY , PC.PAYGROUP , PC.PAY_END_DT , PC.OFF_CYCLE , PC.PAGE_NUM , PC.LINE_NUM , PC.SEPCHK , ER.BENEFIT_RCD_NBR , ER.PLAN_TYPE , ER.BENEFIT_PLAN , ER.DEDCD , ER.DED_CLASS , ER.DED_SLSTX_CLASS , PC.EMPLID , PC.EMPL_RCD , 0 , ER.DED_CUR , PG.CURRENCY_CD , PC.PAYCHECK_NBR , PC.CHECK_DT FROM PS_PAY_CHECK PC , PS_PAYGROUP_TBL PG , PS_PAY_DEDUCTION ER WHERE PC.PAYCHECK_STATUS IN ('F', 'R') AND PC.COMPANY = PG.COMPANY AND PC.PAYGROUP = PG.PAYGROUP AND PG.EFFDT = ( SELECT MAX(PG_ED.EFFDT) FROM PS_PAYGROUP_TBL PG_ED WHERE PG.COMPANY = PG_ED.COMPANY AND PG.PAYGROUP = PG_ED.PAYGROUP AND PG_ED.EFFDT <= PC.PAY_END_DT) AND PG.EFF_STATUS = 'A' AND ER.COMPANY = PC.COMPANY AND ER.PAYGROUP = PC.PAYGROUP AND ER.PAY_END_DT = PC.PAY_END_DT AND ER.OFF_CYCLE = PC.OFF_CYCLE AND ER.PAGE_NUM = PC.PAGE_NUM AND ER.LINE_NUM = PC.LINE_NUM AND ER.SEPCHK = PC.SEPCHK AND ER.DED_CLASS IN ('N','P')

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 COMPANY Character(3) VARCHAR2(3) NOT NULL Company
2 PAYGROUP Character(3) VARCHAR2(3) NOT NULL Pay Group
3 PAY_END_DT Date(10) DATE Pay Period End Date
4 OFF_CYCLE Character(1) VARCHAR2(1) NOT NULL Off Cycle ?
5 PAGE_NUM Number(5,0) INTEGER NOT NULL Page Nbr
6 LINE_NUM Number(3,0) SMALLINT NOT NULL Line Nbr
7 SEPCHK Number(2,0) SMALLINT NOT NULL Separate check number.
8 BENEFIT_RCD_NBR Number(3,0) SMALLINT NOT NULL Specifies a sequence number associated with each of multiple concurrent jobs for a one employee. It is used to determine the applicable benefit program for each job. The first job entered for an employee is automatically assigned a Benefit Record Number of zero (0). This field is linked with EMPL_RCD#, the Employment Record Number.
9 PLAN_TYPE Character(2) VARCHAR2(2) NOT NULL Identifies a category of benefit plan, such as Medical, Dental, and Life (Insurance). A set of plan type codes, as well as rules for creating new codes, is provided by PeopleSoft. Plan Type codes determine how the system processes and defines eligibility for the various benefit plans.
10 BENEFIT_PLAN Character(6) VARCHAR2(6) NOT NULL Benefit Plan
11 DEDCD Character(6) VARCHAR2(6) NOT NULL Deduction Code
12 DED_CLASS Character(1) VARCHAR2(1) NOT NULL Deduction Classification
A=After-Tax
B=Before-Tax
L=QC Taxable Benefit
N=Nontaxable Benefit
P=Nontaxable Btax Benefit
T=Taxable Benefit
13 DED_SLSTX_CLASS Character(1) VARCHAR2(1) NOT NULL Sales Tax Type
B=None
G=Goods and Services Tax
H=Harmonized Sales Tax
I=Provincial Sales Tax Insurance
P=Provincial Sales Tax
Q=QC Prov Sales Tax Insurance
S=QC Provincial Sales Tax
T=Provincial Premium Tax
U=QC Provincial Premium Tax
14 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID
15 EMPL_RCD Number(3,0) SMALLINT NOT NULL Empl Record
16 TRW_CUR_EE_AMT Signed Number(12,2) DECIMAL(10,2) NOT NULL Employee Current Deduction
17 TRW_CUR_ER_AMT Signed Number(12,2) DECIMAL(10,2) NOT NULL Employer Current Amount
18 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code
19 PAYCHECK_NBR Number(15,0) DECIMAL(15) NOT NULL Paycheck number.
20 CHECK_DT Date(10) DATE Check date.