Triggers

In Global Payroll, triggers are used to detect online changes to data that should result in some type of system action. Examples of common data changes that might use triggers are the hiring of a new payee, a change in pay rate, or a change in job location.

Three types of triggers exist: iterative, segmentation, and retro triggers.

PeopleSoft Global Payroll for Spain delivers triggers as sample data. Review the delivered triggers and adjust existing triggers, or define your own triggers based on your company's needs.

Iterative Triggers

This table lists some iterative triggers that are delivered with PeopleSoft Global Payroll for Spain as sample data:

Record Trigger Level Fields With Triggers Field Values

CNTRCT_DATA_ESP

Record

Not Applicable

Not Applicable

COMPENSATION

Field

COMPRATE

COMP_FREQUENCY

CURRENCY_CD

FTE_INDICATOR

Not Applicable

GPES_MULT_EMP

Record

Not Applicable

Not Applicable

GPES_PAYEE_DATA

Field

Not Applicable

GPES_TAX_LOCATION

GPES_PP_CONTRIB

Record

Not Applicable

Not Applicable

GPES_PP_EMP

Record

Not Applicable

Not Applicable

GP_ABS_EVENT

Record

Not Applicable

Not Applicable

GP_ABS_OVRD

Record

Not Applicable

Not Applicable

GP_PI_MNL_DATA

Record

Not Applicable

Not Applicable

GP_PI_MNL_SOVR

Record

Not Applicable

Not Applicable

GP_PYE_OVRD

Record

Not Applicable

Not Applicable

GP_PYE_OVR_SOVR

Record

Not Applicable

Not Applicable

JOB

Field

ACTION

HIR -- Hire

REH – Rehire

TER – Termination

JOB

Field

COMPANY

Not Applicable

JOB

Field

EMPL_CTG

Not Applicable

JOB

Field

GP_PAYGROUP

Not Applicable

JOB

Field

PAY_SYSTEM_FLG

Not Applicable

JOB

Field

SOC_SEC_RISK_CODE

Not Applicable

JOB_JR

Field

SSN_EMPLOYER

Not Applicable

WKF_CNT_TYPE

Field

CONTRACT_TYPE

CONTRACT

Segmentation Triggers

This table lists some segmentation triggers that are delivered with PeopleSoft Global Payroll for Spain as sample data:

Record Trigger Level Fields With Trigger Field Values Trigger Event ID

CNTRCT_DATA_ESP

Field

EFF_STATUS

A - Active

RISK_CODE (element segmentation)

GPES_ABS_TRIGR1

Field

PIN_CODE

MATERNIDAD PARCIAL ESP

PATERNIDAD PARCIAL ESP

GUARDA LEGAL ESP

CATEGORZN (element segmentation)

GPES_ABS_TRIGR2

Field

PIN_CODE

MATERNIDAD PARCIAL ESP

PATERNIDAD PARCIAL ESP

GUARDA LEGAL ESP

CATEGORZN (element segmentation)

GPES_PAYEE_DATA

Field

GPES_TAX_LOCATION

Not Applicable

TAX_LOCTN (element segmentation)

GP_PYE_OVRD

Field

PIN_NUM

RETJ ALIM

RETJ CNYG

RETJ JUDCL

RETJ ALIM ND

RETJ CNYG ND

DIETA EXPTR

PRNCTA EXPTR

NOCTURNIDAD

FESTIVIDAD

INCENTIVOS

TOXICIDAD

PRTCPCN BEN

BECA INVESTN (specific trigger event ID)

PREJUBILACN (specific trigger event ID)

DEV SS PREJ (specific trigger event ID)

GASTOS BECA (specific trigger event ID)

See PeopleSoft Global Payroll: Segmentation Triggers with Earning and Deduction Assignments.

COMPRATE (element segmentation)

JOB

Field

ACTION

HIR - Hire

REH - Rehire

TER - Termination

TWP - Termination with pay

HIRE/TERM (period segmentation)

JOB

Field

COMPANY

Not Applicable

COMPANY (period segmentation)

JOB

Field

COMPRATE

Not Applicable

COMPRATE (element segmentation)

JOB

Field

CONTRACT_NUM

Not Applicable

HIRE/TERM (period segmentation)

JOB

Field

EMPL_CTG

Not Applicable

CATEGORZN (element segmentation)

JOB

Field

FULL_PART_TIME

Not Applicable

F/P TIME (period segmentation)

JOB

Field

GP_PAYGROUP

Not Applicable

PAY GROUP (period segmentation)

JOB

Field

PAY_SYSTEM_FLG

Not Applicable

PAY SYSTEM (period segmentation)

JOB

Field

SOC_SEC_RISK_CODE

Not Applicable

RISK CODE (element segmentation)

JOB_JR

Field

SSN_EMPLOYER

Not Applicable

CATEGORZN (element segmentation)

WKF_CNT_TYPE

Field

CONTRACT_TYPE

Not Applicable

CATEGORZN (element segmentation)

Retroactivity Triggers

This table lists some retroactivity triggers that PeopleSoft Global Payroll for Spain delivers as sample data:

Record Trigger Level Fields With Trigger Field Values Trigger Event ID

CNTRCT_DATA_ESP

Record

Not Applicable

Not Applicable

CONTRACT

COMPENSATION

Field

COMPRATE

COMP_FREQUENCY

CURRENCY_CD

FTE_INDICATOR

Not Applicable

COMPENSATION

GP_ABS_EVENT

Record

Not Applicable

Not Applicable

ABSENCES

GP_ABS_OVRD

Record

Not Applicable

Not Applicable

ABSENCES

GP_PI_MNL_DATA

Record

Not Applicable

Not Applicable

PI

GP_PI_MNL_SOVR

Record

Not Applicable

Not Applicable

PI

GP_PYE_OVRD

Record

Not Applicable

Not Applicable

OVERRIDE

GP_PYE_OVR_SOVR

Record

Not Applicable

Not Applicable

OVERRIDE

JOB

Field

ACTION

HIR – Hire

REH – Rehire

TER – Termination

See Termination Payment Calculation.

JOB DATA

JOB

Field

COMPANY

EMPL_CTG

GP_PAYGROUP

Not Applicable

JOB DATA

JOB

Field

Not Applicable

Not Applicable

JOB DATA

JOB

Field

PAY_SYSTEM_FLG

SOC_SEC_RISK_CODE

Not Applicable

RETRO

JOB_JR

Field

SSN_EMPLOYER

Not Applicable

JOB DATA

Segmentation Triggers with Earning and Deduction Assignments

In Global Payroll you can define segmentation triggers only for effective-dated records, with one exception: you can define segmentation triggers for the begin and end dated earning and deduction assignment record GP_PYE_OVRD. This exception enables you to assign an earning or deduction to a payee on the Element Assignment by Payee (GP_ED_PYE) or Payee Assignment by Element (GP_ED_ELEM) components, and to segment (and prorate) the element when the assignment begin date comes after the pay period begin date, the assignment end date comes before the period end date, or both.

PeopleSoft Global Payroll for Spain has set up the following earnings so that the system automatically segments and prorates them (using the proration factor defined on the earning definition pages) when the assignment period covers only a portion of the pay period:

Element Name Type Description

RETJ ALIM

Deduction

Children Support Garnishment

RETJ CNYG

Deduction

Spouse Support Garnishment

RETJ JUDCL

Deduction

Garnishment

RETJ ALIM ND

Deduction

Not Deduced Child Garnishment

RETJ CNYG ND

Deduction

Not Deduced Spouse Garnishment

DIETA EXPTR

Earning

Maintenance Expatriates

PRNCTA EXPTR

Earning

Overnight Stay Expatriates

NOCTURNIDAD

Earning

Nighttime Complement

FESTIVIDAD

Earning

Festivity Complement

INCENTIVOS

Earning

Incentives

TOXICIDAD

Earning

Toxicity/Hazardous Complement

PRTCPCN BEN

Earning

Profit Participations Complement

BECA INVESTN

Earning

Scholarship Holder

PREJUBILACN

Earning

Preretired Income

DEV SS PREJ

Earning

Social Security Paid by Employee

GASTOS BECA

Earning

Scholarship Holder Expenses

If you want to set up additional earnings and deductions to trigger segmentation and proration when they are assigned to payees and the assignment period covers only a portion of the pay period, access the Trigger Definitions component (GP_TRGR_SETUP) and add these elements to the segmentation trigger definition for the GP_PYE_OVRD record.

In the case of deductions or nonbasic earnings, you also need to specify formula GEN FM SEGMNTCN as a post-process formula and specify the proration to use. PeopleSoft Global Payroll for Spain delivers GEN PO DIAS SLICE that you can use or modify, or you can create a new formula to fit your requirements.