Code 4587 is only valid from 2021 year of assessment and is an information code which reports the section 10(1)(o)(i) foreign employment income exemption taken into account by the employer for PAYE purposes on the tax certificate. If the employee received foreign employment income but did not qualify for the exemption in terms of section 10(1)(o)(ii) of the Income Tax Act, then code 4587 will be zero. The exemption limit is R1.25 million per tax year, therefore, code 4587 cannot exceed this value.
Rules for information code 4587:
The following foreign service income source codes are included in the remuneration which qualifies for the s10(1)(o)(ii) exemption and which employers may consider for calculating PAYE, if all requirements are met:
Read more in the SARS Business Requirement Specification (BRS) 2020 release.
The following error appears on e@syFile:
EXAMPLE:

EXAMPLE: Values as on the employee's tax certificate:
In the example there is a difference of R1. This is due to rounding, because cents are omitted for the remuneration values reported in the IRP5 file.
| Source Code | Value on the tax certificate | Value on the Payslip Screen |
| 3651 | 203276 | 203276.65 |
| 3655 | 49796 | 49796.00 |
| 3657 | 44638 | 44638.00 |
| 3763 | 56184 | 56184.10 |
| 3860 | 20466 | 20466.25 |
| Total of the above IRP5 codes | 377931 | |
| 4857 in the IRP5 file (which is the sum of the payslip screen values without cents) | 377932 | 377932.00 |
| 4587 calculated by e@syFile (which is the sum of the IRP5file values where cents are omitted) | 377931 |
NOTE: Source code 4587 in the IRP5 file adds up the remuneration values on the payslip screen (code 4587 will not have cents in the file even if the sum of the payslip screen amounts contains cents since cents are omitted in the IRP5 file) , where e@syFile adds the truncated values in the IRP5 file and then compares the two amounts to validate code 4587, resulting in the error. This is not a system error but e@syFile error, SARS has confirmed that this ‘rounding error’ will only be corrected in the e@syFile version for the August 2021 submissions.
A software patch is available please refer to Sage city post: RSA IRP5 Patch: Premier and Classic Release 5.5a/b and Release 5.6a/b is now available for download
The interim solution to resolve this issue:
CAUTION: If a Live Run file is re-created after these steps have been taken. This steps will need to be repeated to correct the values in the file. Do not edit any other fields as this may lead to import errors on the totals in e@syFile.
NOTE: If you require any further assistance, kindly contact your Accountant, Tax Practioner, or Accredited Business Partner