BEN_PROGVW_LNG

(SQL View)
Index Back

Pln Type/Ben Plns in Ben Prog

BEN_PRPG_BENPLN is a view of Plan Types and Benefit Plans in Benefit Programs. It selects data from PS_Ben_Defn_Pgm, PS_Ben_Defn_Optn, and PS_Benef_Plan_Tbl with option type equal to 'O'ption and effective status = 'A'ctive. This view is used in many panels.

SELECT A.BENEFIT_PROGRAM ,A.EFFDT ,B.PLAN_TYPE ,B.BENEFIT_PLAN ,C.LANGUAGE_CD ,C.DESCR ,C.DESCRSHORT FROM PS_BEN_DEFN_PGM A , PS_BEN_DEFN_OPTN B , PS_BENEF_PLAN_LANG C WHERE A.EFF_STATUS = 'A' AND B.BENEFIT_PROGRAM = A.BENEFIT_PROGRAM AND B.EFFDT = A.EFFDT AND B.OPTION_TYPE = 'O' AND B.OPTION_ID = ( SELECT MAX(B1.OPTION_ID) FROM PS_BEN_DEFN_OPTN B1 WHERE B1.BENEFIT_PROGRAM = B.BENEFIT_PROGRAM AND B1.OPTION_TYPE = 'O' AND B1.EFFDT = B.EFFDT AND B1.PLAN_TYPE = B.PLAN_TYPE AND B1.BENEFIT_PLAN = B.BENEFIT_PLAN) AND C.PLAN_TYPE = B.PLAN_TYPE AND C.BENEFIT_PLAN = B.BENEFIT_PLAN AND C.EFFDT = ( SELECT MAX(D.EFFDT) FROM PS_BENEF_PLAN_LANG D WHERE D.PLAN_TYPE = C.PLAN_TYPE AND D.BENEFIT_PLAN = C.BENEFIT_PLAN AND D.LANGUAGE_CD = C.LANGUAGE_CD AND D.EFFDT <= A.EFFDT)

  • Related Language Record for BEN_PROG_BENPLN CBR_PROG_BENPLN
  • # PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
    1 BENEFIT_PROGRAM Character(3) VARCHAR2(3) NOT NULL Defines a collection of benefit plans and their associated rate and calculation rules.
    2 EFFDT Date(10) DATE NOT NULL Effective Date

    Default Value: %date

    3 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.
    4 BENEFIT_PLAN Character(6) VARCHAR2(6) NOT NULL Benefit Plan

    Prompt Table: BENEF_PLAN_TBL

    5 LANGUAGE_CD Character(3) VARCHAR2(3) NOT NULL Language Code
    6 DESCR Character(30) VARCHAR2(30) NOT NULL Description
    7 DESCRSHORT Character(10) VARCHAR2(10) NOT NULL Short Description