PY_MOD_BDED_VW(SQL View) |
Index Back |
---|---|
Paychk Mod BenProg DednsThis view is used to show the latest benefit program deductions. |
SELECT DISTINCT X.COMPANY , Y.PAYGROUP , B.BENEFIT_PROGRAM , B.PLAN_TYPE , B.BENEFIT_PLAN , B.DEDCD , C.DED_CLASS , D.DESCR FROM PS_PY_MOD_COMPNY X , PS_PAYGROUP_TBL Y , PS_BEN_PROG_BENDED B , PS_DEDUCTION_CLASS C , PS_DEDUCTION_TBL D WHERE Y.COMPANY = X.COMPANY AND Y.EFFDT = ( SELECT MAX(Y_ED.EFFDT) FROM PS_PAYGROUP_TBL Y_ED WHERE Y.COMPANY = Y_ED.COMPANY AND Y.PAYGROUP = Y_ED.PAYGROUP AND Y_ED.EFFDT <= %CurrentDateIn) AND B.EFFDT = ( SELECT MAX(B_ED.EFFDT) FROM PS_BEN_PROG_BENDED B_ED WHERE B.BENEFIT_PROGRAM = B_ED.BENEFIT_PROGRAM AND B_ED.EFFDT <= %CurrentDateIn) AND B.PLAN_TYPE = C.PLAN_TYPE AND B.DEDCD = C.DEDCD AND C.DED_CLASS IN ('A','B') AND B.PLAN_TYPE = D.PLAN_TYPE AND B.DEDCD = D.DEDCD AND D.EFFDT = ( SELECT MAX(D_ED.EFFDT) FROM PS_DEDUCTION_TBL D_ED WHERE D.PLAN_TYPE = D_ED.PLAN_TYPE AND D.DEDCD = D_ED.DEDCD AND D_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 | BENEFIT_PROGRAM | Character(3) | VARCHAR2(3) NOT NULL | Defines a collection of benefit plans and their associated rate and calculation rules. |
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_PLAN | Character(6) | VARCHAR2(6) NOT NULL | Benefit Plan |
6 | DEDCD | Character(6) | VARCHAR2(6) NOT NULL | Deduction Code |
7 | 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 |
8 | DESCR | Character(30) | VARCHAR2(30) NOT NULL | Description |