Customers can import employee leave balances into MyWorkplace from a text file. The file is a comma separated file, and should contain a single carriage return (an [Enter] when using Notepad) after the last record. The format of the file is as follows: Field No Name Type 1 Employee Number Integer Mandatory 2 Leave Code Char(up to 4) Mandatory 3 Effective (as at) Date Date (dd/mm/yyyy) Mandatory 4 Entitlement Amount Decimal Optional 5 Pro-Rata Amount Decimal Optional 6 Available Balance Decimal Optional 7 Leave Indicator Decimal Optional
Example records
1001,LSL,20/09/2018,1112.21,29.15,1141.36 1001,ALV,20/09/2018,112.00,50.00,162.00 1001,SCK,20/09/2018,500.01,2.92,502.93
Notes
- The file extension must be either ‘txt’ or ‘csv’.
- There should be no header in the file, that is, the first line should be the first transaction for the first employee
- The above layout requires one leave balance per line. If there are multiple leave types imported for an employee, for example: ALV, SICK, and LSL, there should be multiple lines for each employee, one line for each leave type.
- Optional fields with no value should still show as an empty field, that is, the file should still contain 6 columns (at least 5 commas).
- If there are difficulties when importing, double check that there is one only carriage return at the end of the file.
Note that once data is imported with an effective date, any attempts to load subsequent data with the same effective date will not be imported. Any subsequent imported data must have a later date.
Update settings in MyWorkplace Define the leave codes that appear in the leave import file.
In MyWorkplace, select MySystem Administration, Lookup Table Maintenance, ENTT. Select the Add tab and add new leave codes (same as the leave import file) and descriptions.
Apply import settings options
- Select MySystemAdministration/Data Dictionary.
- Locate fm_import_export_details and select the Change tab.
- Confirm the dropdown selection for Menu is ‘Import’.
- Select the User Authorities tab and confirm users have access to the frame as required. Save if you make any changes.
- Select MyImports / Import Export Details
- In the Import/Export Details window, the Process Name field should be LEAVE_BALANCES. Enter the name if the field is blank. Use the browse button at the right hand end of the File Name field to navigate a folder path to the file.
- Select the Processing Flag if you want the leave balances to be imported automatically with clocking import processes.
- Select the import radio button.
- Save.