GPES_F_CNTRB_VW

(SQL View)
Index Back

Future base of contribution

This view retrieves the information corresponding to compensation accrued in more than one month

SELECT A.EMPLID , A.EMPL_RCD , MAX(A.SLICE_BGN_DT) , MAX(A.GPES_FLAG_F_BS) , A.GPES_MONTH , A.GPES_YEAR , A.GPES_MONTH_PMNT , A.GPES_YEAR_PMNT , A.GPES_ORDINAL , A.PIN_NM , A.ED_ASSIGN_INSTANCE , SUM(A.GPES_TOTAL_F_BSE ) , MAX(A.GPES_NBR_MONTHS ) , SUM(A.GPES_PEND_F_BSE ) , MAX(A.CURRENCY_CD ) , MAX(A.RSLT_VER_NUM) , MAX(A.RSLT_REV_NUM) FROM PS_GPES_F_BS_CNTRB A WHERE A.GPES_FLAG_F_BS = ( SELECT MAX(E.GPES_FLAG_F_BS) FROM PS_GPES_F_BS_CNTRB E WHERE A.EMPLID = E.EMPLID AND A.EMPL_RCD = E.EMPL_RCD AND A.GPES_YEAR=E.GPES_YEAR AND A.GPES_MONTH = E.GPES_MONTH AND A.GPES_MONTH_PMNT = E.GPES_MONTH_PMNT AND A.GPES_YEAR_PMNT = E.GPES_YEAR_PMNT AND A.PIN_NM = E.PIN_NM AND A.ED_ASSIGN_INSTANCE = E.ED_ASSIGN_INSTANCE AND %Sql(GPES_TX_MAX_VER_REV_NUM, PS_GPES_F_BS_CNTRB, E)) AND %Sql(GPES_TX_MAX_VER_REV_NUM, PS_GPES_F_BS_CNTRB, A) GROUP BY A.EMPLID, A.EMPL_RCD, A.GPES_MONTH, A.GPES_YEAR, A.GPES_MONTH_PMNT, A.GPES_YEAR_PMNT, A.GPES_ORDINAL, A.PIN_NM, A.ED_ASSIGN_INSTANCE

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID
2 EMPL_RCD Number(3,0) SMALLINT NOT NULL Empl Record
3 SLICE_BGN_DT Date(10) DATE Element Slice Begin Date
4 GPES_FLAG_F_BS Number(1,0) SMALLINT NOT NULL Flag of Future base to contribute
5 GPES_MONTH Number(2,0) SMALLINT NOT NULL Month
6 GPES_YEAR Number(4,0) SMALLINT NOT NULL Year
7 GPES_MONTH_PMNT Number(2,0) SMALLINT NOT NULL Month in which an earning is paid.
8 GPES_YEAR_PMNT Number(4,0) SMALLINT NOT NULL Year in which an earning is paid.
9 GPES_ORDINAL Number(3,0) SMALLINT NOT NULL It allows several earnings accrued in more than one month (equal or different) in the process month.
10 PIN_NM Character(18) VARCHAR2(18) NOT NULL Element Name field
11 ED_ASSIGN_INSTANCE Number(3,0) SMALLINT NOT NULL Earn/Ded Assignment Instance
12 GPES_TOTAL_F_BSE Number(14,2) DECIMAL(13,2) NOT NULL Total amount corresponding to compensation accrued in more than one month
13 GPES_NBR_MONTHS Number(3,0) SMALLINT NOT NULL Number of months to prorate the compensation accrued in more than one month.
14 GPES_PEND_F_BSE Number(14,2) DECIMAL(13,2) NOT NULL The pending amount to contribute corresponding to compensation accrued in more than one month
15 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code

Default Value: EUR

Prompt Table: CURRENCY_CD_TBL

16 RSLT_VER_NUM Number(4,0) SMALLINT NOT NULL Result Version Number
17 RSLT_REV_NUM Number(4,0) SMALLINT NOT NULL Result Revision Number