GPES_SSTC_EDLVW(SQL View) |
Index Back |
---|---|
TCs Generation CCC, EE & RiskTCs Generation by CCC, Employee and Risk Code |
SELECT A.SSN_EMPLOYER , A.GPES_SSTC_PAYMNT , A.GPES_SSTC_CNTRL_DT , A.GPES_OOD_PYMT_SUR , A.GPES_MONTH , A.GPES_YEAR , A.EMPLID , A.SLICE_BGN_DT , MAX(A.SLICE_END_DT) , A.SOC_SEC_RISK_CODE , MAX(A.GPES_SEC_RISK_CODE) , A.SOC_SEC_WRK_GRP_CD , A.CONTRACT_TYPE , A.GPES_MONTH_RECALC , A.GPES_YEAR_RECALC , A.GPES_SSTC_STRIKE , A.GPES_SSTC_MULTIJOB , A.GPES_SSTC_LGL_CUST , MAX(A.GPES_SSTC_MONTHLY) , A.GPES_SSTC_NOSALARY , A.GPES_SSTC_OTHERS , A.GPES_SSTC_MT , A.GPES_SSTC_CONTR_7D , A.GPES_SSTC_SPC_CNTB , A.GPES_SSTC_ELEMENT , A.GPES_SSTC_ELEM_NUM , A.GPES_SSTC_ELEM_GRP , MAX(A.GPES_SSTC_DAYS_HRS) , SUM(A.GPES_SSTC_AMOUNT) , MAX(A.GPES_SSTC_HRS_FLAG) , SUM(A.GPES_SSTC_DEC_PART) , MAX(A.GPES_SSTC_DAYS) , MAX(A.GPES_SSTC_SIGN) , MAX(A.GPES_SSTC_RES_TYPE) , MAX(A.GPES_SSTC_RESLN_DT) , MIN(A.GPES_SSTC_BEGIN_DT) , MAX(A.GPES_SSTC_END_DT) , MAX(A.GPES_SS_AUTH_NBR) , SUM(A.GPES_SSTC_CT_EE) , SUM(A.GPES_SSTC_CT_ER) , MAX(A.GPES_SSTC_PCT_FLG) , MAX(A.GPES_SSTC_PCT_ENT) , MAX(A.GPES_SSTC_PCT_DEC) , MAX(A.GPES_SS_BNF_SUBTYP) , MAX(A.GPES_SSTC_DISABLTY) , A.GPES_SSTC_RED_PART , MAX(A.GPES_SSTC_RELSHIP) , MAX(A.GPES_SSTC_CNT_FLG) FROM PS_GPES_SSTC_RS_VW A WHERE A.GPES_SSTC_EXCL_FAN = '00' GROUP BY A.SSN_EMPLOYER, A.GPES_SSTC_PAYMNT, A.GPES_SSTC_CNTRL_DT, A.GPES_OOD_PYMT_SUR, A.GPES_MONTH, A.GPES_YEAR, A.GPES_SSTC_ELEM_GRP, A.EMPLID, A.SLICE_BGN_DT, A.SOC_SEC_RISK_CODE, A.SOC_SEC_WRK_GRP_CD, A.CONTRACT_TYPE, A.GPES_MONTH_RECALC, A.GPES_YEAR_RECALC, A.GPES_SSTC_STRIKE, A.GPES_SSTC_MULTIJOB, A.GPES_SSTC_LGL_CUST, A.GPES_SSTC_NOSALARY, A.GPES_SSTC_OTHERS , A.GPES_SSTC_MT, A.GPES_SSTC_CONTR_7D, GPES_SSTC_SPC_CNTB, A.GPES_SSTC_RED_PART, A.GPES_SSTC_ELEMENT, A.GPES_SSTC_ELEM_NUM |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | SSN_EMPLOYER | Character(13) | VARCHAR2(13) NOT NULL | Employer Social Security number |
2 | GPES_SSTC_PAYMNT | Character(3) | VARCHAR2(3) NOT NULL |
Payment Type. This field is used to populate the GP Write Array, which is used to generate the FAN File.
L00=Regular L02=Litigation Salary L03=Retroactivity wo/Surcharge L04=Reductions Payback L09=Retroactivity w/Surcharge L13=Vacations L90=Retro w/Surch. Base Incr. L91=Retro w/Surch. New Slices V03=Retro wo/ Surcharge Vacations V90=Retro w/ Surcharge Vacations Default Value: L00 |
3 | GPES_SSTC_CNTRL_DT | Date(10) | DATE | Social Security TCs control date |
4 | GPES_OOD_PYMT_SUR | Number(2,0) | SMALLINT NOT NULL | FAN surcharge because of an out of date payment |
5 | GPES_MONTH | Number(2,0) | SMALLINT NOT NULL | Month |
6 | GPES_YEAR | Number(4,0) | SMALLINT NOT NULL | Year |
7 | EMPLID | Character(11) | VARCHAR2(11) NOT NULL | Employee ID |
8 | SLICE_BGN_DT | Date(10) | DATE | Element Slice Begin Date |
9 | SLICE_END_DT | Date(10) | DATE | Element Slice End Date |
10 | SOC_SEC_RISK_CODE | Character(3) | VARCHAR2(3) NOT NULL | Social Security Risk Code |
11 | GPES_SEC_RISK_CODE | Character(3) | VARCHAR2(3) NOT NULL | Social Security secondary risk code |
12 | SOC_SEC_WRK_GRP_CD | Character(2) | VARCHAR2(2) NOT NULL |
Social Security Work Group
01=01-Engineers 02=02-Technicals 03=03-Administrative 04=04-Assistants 05=05-White Collar 06=06-Subordinates 07=07-Administrative assistants 08=08-1st and 2nd degree 09=09-3rd degree 10=10-Over 18 years 11=11-Under 18 years |
13 | CONTRACT_TYPE | Character(3) | VARCHAR2(3) NOT NULL | Contract Type |
14 | GPES_MONTH_RECALC | Number(2,0) | SMALLINT NOT NULL | Retro month |
15 | GPES_YEAR_RECALC | Number(4,0) | SMALLINT NOT NULL | Retro year |
16 | GPES_SSTC_STRIKE | Character(1) | VARCHAR2(1) NOT NULL | Strike indicator. This field is used to populate the GP Write Array, which is used to generate the FAN File. |
17 | GPES_SSTC_MULTIJOB | Character(1) | VARCHAR2(1) NOT NULL | Multijob indicator. This field is used to populate the GP Write Array, which is used to generate the FAN File. |
18 | GPES_SSTC_LGL_CUST | Character(1) | VARCHAR2(1) NOT NULL | Legal custody indicator. This field is used to populate the GP Write Array, which is used to generate the FAN File. |
19 | GPES_SSTC_MONTHLY | Character(1) | VARCHAR2(1) NOT NULL | Monthly indicator. This field is used to populate the GP Write Array, which is used to generate the FAN File. |
20 | GPES_SSTC_NOSALARY | Character(1) | VARCHAR2(1) NOT NULL | No salary. This field is used to populate the GP Write Array, which is used to generate the FAN File. |
21 | GPES_SSTC_OTHERS | Character(1) | VARCHAR2(1) NOT NULL | Others flag. This field is used to populate the GP Write Array, which is used to generate the FAN File. |
22 | GPES_SSTC_MT | Character(1) | VARCHAR2(1) NOT NULL | Maternity Flag |
23 | GPES_SSTC_CONTR_7D | Character(1) | VARCHAR2(1) NOT NULL | Contracts with duration of less than seven days |
24 | GPES_SSTC_SPC_CNTB | Character(1) | VARCHAR2(1) NOT NULL | Special contribution |
25 | GPES_SSTC_ELEMENT | Character(4) | VARCHAR2(4) NOT NULL | This code indicates if the element represents a base or a deduction. This field is used to populate the GP Write Array, which is used to generate the FAN File. |
26 | GPES_SSTC_ELEM_NUM | Number(3,0) | SMALLINT NOT NULL | This field indicates the number of the CD22 elements in FAN file. |
27 | GPES_SSTC_ELEM_GRP | Character(4) | VARCHAR2(4) NOT NULL |
Element Grouping used to separate data into different TC2 payment messages.
CDPG=Company Paid Benefit CDXX=Reductions XXXX=Other |
28 | GPES_SSTC_DAYS_HRS | Signed Number(4,0) | DECIMAL(3) NOT NULL | Amount of Days or Hours (depending on Hours Flag). This field is used to populate the GP Write Array, which is used to generate the FAN File. |
29 | GPES_SSTC_AMOUNT | Signed Number(11,2) | DECIMAL(9,2) NOT NULL | Amount of the element.(Entire part). This field is used to populate the GP Write Array, which is used to generate the FAN File. |
30 | GPES_SSTC_HRS_FLAG | Character(1) | VARCHAR2(1) NOT NULL | Hour indicator. In case of hours, this field should be populated with 'H'. This field is used to populate the GP Write Array, which is used to generate the FAN File. |
31 | GPES_SSTC_DEC_PART | Signed Number(3,0) | DECIMAL(2) NOT NULL | Amount of the element (Decimal part). This field is used to populate the GP Write Array, which is used to generate the FAN File. |
32 | GPES_SSTC_DAYS | Number(4,0) | SMALLINT NOT NULL | Days in which EE has been. This field is used to populate the GP Write Array, which is used to generate the FAN File. |
33 | GPES_SSTC_SIGN | Character(1) | VARCHAR2(1) NOT NULL | Contribution sign. In case of a negative amount, this field should be populated with '-' This field is used to populate the GP Write Array, which is used to generate the FAN File. |
34 | GPES_SSTC_RES_TYPE | Character(2) | VARCHAR2(2) NOT NULL |
Type or resolution. This field is used to populate the GP Write Array, which is used to generate the FAN File.
1=IT 10=Multiple-Employment 11=Structural Overtime 2=Reduction 3=Bonification 6=Partial Unemployment |
35 | GPES_SSTC_RESLN_DT | Date(10) | DATE | Resolution Date in case of Reduction/MultiJob. This field is used to populate the GP Write Array, which is used to generate the FAN File. |
36 | GPES_SSTC_BEGIN_DT | Date(10) | DATE | Start Date for employee situations. This field is used to populate the GP Write Array, which is used to generate the FAN File. |
37 | GPES_SSTC_END_DT | Date(10) | DATE | End date for employee situations. This field is used to populate the GP Write Array, which is used to generate the FAN File. |
38 | GPES_SS_AUTH_NBR | Character(17) | VARCHAR2(17) NOT NULL | Social Security authorization number |
39 | GPES_SSTC_CT_EE | Signed Number(17,2) | DECIMAL(15,2) NOT NULL | Employee Social Security Contributions. This field is used to populate the GP Write Array, which is used to generate the FAN File. |
40 | GPES_SSTC_CT_ER | Signed Number(15,2) | DECIMAL(13,2) NOT NULL | Employer Social Security Contributions. This field is used to populate the GP Write Array, which is used to generate the FAN File. |
41 | GPES_SSTC_PCT_FLG | Character(1) | VARCHAR2(1) NOT NULL | Decimal part indicator. This field is used to populate the GP Write Array, which is used to generate the FAN File. |
42 | GPES_SSTC_PCT_ENT | Number(6,0) | INTEGER NOT NULL | Social Security Employee Percentage. This field houses the percentage that has to be aplied to a particular base for contibuting to the Social Security. This information is from the Employee perspective. |
43 | GPES_SSTC_PCT_DEC | Number(6,0) | INTEGER NOT NULL | Social Security Employee Percentage. This field houses the percentage that has to be aplied to a particular base for contibuting to the Social Security. This information is from the Employee perspective. |
44 | GPES_SS_BNF_SUBTYP | Character(4) | VARCHAR2(4) NOT NULL | Bonification/Reduction Subtype |
45 | GPES_SSTC_DISABLTY | Character(1) | VARCHAR2(1) NOT NULL | Disability Type |
46 | GPES_SSTC_RED_PART | Character(1) | VARCHAR2(1) NOT NULL |
Part Time Reduction Type
0=Total Amount 1=Minimum Reduction 2=Medium Reduction 3=Maximum Reduction |
47 | GPES_SSTC_RELSHIP | Character(4) | VARCHAR2(4) NOT NULL |
Labor Relationship
0100=Senior Management 0409=Professional Sportsman 0900=Lawyer in Lawyer Bureau 9909=Research Staff |
48 | GPES_SSTC_CNT_FLG | Character(1) | VARCHAR2(1) NOT NULL |
Original contract flag for contract type 540 corresponding to pre-retired people
D=Contract of Limited duration I=Unlimited Contract |