PY_MOD_DDESC_VW

(SQL View)
Index Back

Paychk Mod Company Deductions

This view is used in paycheck modeling to show the latest company benefit deductions.

SELECT DISTINCT A.COMPANY , A.PAYGROUP , A.DESCR , A.PLAN_TYPE , A.BENEFIT_PROGRAM , A.BENEFIT_PLAN , A.DEDCD , A.DED_CLASS , B.XLATLONGNAME FROM PS_PY_MOD_PGRP_DED A , XLATTABLE_VW B WHERE B.FIELDNAME = 'DED_CLASS' AND B.FIELDVALUE = A.DED_CLASS AND B.EFFDT = ( SELECT MAX(B_ED.EFFDT) FROM XLATTABLE_VW B_ED WHERE B.FIELDNAME = B_ED.FIELDNAME AND B.FIELDVALUE = B_ED.FIELDVALUE AND B_ED.EFFDT <= %CurrentDateIn)

# 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 PY_MOD_DESCR_LABEL Character(30) VARCHAR2(30) NOT NULL Deduction
4 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.
5 BENEFIT_PROGRAM Character(3) VARCHAR2(3) NOT NULL Defines a collection of benefit plans and their associated rate and calculation rules.
6 BENEFIT_PLAN Character(6) VARCHAR2(6) NOT NULL Benefit Plan
7 DEDCD Character(6) VARCHAR2(6) NOT NULL Deduction Code
8 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
9 PY_MOD_DEDCLS_DESC Character(30) VARCHAR2(30) NOT NULL Type of Deduction