Generate Triggers PeopleCode for Dependent Beneficiary and Other French Records
Global Payroll for France delivers the DEP_BENEF_FRA record with the standard Generate Triggers PeopleCode attached. This is to enable you to set up iterative, segmentation, and retro triggers for this record and to initiate iterative, segmentation, and retroactive processing in response to changes to benefits data.
The standard Generate Triggers PeopleCode follows this general format:
Declare Function Generate_Triggers PeopleCode FUNCLIB_GP.TRGR_FUNCTIONS Field⇒
Formula;
Local date &L_DT;
/*****************************************************************/
/* Begin: Generate Triggers for Global Payroll */
/*****************************************************************/
Generate_Triggers(RECORD_NAME.EMPLID, &L_DT);
/*****************************************************************/
/* End: Generate Triggers for Global Payroll */
/*****************************************************************/
For example, the Generate Triggers PeopleCode for the DEP_BENEF_FRA record is constructed as follows:
Declare Function Generate_Triggers PeopleCode FUNCLIB_GP.TRGR_FUNCTIONS Field⇒
Formula;
Local date &L_DT;
If %Component = Component.DEPEND_BENEF Then
Generate_Triggers(DEP_BENEF_FRA.EMPLID, &L_DT);
End-If;
Note:
Global Payroll for France does not deliver trigger definitions for the DEP_BENEF_FRA record. The Generate Triggers PeopleCode associated with this record prepares the system to respond correctly to any trigger definitions you create yourself using the Trigger Definitions (GP_TRGR_SETUP) component.
You can add the Generate Triggers PeopleCode to other French-specific records as needed and then set up your trigger definitions using the trigger definition pages in the core Global Payroll application.
Related Topics