[{TableOfContents }]
!!!CANADIAN T4 PROCESS

This process allows organizations to report to the Canadian government, from the employees' YTD information, according to the government defined requirements and to generate the Magnetic Media files for this reporting.

!!T4
Employers’ Guide – Filing the T4 Slip and Summary \\
 [https://www.canada.ca/en/revenue-agency/services/forms-publications/publications/rc4120.html] 
\\ \\
!T4 Form

For the current year reporting, the T4 Form Layout is used and can be found at: \\
 [https://www.canada.ca/en/revenue-agency/services/forms-publications/forms/t4.html]\\
 [https://www.canada.ca/en/revenue-agency/services/forms-publications/publications/rc4120/employers-guide-filing-t4-slip-summary.html]
\\ \\
!T4 Government XML File
The current year Government XML File layout is used.\\
[https://www.canada.ca/en/revenue-agency/services/e-services/filing-information-returns-electronically-t4-t5-other-types-returns-overview/filing-information-returns-electronically-t4-t5-other-types-returns-what-you-should-know-before.html#xmlspcs]

Please download CRA XML Schema from: \\
[https://www.canada.ca/en/revenue-agency/services/e-services/filing-information-returns-electronically-t4-t5-other-types-returns-overview/filing-information-returns-electronically-t4-t5-other-types-returns-file.html#stp2]
\\

The IDIF form is configured for the Current Year xml schema format.
\\ \\
__UPPHT Function__\\
The UPPHT Pay History Totals Interface - Canada T4 Footnotes Processing has
been created to support the COVID-19 Code 57, 58, 59, 60 reporting.
\\ \\
__IDFDV Form__\\
IDFD and IDFDV new form definition HL$CAN-T4-YYYY
\\ \\
!!T4A
Employers’ Guide – Filing the T4A Slip and Summary \\
 [https://www.canada.ca/en/revenue-agency/services/forms-publications/forms/t4a.html] 
\\ \\
!T4A Form

For the current year reporting, the T4A Form Layout is used. \\
 [https://www.canada.ca/en/revenue-agency/services/forms-publications/forms/t4a.html]

!T4A Government XML File
There are no changes for the 2020 T4A Government XML File layout \\

Please download CRA XML Schema from: \\
[https://www.canada.ca/en/revenue-agency/services/e-services/filing-information-returns-electronically-t4-t5-other-types-returns-overview/filing-information-returns-electronically-t4-t5-other-types-returns-file.html#stp2]

\\ \\
The IDIF form is configured for the Current Year xml schema format.

__IDFDV Form__\\IDFD and IDFDV new form definition HL$CAN-T4A-YYYY

!!Government Reporting Procedures
The following steps outline the sequence to produce the Government Reports and Files, and to print the Forms:
\\
__IPPC__\\
* Set up new Pay Components with PC Usages 5700, 5701, 5702, 5703, 5704, 5705 to be used for T4 Codes 57, 58, 59 and 60 reporting (new for 2020 reporting)\\
\\
__UPPHT__\\
* Produce the Pay History for the new Pay Components in IPVT
* Creates a csv file for reconciliation and balancing of the new Pay Component amounts
* Generates IDCL records for CAN_T4_2020, CAN_T4_2020_SUMMARY and CAN_T4_2020_YEARLY
\\
__RPREGT__\\
* Produce YTD Register
* For the 'Provide Totals By' parameter, select 'Fed Regist Number' \\ \\

__IDFD__
* Set up the Form Code and Government File Definitions
* This form defines the default values for users to enter on the IDFDV form
* The information on this form is provided by High Line with the Year End software \\ \\

__IDFDV__
* Set up the Form and File Definition with your user information \\ \\

__RDFD__
* Print the Form and File Definition from the IDFD and IDFDV forms \\ \\

__IDIF__
* High Line supplied government Magnetic Media file layout
* The information on this form is provided by High Line using a script.  
* Users only need to execute the script to load the most current information. \\ \\

__RDIF__
* Print the government Magnetic Media file layout from the [IDIF] form \\ \\

__RPYEC__
* Stands for 'Report Payroll Year End Canada'				
* Extracts information from the YTD information according to the Form Code on IDFDV
* Produces the Summary Total Report by government registration or by employee detail
* When RPYEC is run, the 'Process Remittance' field should be set to Yes
* Users must verify the Summary Total balances to the YTD Register report
* Check the exception messages from the Summary Report and correct any exceptions
* Stores results by GVT Run Number for each employee in the Government Reporting tables \\ \\

__IPGR__
* View data by GVT Run Number after the RPYEC process is run \\ \\

__IPGH__
* View data by GVT Header after the RPYEC process is run for an employee
* Users can change the Print Stage to request a 'Duplicate' or 'Amended Copy' \\ \\

__RPGRC__
* Stands for 'Report Payroll Government Reporting Canada'
* Reads the Government Reporting table information generated by the RPYEC process
* Produces the Summary Total Report by government registration, or by detail employee, for the defined Form Code on IDFDV
* Produces the government Magnetic Media File to be submitted to the government
* Users must verify the Summary Total balances to the RPYEC/RPREGT reports
* Check the exception messages from the Summary Report and correct any exceptions 
* Generates the High Line XML file to feed into the Form Print Programs RPT4W, RPT4A, RPT4AW, RPRL1W etc. to print the T4, T4A and Releve Forms by employee

__Form Print__
* RPT4W, RPT4AW, RPT4AW, RPRL1W, etc. to print government forms for the employee
* Reads the XML file generated from the RPGRC process to print on Government Forms
* Prints the Employee or Employer Copy on the Government forms
* Generates grand totals for the RMEX report to balance to the RPGRC grand totals\\ \\

__RMEX__
* Reads the Execution Run Log from the Form Print programs RPT4W, RPT4AW, RPRL1W etc.
* Prints grand totals to balance to the RPGRC grand totals\\ \\

__UPGRUNDO__
* Users can undo by GVT Run number by employee
* To undo an erroneous GVT Run due to set up issues or to remove archived GVT information


!!IDFD Form Definition
!IDFD - Form Code HL$CAN-T4-YYYY 
(YYYY is the current reporting year) \\ \\
The IDFD form provides on-line help and updates to the definition of T4s.  This form defines the default values for users to enter on the IDFDV form. \\

High Line provides seed data scripts to our customers with the Year End software release to load in the IDFD Form Code SEED_IDFD_HL$CAN_T4_YYYY.sql.

* It is not necessary to maintain this form, unless instructed to do so by High Line.
* This seed data script is re-runnable.  It will not erase the IDFDV set up of the same Form Code.


!IDFDV - Copy Last Year's Definition to Current Year
After the HL$CAN-T4-YYYY information has been loaded, users can copy the 'IDFDV Variable' definition from last year to the current year by using the "Copy" button on the IDFDV form as follows:
# Select last year's Form Code
# Press the "Copy Form Definition" button
# The Copying dialog box is displayed.  Enter the current year Form Code
# Set the "Copy Definition with Variables" toggle to ON.  This will copy the variables set up from the previous year to the current year for the same Field Identifier name. \\ \\

!T4 Form Definition Variables
The Variable Definition (IDFDV) form is used to enter the variable data needed to complete the printing of T4's, for both the printed T4s and the Magnetic Media files.  On this form, users define where, in their particular set up, each required field of data will be retrieved from. \\ \\

Example: Users can reference pay components, elements, database items, etc.  For more information regarding the possible sources, refer the Field Descriptions table below. \\ 

Users should only work with the 'Field Source' and 'Field Variable' columns.  The Derivation Expression field can be used by __advanced__ users or under the guidance of a High Line consultant.  \\

Please refer to Revenue Canada for a clearer and more in depth description of the appropriate method to complete your forms.  Users should read the following Form Descriptions and refer to the 'Employer's Guide - Filing T4 Slip and Summary 2018 (RC4120)' prior to setting up IDFDV form.  \\ [https://www.canada.ca/content/dam/cra-arc/formspubs/pub/rc4157/rc4157-19e.pdf] \\

!IDFDV Field Descriptions
||Field||Desciption
|Identifer|This value defaults in from the IDFD form and shows the relevant box on the T4 form or stored on the file.
|Seq #|Defines the sequence number of the Identifier
|Description|This value defaults in from the IDFD form and displays the corresponding T4 Form Box description form or stored on the file.
|Level|Defaults in from the IDFD form, displays the Level (Federal, State, Employer, etc.) that is being reported on for forms/media file.
|O/R Prompt|Displays the user-defined text (prompt) to print on the Summary Reports. These user-defined terms are __not all__ used on the T4 __forms__ but are __all__ used on the summary __reports__.
|Source|Defines the source of the variable data to report on the T4 from.  The Source defines the Field Variables that will be available. Options are: \\* Constant: Input a character string, such as the company name. Manual data entry \\* Database column: Choose from a list of Data Base fields available \\* Statistic:  Choose from a list of Statistics from IDSC \\* Pay Component: Choose from a list of Pay Components from IPPC \\* Element: Choose from a list of Elements from IPPE \\* IDGV Variable: Choose from a list of User Defined fields defined for the Government Registration (IDGV) form
|Field Variable|Defines the relevant value for the record from the LOV previously defined in the Source field.
|Field Usage|This value defaults in from the IDFD form and defines where this record will be used.  Options are:  Form only, File only or Form and File.
|Text|Defaults in from the IDFD form, help/explanation text for the field.
|Derivation Expression|Used to format the information so that it is presented as required. \\Example:  Users can show all of the information in upper case.  This is where a string formula would be defined.


!IDFDV T4 Form Code Identifiers

IDFD FORM: HL$CAN-T4-YYYY - supplied by system
IDFD FORM TYPE: CDN T4 Definition - defines the T4 definition is used
 

[{InsertPage page='IDFDV_Form_Definitions_CDN T4'}]

!Report T4 Form Definitions Variables - RDFD
Generates a list of the T4 Form and File Definitions defined on the IDFDV form.

!Special Notes for T4 Boxes
__Exclude EEs__\\
Users can exclude certain employees from T4 reporting by setting up the EXCLUDE-EE Identifier on the IDFDV form. \\ \\
If the value of the EXCLUDE-EE Identifier is set to Yes, the employee is by-passed. \\
Example:  If a user does not want to report employees whose assignment title is "Election Worker" or "Self Employed", then:\\
For the EXCLUDE-EE Identifier, set up the following:
* Field variable = EASD.ASSIGNMENT_TITLE
* Derivation Expression = decode(~,'Election Worker','Y','Self Employed','Y','N') \\ \\

__NOTE__: Use UPPER(~) to convert an alphanumeric field to compare all upper case letters.\\ \\

If a user has a complex situation to exclude an employee, a STAT CODE can be used to indicate the employee should be excluded. \\

Example:  An employee is excluded when they work in certain groups, or with certain hours.  Users can keep track of this by setting the STAT CODE value to 1.00.  \\
Then on IDFDV, set up the following for the EXCLUDE-EE Identifier:
* Field Source = Statistics
* Field variable = the STAT CODE that is used to exclude employees
* Derivation Expression = decode(~,1,'Y','N')
\\

!Primary and Mailing Addresses
[Employer Address|]\\
If a user wants to use the Employer Primary Address, the user does not need to set up the 1220 - 1270 Identifiers.  Leave these Identifiers blank and the system will use the Primary Address as the default. 

If a user wants to use the Employer Mailing Address, the user needs to define the following Identifiers:
||Seq #||Field Identifier||Description||Field Variable
|1220|T4-ER-ADDR1|Employee Address Line 1|MAIL
|1230|T4-ER-ADDR2|Employee Address Line 2|Blank
|1240|T4-ER-ADDR3|Employee City|Blank 
|1250|T4-ER-ADDR4|Employee Province|Blank or constant NAME
|1260|T4-ER-ADDR5|Employee Country|Blank or constant NAME
|1270|T4-ER-POSTAL|Employee Postal Code|BLANK
|1280|T4-ER-MAG-PROV|Employee Prov for Mag File|Blank
|1290|T4-ER-MAG-CNTRY|Employee Country for Mag File|Blank

* The Reference Text field will guide the setup of each Address Identifier.  
* If the Employer mailing address is not defined on the IDLN form or the Location field on the IDEN form, the IDLN primary address will be used.
* If an Address was set up and if the word MAIL is defined, the mailing address will be used, otherwise the primary address will be used.
* If the Country Code is not Canada or USA, then the T4-ER-MAG-PROV Identifier should be set to ZZ - Other. \\

[Employee Address|]\\
If a user wants to use the Employee Primary Address, the user does not need to set up the 2100 - 2170 Identifiers.  Leave these Identifiers blank and the system will use the Primary Address as the default.

If a user wants to use the Employee Mailing Address, the user needs to set up the following Identifiers:
||Seq #||Field Identifier||Description||Field Variable
|2100|T4-EE-ADDR1|Employee Address Line 1|MAIL
|2110|T4-EE-ADDR2|Employee Address Line 2|Blank
|2120|T4-EE-ADDR3|Employee City|Blank 
|2130|T4-EE-ADDR4|Employee Province|Blank or constant NAME
|2140|T4-EE-ADDR5|Employee Country|Blank or constant NAME
|2150|T4-EE-POSTAL|Employee Postal Code|BLANK
|2160|T4-EE-MAG-PROV|Employee Prov for Mag File|Blank
|2170|T4-EE-MAG-CNTRY|Employee Country for Mag File|Blank

* The Reference Text field will guide the user for the setup of each Address Identifier.  
* If the Employee mailing address is not defined on the IEPI form, the IEPI primary address will be used.
* If an Address was set up and if the word MAIL is defined, the mailing address will be used, otherwise the primary address will be used.
* If the Country Code is not Canada or USA, then the T4-EE-MAG-PROV Identifier should be set to ZZ - Other.

!!T4 Processing
* Users can print a specific Province, or all Provinces.  If all Provinces are to be printed, the Print Program will print a T4 form for each province that an employee has worked in.

* If an employee is paid by multiple government registrations, then multiple T4 slips are produced, by government registration number, for the employee.

* T4 slips are printed in alphabetical order by the employee's Surname, First Name, within a government registration number.

* The font size for printing T4 slips is the standard 10 or 12 character per inch font, character mode.

* Negative (credit) amounts are never allowed for T4 reporting.  If negative amounts are encountered, an exception message is printed and users must resolve the negative amount(s) and re-run the process.

* If there is no amount to be printed in a Box on the T4 form, the Box is left as BLANK.  A zero amount or 'NIL' is __NOT__ allowed.

* Users can sort inactive and active employees separately for mailing purposes.
** If the Employment Status is A (Active) then the employee is considered active, otherwise the employee is considered inactive.

* The T4 slip has an "Other Information" area to report up to 6 footnote codes and amounts for each form.

*If there are more than 6 footnote codes to be reported, then subsequent T4 slips are generated until all footnote codes have been printed.
** Each subsequent T4 slip must report $1.00 in Employment Income Box 14 in order for Canada Customs and Revenue Agency (CCRA) to process the additional T4 slip.  If all numeric boxes are zero, the T4 slip will be bypassed.
** If additional T4 slips are reported with $1.00 in Box 14, then the previous T4 slip is reduced by $1.00 in Box 14.

* If an employee works in more than one province, then one T4 slip is produced for each province for the employee.  The "Other Information" area T4 slips are also generated by Province.

* The T4 Magnetic Media File also includes the subsequent T4 record(s) with the Other Information area in the same manner as the T4 slip.  Consequently, an employee can have multiple "110" code records.  The Box 14 reporting for the additional code "110" records will also contain $1.00.

* The alphanumeric fields are left justified with no space between each character, such as JOHN DOE, not J O H N   D O E.

* The numeric fields are lined up with the decimal.

* T4 grand totals are generated for all T4 forms as Execution Run Log Exception Messages to balance to the RPYEC Summary report

*Users __MUST__ run the RMEX report with the RPT4W run Mex ID to print the T4 grand totals to verify all records are printed.

!!Generate GVT Run for T4
[{InsertPage page='RPYEC'}]

[{InsertPage page='RPGRC'}]


!!Form Print Selection Criteria

!T4 Printing and Balancing
The RPT4W and RPT4AW programs generate the form boxes, as well as the instructions on the reverse side.  __Pre-printed forms are not required.__\\

Once the year-to-date information is correct, run the RPT4W report to print the T4 Forms.

* This function generates and prints the T4 forms, as well as the T4 Media file, based on the parameter selections
* Users should write down the Execution ID of the RPT4W run and run RMEX to obtain the grand total report for the T4s printed by RPT4W

The PDF file is generated in the working directory of your P2K path. \\ \\
Write down the Execution ID of the T4 Print Program report and run RMEX to obtain a grand total report.


!RPT4W Report Parameters 
||Field||Description
|Print T4 Copy|Defines if the Employer or Employee copy will be printed.  Options are: \\*01: Employer Copy.  Prints 2 employees on one page.  Use as the Employer Copy to send to government or keep for reference. \\*02: Employee Copy.  Prints 1 employee 2 times on 1 page. Use as the Employee Copy to distribute to the employees  
|Duplicate/Amended|Optional.  Defines the text to print on the T4 form to indicate if it is a 'Duplicate' or an 'Amended' copy. 
|Include Back Information|When set to YES, the report will print the information from the back of the T4. 
|Trial Print only|Defines if the Print Stage field on the IPGH form will be updated when the T4s are printed.  \\When set to Yes, the field will not be updated. \\When set to No, the Print Stage will be changed to Forms Printed. \\Optional. 
|Exception Level|Defines the level of detail on the exception report.  Users should always run with 'Exception Only' unless for needed for tracing
 

!RPT4W Report Filters
||Field||Description
|GVT Run|Mandatory.  Defines the GVT Run number to extract data from and produce the T4 form.
|Person|Optional.  Person code of the employee being tested with.  If a Person Code is not defined, all the employees in the xml file will be printed.
|People List|Optional. A people list may be used to indicate specific employees that are to be processed.
|Status Type|Optional. Allows organizations to print forms for a defined Status Type.  Options are: \\* Active \\* Cobra \\* Inactive \\* Leave \\*Pending \\*Retired \\*Survivor \\* Terminated \\*Unpaid Leave 

__Execution Report__
* Produces the grand total report from RPT4W by running RMEX for the execution ID of T4 run.
* Enter the Execution ID of the RPT4W run to generate a grand total report and balance to the RPYEC report.

!!Processing

!RPT4W Form Print Processing
The RPT4W and RPT4AW programs generate the form boxes, as well as the instructions on the reverse side.  __Pre-printed forms are not required.__ \\

The RPT4W Program Print Format is based on the Government published T4 (19) Form.     \\ \\

* The RPT4W Form Print program prints all information retrieved from the RPYEC GVT Run Number.
* If an employee has multiple footnote codes to be reported, each T4 Form is printed with 6 footnote codes until all footnote codes are printed. 
* If there are more than 6 footnote codes to be printed, then subsequent T4 slips are produced until all footnote codes have been printed.
* The RPT4W program generates Summary Totals, by each Business Number, at the end of the RPT4W run.  A grand total is generated for all Business Numbers of the run.
* Users must run RMEX with the RPT4W Mex ID to obtain the summary and grand totals for the T4s printed using the RPT4W.
* The RPT4W summary and grand totals are accumulated for the Boxes shown on the T4 Form.  The footnote codes are not totaled.

!Form Printing
When printing T4 forms, users are required to print the Employer Copy and Employee Copy of the T4s.  

* When RPT4W is run, the "Print T4 Copy" parameter defines if the Employer or the Employee Copy should be printed.
* Users must run RPT4W twice; once to print the Employer Copy, and once to print the Employee Copy
* Employer Copy:	
** On one sheet, the T4 information is printed for two separate employees.
** The Box 54 Business Number is printed.
** The Employer Copy is sent to the government or is kept by your organization.

* Employee Copy:	
** On one sheet, two copies of the T4 is printed for one employee.
** The Box 54 Business Number is NOT printed.
** The Employee Copy is distributed to the employees

!Duplicate Copies

If an employee loses their T4 Form, organizations can issue a duplicate copy of the T4 form.   

To issue Duplicate Copies:\\
1. Go to the IPGH form for the employee and highlight the form to be duplicated.
* Change the Print Stage to 'Duplicate requested'.
* Click Save
* Repeat for all employees who have requested duplicate copies.

2. Run RPGRC with the "GVT Form Option" set to "Duplicate forms" and the "Trial Print Only" set to Yes 
* RPGRC retrieves all GVT Headers with the Print Stage of 'Duplicate Requested' and generates the HL xml file for the Form Print RPT4W, RPT4AW, RPRL1W programs
* There is no need to generate a government xml file for duplicate forms.  
* Users do not need to enter the 'Govt Interface Format' field for RPGRC
* Set the 'Trial Print Only' field to YES for RPGRC

3. Run RPT4W to print the duplicate forms
* Run the Form Print RPT4W programs to read the RPYEC GVT Run Number to print duplicate forms
* At the end of the Form Print, if the 'Trial Print Only' field is set to No, the GVT Header stage will be updated to 'Duplicate Printed'
* Users can re-run the Form Print program for the Employee or the Employer Copy from the same GVT Run Number.  The GVT Header stage will be updated to 'Duplicate Printed' depending on the 'Trial Print Only' field setting.

!Amended Copies

If a user discovers erroneous box information on the T4 form and needs to revise the Box information, users should either correct the employee amounts or modify the IDFDV set up and then re-run the RPYEC, RPGRC and RPT4W processes.  This produces the Amended T4 form. 
 
To issue Amended copies:\\

1. Update the employee's YTD information through payroll.
2. Check the IDFDV set up and revise the box information, if necessary
3. Go to the IPGH form for the employee.  Locate the form to be amended
* Change the Print Stage to Amendment Requested
* Save
*	Repeat this for all employees who requested Amended copies of their forms.
*	Run RPYEC with the GVT Form Option set to Amended Forms
*	Do not set the Trial Print Only toggle to YES, for the RPYEC process
*	Users can set the Retain Amend/Reject Form to YES, to retain the original copy prior to generating the amendment.
*	The RPYEC process will retrieve all GVT Headers with the Print Stage set to Amendment Requested and re-derives the YTD according to the IDFDV setup to generate the GVT Header with:
**	Print Stage = Amend, Form not Printed
** File Stage = Amend, File not Created

4. Run RPGRC with the GVT Form Option set to Amended Forms
*	Do not set the Trial Print Only toggle to YES, for the RPGRC process
*	The RPGRC process will retrieve all GVT Headers with the Print Stage set to Amend, File not Created.
*	Users should enter the Govt Interface Format definition for the RPGRC to generate the amended government xml file.
*	At the end of the RPGRC, the GVT Headers is updated with:
**	Print Stage = No Change, Existing Value
**	File Stage = Amend File Created

5. Run RPT4W to print the Amended forms.
*	When the user is running RPT4W with the new GVT Run Number, RPT4/RPT4W will automatically print the word DUPLICATE COPY or AMENDED on the T4 form, depending on the GVT Run option of the RPGRC run.
*	If other wording is required to print on the T4 form, in the Duplicate/Amended parameter, users can enter the text for RPT4W, such as CANCEL COPY or ORIGINAL COPY.
*	At the end of the RPT4W run in non-trial mode, the GVT Header Stage will be updated with either the DUPLICATE or AMENDED stage.

!!UPGRUNDO - Undo GVT Run
The UPGRUNDO process allows users to undo a GVT Run number by employee.  This process should be used to undo an erroneous GVT Run due to set up issues or to remove any archived GVT information.

!UPGRUNDO Selection Criteria
||Field||Description
|GVT Run Number|Mandatory.  Users must enter at least one GVT Run Number
|Person Code|Enter one or more Person Codes.  The selected Person codes within the GVT Run Numbers are processed.  Optional.
|Trace Level|Users should always run this process with this field set to Exceptions Only unless required for tracing purposes.
|Trial|When set to ON, allows users to review the report for verification prior to running the undo process.  \\In non-trial mode, UPGRUNDO removes GVT Headers and GVT Run for the qualified GVT Run.\\Optional.


!!T4 Slip Print Distribution

On the T4 Form, the last line in the Address Box is used to print the user defined distribution information for users to dsitribute the T4 forms to the employees.  
Users must set up the following identifiers:\\

||Field Identifier||Field Variable||Suggested Field Variable
|T4-EE-DISTR|Constant|Blank or 1|
|T4-EE-DESTIN|Constant|Blank or 1|
|T4-EE-DISTR1|  |DED.ENTITY_CODE
|T4-EE-DISTR2|  |EID.PERSON_CODE

If T4-EE-DISTR = 1 (not null), the distribution will be printed below the employee address for distribution purposes, and the distribution will be visible outside the window envelope.  
Otherwise, the distribution will not be printed.

If T4-EE-DESTIN = 1, the employee's pay destination will be printed along with T4-EE-DISTR1 and T4-EE-DISTR2 fields.

Therefore, the logic for printing the distribution on the T4 form is:\\
If T4-EE-DISTR = 1, the distribution information is printed from:
*The employee's pay destination T4-EE-DESTIN, if defined, such as Department or Pay destination
*Concatenates with the values from T4-EE-DISTR1 and T4-EE-DISTR2

!!T4 Statement of Remuneration

!Box Descriptions
Users should read the following Form Descriptions and refer to "Employers' Guide - Filing the T4 Slips and Summary Forms"  RC4120(E) Rev. 19" prior to setting up the IDFDV form.

__Box - Year__\\From user defined Calendar Year YYYY \\ \\

__Box - Employer's Name and Address__\\
Derived from the IDFDV form
||Seq #||Field Identifier||Description||Field Variable
|1220|T4-ER-ADDR1|Employer Address Line 1|MAIL
|1230|T4-ER-ADDR2|Employer Address Line 2|Blank
|1240|T4-ER-ADDR3|Employer City|Blank
|1250|T4-ER-ADDR4|Employer Province|Blank or NAME
|1260|T4-ER-ADDR5|Employer Country|Blank or NAME
|1270|T4-ER-POSTAL|Employer Postal Code	|Blank 
|1280|T4-ER-MAG-PROV|Employer Prov for Mag File|Blank
|1290|T4-ER-MAG-CNTRY|Employer Country for Mag File|Blank

*The IDFDV Reference Text field will guide the user to set up each Address Identifier.\\ 
*If the Employer mailing address is not defined on IDLN or IDEN location, the primary address on IDLN will be used.\\
*If there was an Address set up prior to 2006, and the word 'MAIL' is defined, the mailing address will be used, otherwise the primary address will be used.
*If the Country Code is not Canada or USA, the 1280 T4-EE-MAG-PROV Identifier should be set to 'ZZ-Other'. \\ \\

__Box 54 - Business Number__\\
The Business Number is derived automatically according to employee's YTD federal government registration number from IDGV or the employee's Group IDGR form.  When users are printing the 'Employee Copy', Box 54 is not printed. \\ \\

__Box 10 - Province of Employment__	\\
The Province of Employment is derived automatically according to employee's YTD information \\ \\

__Box 12 - Employee's Social Insurance Number__\\
Derived from the IDFDV form
||Seq #||Field Identifier||Suggested Field Variable
|2200 |T4-BOX-SIN|EID.GOVERNMENT_CODE
* Invalid SIN numbers are reported on the RPYEC exception report
* SIN numbers defined as 999999999 are invalid
* If a SIN number does not exist, leave this field blank. \\ \\

__Box - Employee's name__ \\
Derived from the IDFDV form
||Seq #||Field Identifier||Suggested Field Variable
|2000 |T4-EE-NAME1|EID.LAST_NAME
|2030 |T4-EE-NAME2|EID.FIRST_NAME
|2040 |T4-EE-NAME3|EID.MIDDLE_NAME \\ \\

__Box - Employee's address__\\
Derived from the IDFDV form
||Seq #||Field Identifier||Description||Field Variable
|2100|T4-EE-ADDR1|Employee Address Line 1|Blank or MAIL
|2110|T4-EE-ADDR2|Employee Address Line 2|Blank
|2120|T4-EE-ADDR3|Employee City	|Blank
|2130|T4-EE-ADDR4|Employee Province|Blank or NAME
|2140|T4-EE-ADDR5|Employee Country|Blank or NAME
|2150|T4-EE-POSTAL|Employee Postal Code	|Blank 
|2160|T4-EE-MAG-PROV|Employee Prov for Mag File|Blank
|2170|T4-EE-MAG-CNTRY|Employee Country for Mag File|Blank \\ \\

*The IDFDV Reference Text field will guide the user to set up each Address Identifier.
*If the mailing address for the employee is not defined on IEPI, the primary address on IEPI will be used
*If there was an Address set up prior to 2006, and the word 'MAIL' is defined, the mailing address will be used, otherwise the primary address will be used.
*If the Country Code is not Canada or USA, the 2160 T4-EE-MAG-PROV Identifier should be set to 'ZZ-Other'. \\ \\

__Box - Last line of Employee Address__\\
Derived from the IDFDV form
The last line in the Address Box is used to print the user defined distribution information for users to distribute the T4 forms to employees.
||Seq #||Field Identifier||Field Variable||Suggested Field Variable
|2210 |T4-EE-DISTR|Constant|Blank or 1
|2215 |T4-EE-DESTIN|Constant|Blank or 1
|2220 |T4-EE-DISTR1|  |DED.ENTITY_CODE
|2230 |T4-EE-DISTR2|  |EID.PERSON_CODE
* If T4-EE-DISTR value = 1 (not null), the distribution will be printed below the employee address and the distribution is visible outside the window envelope.
*Otherwise, the distribution will not be printed.

*If T4-EE-DESTIN value = 1, then the employee's pay destination is printed along with T4-EE-DISTR1 and T4-EE-DISTR2.

Therefore, the logic for printing the distribution on the T4 form is:\\
If T4-EE-DISTR = 1, the distribution information is printed from:
*The employee's pay destination T4-EE-DESTIN, if defined, such as Department or Pay destination
*Concatenates with the values from T4-EE-DISTR1 and T4-EE-DISTR2 \\ \\

__Box 14 - Employment Income__\\
Derived from the IDFDV form
||Seq #||Field Identifier||Suggested Field Variable 
|3000 |T4-BOX-14|T4-BOX-14
This is the taxable earnings applicable for federal income tax withheld \\ \\

__Box 16 - Employee's CPP Contributions__\\
Derived from the IDFDV form
||Seq #||Field Identifier||Suggested Field Variable
|3010 |T4-BOX-16|T4-BOX-16
*Leave Box 16 and 17 blank if the employee did not contribute to either CPP or QPP during the year
*The Employer portion of CPP contribution is also retrieved from the IDFDV form, Field Identifier T4-BOX-16-ER
*The CPP Employer contribution is not printed on the T4 form for each employee.  It is accumulated into the Total CPP Employer contribution amount and will be reported on the government Magnetic Media T4 Summary Record file \\
\\ 

__Box 17 - Employee's QPP contributions__\\
Derived from the IDFDV form 
||Seq #||Field Identifier||Suggested Field Variable 
|3030 |T4-BOX-17|T4-BOX-17
*Leave Box 16 and 17 blank if the employee did not contribute to either CPP or QPP \\
*The Employer portion of QPP contribution is also retrieved from the IDFDV form, Field Identifier T4-BOX-16-ER
*The QPP Employer contribution is not printed on the T4 form for each employee.  It is accumulated into the Total CPP Employer contribution amount and will be reported on the government Magnetic Media Releve 1 file \\
\\ 

__Box 18 - Employee's EI Premiums__\\
Derived from the IDFDV form 
||Seq #||Field Identifier||Suggested Field Variable (Element)
|3040 |T4-BOX-18|T4-BOX-18
*The Employer portion of the EI contribution is also retrieved from the IDFDV form, Field Identifier T4-BOX-18-ER
*The EI Employer contribution is not printed on the T4 form for each employee.  It is accumulated into the Total EI Employer contribution amount and will be reported on the government Magnetic Media file T4 Summary Record \\
\\ 

__Box 20 - RPP Contributions__\\
Derived from the IDFDV form 
||Seq #||Field Identifier||Suggested Field Variable (Element)
|3060 |T4-BOX-20|T4-BOX-20 \\ \\

__Box 22 - Income Tax Deducted__\\
Derived from the IDFDV form
||Seq #||Field Identifier||Suggested Field Variable (Element)
|3070 |T4-BOX-22|T4-BOX-22 \\ \\

__Box 24 - EI Insurable Earnings__\\
Derived from the IDFDV form
||Seq #||Field Identifier||Suggested Field Variable (Element)
|3080 |T4-BOX-24|T4-BOX-24
*This box will be blank under one of the following conditions:
# There are no insurable earnings.  Example: If Box 24 = 0, then Box 24 = blank.
# Insurable earnings are the same as the employment income in Box 14.  Example: If Box 24 = Box 14, then Box 24 = blank.
# Insurable earnings are over the EI maximum earnings for the year, from IPCT, Tax Rate Code '011001', EI Annual Maximum Earnings.  
Example: If Box 24 >= EI maximum earnings, then Box 24 = Blank.

*The derived EI Insurable Earnings are printed according to the IDFDV form set up on RPYEC Summary report.
*The EI Insurable Earnings that are printed on the T4 Form and reported on the Magnetic Media file will be printed on the RPYEC Summary report under the T4-BOX-24-PRT Identifier.  
Users should verify the reported EI Insurable Earnings are correct according to the government specifications. \\ \\

__Box 26 - CPP/QPP Pensionable Earnings__\\
For all provinces except Quebec:
||Seq #||Field Identifier||Suggested Field Variable (Element)
|3090 |T4-BOX-26-CPP|T4-BOX-26-CPP \\ \\
For Quebec only:
||Seq #||Field Identifier||Suggested Field Variable (Element)
|3100 |T4-BOX-26-QPP|T4-BOX-26-QPP \\ \\
For all provinces and Quebec:
||Seq #||Field Identifier||Suggested Field Variable (Element)
|3110 |T4-BOX-26-EXCEPT|T4-BOX-26-EXCEPT 
|3120 |T4-BOX-26-OTHER|T4-BOX-26-OTHER

*The T4-BOX-26-EXCEPT entry should define the remuneration that are taxable, but not pensionable such as:
**Remuneration paid to an employee while the employee worked in excluded employment, not subject to CPP/QPP
**Amount paid for clergy member's residence from which CPP/QPP is not deducted
**Remuneration paid to Status Indian on reserve where no CPP/QPP is deducted

*The T4-BOX-26-OTHER entry should define the remuneration that are pensionable but not taxable.

*Box 26 will be blank under one of the following conditions:
**There are no pensionable earnings.  Example: if Box 26 = 0, then Box 26 = Blank
**Pensionable earnings are the same as the employment income in Box 14.  Example: if Box 26 = Box 14, then Box 26 = Blank
**Pensionable earnings are over the CPP/QPP maximum earnings for the year, from IPCT, Tax Rate Code '010101', CPP Annual Maximum Earnings.  
Example: if Box 26 >= CPP/QPP maximum earnings, then Box 26 = Blank

*Otherwise, perform one of the following conditions:
**If Box 14 > Box 26 CPP/QPP earnings:
***Use the T4-BOX-26-EXCEPT Field Identifier entry to obtain the amount for the excepted employment
***The excepted employment amount is then subtracted from Box 14
***If the new Box 14 amount is equal to Box 26 CPP/QPP earnings, this box will be blank, otherwise Box 26 CPP/QPP earnings will be printed.\\

*The following conditions are covered by this logic:
**Remuneration paid to an employee before age 18 or after age 70 during the year, then this box will be printed.
**An employee is being remunerated by excepted employment as defined from the "Employer's Guide", this box will be printed.

*If Box 14 < CPP/QPP earnings
**For Quebec, if Box 26 QPP earnings > Box 14, Box 26 is always printed
**For all other provinces: 
**Use the T4-BOX-26-OTHER Field Identifier entry to obtain the amount for pensionable employment
**The pensionable employment amount is then added to Box 14
**If the new Box 14 amount is equal to Box 26 CPP/QPP earnings, this box will be blank.  Otherwise Box 26 CPP/QPP earnings will be printed.

*The derived CPP/QPP Pensionable Earnings are printed according to the IDFDV form set up on the RPYEC Summary report.

*The CPP/QPP Pensionable Earnings that are printed on the T4 Form will also be printed on the RPYEC Summary report, under the T4-BOX-26-PRT Identifier.  
Users should verify the reported CPP/QPP Pensionable Earnings are correct according to the government specifications. \\ \\

__Box 28 - Exempt (CPP-QPP and EI and PPIP)__
*"X" will be entered under CPP-QPP if there is no contribution to CPP/QPP (such as Box 16, 17 and 26 are blank), and the CPP/QPP method from the IPRLC form = 'Do not calculate'

*"X" will be entered under EI if there is no EI premium (such as Box 18 and Box 24 are blank) and the EI method from the IPRLC form = 'Do not calculate'

*"X" will be entered under PPIP if the province is 'Quebec' and there is no PPIP premium (such as Box 55 and Box 56 are blank) and the PPIP method from the IPRLC form = 'Do not calculate'

*The following identifiers from the IDFDV form are for Information Purpose only.  There is no need to set these identifiers up.
||Seq #||Field Identifier
|3130 |T4-BOX-28-CPP-PRT
|3140 |T4-BOX-28-QPP-PRT
|3150 |T4-BOX-28-EI-PRT
|3155 |T4-BOX-28-PPIP-PRT	

\\ 
__Box 29 - Employment Code__\\
Report the appropriate code if one of the following situations applies:
|11|Placement agency - self employed
|12|Driver of taxi or other passenger-carrying vehicle
|13|Barber or hairdresser
|14|Withdrawal from a prescribed salary deferral arrangement plan
|15|Seasonal Agriculture Workers Program
|16|Detached employee - social security agreement

*Set up the T4 EMPLOYMENT CODE field on the IMUF form, then enter the appropriate Employment Code on the IDGR form, if the above situation applies

*The following identifier from the IDFDV form is for Information Purpose only.  There is no need to set this identifier up
||Seq #||Field Identifier||
|3160 |T4-BOX-29-PRT|This is used for the XML file only 
\\ 

__Box 44 - Union Dues__\\
Derived from the IDFDV form and the IDUN form, T4 UNION DUES field
||Seq #||Field Identifier||Suggested Field Variable (Element)
|3180 |T4-BOX-44|T4-BOX-44
*This box should NOT be used if the Union issues Union Dues receipts directly to the employees
*If the Union has NOT issued receipts for union dues, then specify the T4 UNION DUES field on the IDUN form 
**On the IDUN form, if the Report T4 Union Dues Indicator = 'Y', then the value of 'T4-BOX-44' is printed
**the Union Dues that are printed on T4 Form are also printed on the RPYEC Summary report under the T4-BOX-44-PRT Identifier for user verification \\ \\

__Box 46 - Charitable Donations__\\
Derived from the IDFDV form
||Seq #||Field Identifier||Suggested Field Variable (Element)
|3190 |T4-BOX-46|T4-BOX-46 
\\ 

__Box 50 - RPP or DPSP Registration Number__\\
Derived from the IDFDV form
||Seq #||Field Identifier||Suggested Field Variable||Suggested Field Variable (Element)
|3200 |T4-BOX-50-REG1|Constant|
|3210 |T4-BOX-50-REG2|Constant|
|3220 |T4-BOX-50-REG3|Constant|
|3230 |T4-BOX-50-REG4|Constant|
|3240 |T4-BOX-50-REG5|Constant|
|3205 |T4-BOX-50-RPP1|  |T4-BOX-50-RPP1
|3215 |T4-BOX-50-RPP2|  |T4-BOX-50-RPP2
|3225 |T4-BOX-50-RPP3|  |T4-BOX-50-RPP3
|3235 |T4-BOX-50-RPP4|  |T4-BOX-50-RPP4
|3245 |T4-BOX-50-RPP5|  |T4-BOX-50-RPP5

*The values from T4-BOX-50-RPP1, T4-BOX-50-RPP2, T4-BOX-50-RPP3, T4-BOX-50-RPP4 and T4-BOX-50-RPP5 are used for comparison.
*The largest value from T4-BOX-50-RPP1, T4-BOX-50-RPP2, T4-BOX-50-RPP3, T4-BOX-50-RPP4 and T4-BOX-50-RPP5 are used and the corresponding T4-BOX-50-REG1, T4-BOX-50-REG2, T4-BOX-50-REG3, T4-BOX-50-REG4 and T4-BOX-50-REG5 are reported
*The T4-BOX-50-PRT Identifier is for the XML file only. There is no need to set this Identifier up. \\ \\

__Box 52 - Pension Adjustment__\\
Derived from the IDFDV form
||Seq #||Field Identifier||Suggested Field Variable 
|3260 |T4-BOX-52|T4-BOX-52
Box 52 is rounded up to the nearest Dollar. No cents are printed. \\ 

__Box 55 - Employee's PPIP Premiums__\\
Derived from the IDFDV form
||Seq #||Field Identifier||Suggested Field Variable 
|3270 |T4-BOX-55|T4-BOX-55 
\\ 

__Box 56 - PPIP Insurable Earnings__\\
Derived from the IDFDV form
||Seq #||Field Identifier||Suggested Field Variable 
|3290 |T4-BOX-56|T4-BOX-56
*Box 56 will be blank under one of the following conditions:
*#If there are no insurable earnings.  Example: if Box 56 = 0, then Box 56 = blank
*#Insurable earnings are the same as the employment income in Box 14.  Example: if Box 56 = Box 14, then Box 56 = blank
*#Insurable earnings are over the PPIP maximum earnings for the year, from IPCT, Tax Rate Code '011201', QPIP Annual Employee Maximum for the Province.  Example: if Box 56 >= QPIP maximum earnings, then Box 56 = blank
*The derived PPIP Insurable Earnings is printed according to the IDFDV form set up on the RPYEC Summary report.
*The PPIP Insurable Earnings that are printed on the T4 Form and reported on the Magnetic Media file will be printed on the RPYEC Summary report under the T4-BOX-56-PRT Identifier.  Users should verify the reported PPIP Insurable Earnings are correct according to the government specifications.
\\ 

__Box - Other Information__\\
Derived from the IDFDV form 
||Seq #||Field Identifier||Suggested Field Variable
|4nnn|OTHER-nn|T4-BOX-OTH-nn
*Up to 6 footnote codes can be printed on each T4 form
*If there are more than 6 footnote codes to be reported, subsequent T4 form will be produced 
*The subsequent T4 slip numeric boxes will be blank.  The employee's demographic information will be printed along with the footnote codes.

!!Magnetic Media File - Government XML file
!IDIF - T4 Government XML File layout

The government XML file layouts are provided by the government on their web site each year. High Line uses the IDIF form to define the government file as specified, in an xml format. \\ \\
 
High Line delivers the IDIF form layout using Seed data along with the Year End release.  Users do not need to modify this form

Users must run the RPYEC and RPGRC processes to generate the Magnetic Media file in the government XML file format.  Please refer to the 'Government Reporting Procedures, Sequence' section that describes how the process is run.


!Validating the Govt XML File
%%warning IMPORTANT: The government requires users to validate the government XML file according to the downloaded government XML schema, using a validating parser prior to sending the file to the government.%%  
\\
A validating parser tool from any third party will perform the following checks on the government XML file generated by RPGRC: \\

# Verify the government XML file is properly created according to the XML syntax rules, such as the file is well formed, no missing xml tags, etc.
# Verify the government XML file conforms to the schema downloaded from the government web site.

Validating parser software is NOT provided by High Line.  Organizations can use any third party validating parser tool.

High Line uses the XML SPY Home edition tool to validate the T4 and T4A xml files.  

!!Electronic T4 Print Program
!Consent
The Canadian Government does not require employees to provide consent.  As such, employees do not have to give consent in order to get their T4 forms online and the Electronic Consent logic has been removed. \\ \\
Organizations can now print the forms for selected employees using the new report parameter 'Status Type' and other existing report filters.

Organizations can control the years the T4 forms are available for employees to print, by setting the EE_T4_GVT_RUN Preference on the IMST form.

!Employee T4’s – RET4 and BET4
The BET4 will produce current year T4’s only – if you’d like your employees to be allowed to print prior years, RET4 can be utilized – i.e. label the menu “T4 History”. The BET4 output of the T4 form will be in a pdf format. \\

These functions can be added to the employee pay menu – or take advantage of the “Quick Links” to make this even easier.

!Setup/Implementation
__IMST__
Users must set up the EE_T4_GVT_RUN Preference with the values of the GVT Run Numbers that contain the information for the employee’s T4s (from the RPYEC run) on the IMST form, Preference tab. \\

The GVT Run numbers must be entered with comma separators and no spaces, such as 1234,3333,4567. \\ \\

__Setup – RET4__\\
For RET4 2019:

# Run RPYEC
# RPGRC – note the gvt run# and the _HL.xml
# Ensure that the _HL.xml is on the directory used for both RPGRC and RPT4W
#IMST – set up the gvt run# that exists on the _HL.xml on the EE_T4_GVT_RUN preference
#RPT4W – use the _HL.xml and fill in with the same directory, data should be populated in the UT tables and show on the T4 form
#RET4 will default with 2019 and then launch
\\ 

For RET4 2018 and previous years

# Do NOT run RPYEC
# Do NOT run RPGRC – but note the 2018 _HL.xml and take note of the gvt run# from this file
#Ensure that the 2018 _HL.xml is on the directory used for RPT4W
#IMST – set up the gvt run# that exists on the 2018 _HL.xml on the EE_T4_GVT_RUN preference
#RPT4W – use the 2018 _HL.xml and fill in with directory that has the 2018 _HL.xml file, data should be populated in the UT tables and show on the T4 form
#RET4 will default with 2019, type in 2018 and then launch


__Setup – BET4__\\
For organizations that wish to use the BET4 process, the implementation steps below must be followed:
#The new function “BET4” MUST be added to the appropriate menu and provide execution rights to respective role and/or user
#The ‘T4_GVT_RUN’ lexicon is used to identify the government runs that will be available to the user, to select and print their T4 forms. Organizations should always maintain this record to ONLY have the official government run record.
*To update the lexicon, on the IMLN form, for the Lexicon Name ‘T4_GVT_RUN’, enter a unique value in the ‘Saved Value’ field, such as '01' and enter the Government Run number in the ‘Displayed’ value field.


----
![Notes|Edit:Internal.CDN T4 PROCESS] 	
[{InsertPage page='Internal.CDN T4 PROCESS' default='Click to create a new notes page'}]