Importing leave balances into MyWorkplace

Overview

Employee Leave Balances can be imported into MyWorkplace from a flat file. The file is a comma separated file, and should contain a single carriage return/line feed (CR/LF) after the last record.

This document details the formatting required to import leave balance data into MyWorkplace.

File Name leave_balance.txt

File Layout

Field No Name Type

1 Employee Number Integer Mandatory 2 Leave Code varchar(4) Mandatory 3 Effective Date Date (dd/mm/yyyy) Mandatory 4 Entitlement Amount Decimal(11,5) Optional 5 Pro-Rata Amount Decimal(11,5) Optional 6 Available Balance Decimal(11,5) Optional 7 Accrual Indicator Decimal(11,5) Optional

General

Each field must be separated by a comma (,). Where a field is not being included, a comma must still be used for that field.

Example

Below is an example of a record to be output for one(1) employee for two(2) leave types;

9898,A,01/08/2014,35.0,12.5,47.5,0 9898,S,01/08/2014,76.0,4.2,80.2,0

Notes

  • The above layout requires one leave balance per line. That is, if there are multiple leave types being imported (e.g. A/L, Sick, and LSL), there should be multiple lines for each employee for each leave type.
  • Outputting just the ‘available balance’ field can be done where pro-rata amounts are not normally able to be accessed as part of a a leave application. In this instance, the Entitlement amount and Pro-rata amount fields should be blank or 0, and the entitlement amount output in the ‘available balance’ field.
  • Optional fields when not being interfaced to, 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 at least one carriage return at the end of the file, but also no more than one return.
  • The Accrual Indicator field should always be 0

The Leave Codes used here must be also defined under ENTT in Lookup Maintenance in MWP.

Note that once data is imported with an effective date, any attempts to load subsequent data with the same effective date will fail. Any subsequent imported data must have a later date.