PY_MOD_CLS_VW

(SQL View)
Index Back

Ded Class for Plan Type-Ded Cd

This view is used to show the latest deduction classfns for the given plan type and deduction code.

SELECT DISTINCT A.PLAN_TYPE ,A.DEDCD ,A.DED_CLASS ,B.XLATLONGNAME FROM PS_DEDUCTION_CLASS A , XLATTABLE_VW B WHERE A.EFFDT = ( SELECT MAX(A_ED.EFFDT) FROM PS_DEDUCTION_CLASS A_ED WHERE A.PLAN_TYPE = A_ED.PLAN_TYPE AND A.DED_CLASS IN ('A','B') AND A.DEDCD = A_ED.DEDCD AND A_ED.EFFDT <= %CurrentDateIn) AND 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)

  • Related Language Record: PY_MOD_CLS_L_VW
  • # 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 DEDCD Character(6) VARCHAR2(6) NOT NULL Deduction Code
    3 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
    4 DESCR Character(30) VARCHAR2(30) NOT NULL Description