PY_MOD_DEDXX_VW

(SQL View)
Index Back

Paychk Mod Company Deductions

This view combines PY_MOD_PGRP_ERN and DEDUCTIONS_TBL.

SELECT DISTINCT a.plan_type , ' ' , a.dedcd , b.ded_class , a.descr , a.spcl_process FROM ps_deduction_tbl a , ps_deduction_class b WHERE a.plan_type = '00' AND a.effdt = ( SELECT MAX(B_ED.EFFDT) FROM PS_DEDUCTION_TBL B_ED WHERE a.plan_type = B_ED.PLAN_TYPE AND a.dedcd = B_ED.DEDCD AND B_ED.EFFDT <= %CurrentDateIn) AND a.plan_type = b.plan_type AND a.dedcd = b.dedcd AND b.ded_class IN('A', 'B') UNION SELECT DISTINCT a.plan_type , a.benefit_plan , a.dedcd , c.ded_class , a.descr , b.spcl_process FROM PS_PY_MOD_BENDEDVW a , ps_deduction_tbl b , ps_deduction_class c WHERE a.plan_type = b.plan_type AND a.dedcd = b.dedcd AND b.effdt = ( SELECT MAX(C_ED.EFFDT) FROM PS_DEDUCTION_TBL C_ED WHERE b.plan_type = C_ED.PLAN_TYPE AND b.dedcd = C_ED.DEDCD AND C_ED.EFFDT <= %CurrentDateIn) AND a.plan_type = c.plan_type AND a.dedcd = c.dedcd AND c.ded_class IN('A', 'B')

  • Related Language Record: PY_MOD_DEDXXLVW
  • # PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
    1 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.
    2 BENEFIT_PLAN Character(6) VARCHAR2(6) NOT NULL Benefit Plan
    3 DEDCD Character(6) VARCHAR2(6) NOT NULL Deduction Code
    4 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
    5 DESCR Character(30) VARCHAR2(30) NOT NULL Description
    6 SPCL_PROCESS Character(1) VARCHAR2(1) NOT NULL Special Process
    B=Bond
    G=Garnishment
    U=Union Dues