Overview
A generic comma separated file format has been developed for importing and cancelling leave dates from a text file. There are two formats of the text file available. The first is for importing data that does not contain a flag indicating whether Leave in Advance (LIA) is to be used. The second caters for using a LIA flag, and for cancelling leave.
Specifications
1 No LIA, No Cancellations Where no LIA flag is to be passed and cancellations are not required, the format for import is:
<employee no>,<start date>,<end date>,<leave code> For example: 10100,03/05/2018,15/05/2018,ALV
The Character value of the Parameter Settings value ‘LEAVE_IMPORT_FILE’ in MyWorkplace indicates the directory and file name to import.
2A Leave in Advance Where leave is imported and an LIA flag is to be passed, the format is: <employee no>,<start date>,<end date>,<leave code>,<LIA Flag> For example: 10100,03/05/2018,07/05/2018,ALV,1
The LIA Flag field in this format can be set to 0 or 1 where: 0 – Indicates the Leave is not to be paid in advance 1 – Indicates the Leave is to be paid in advance
2b Leave cancellation Where a leave cancellation is imported the format is: <employee no>,<start date>,<R> For example: 13872,29/04/2018,R
Leave cancellations have three fields. Leave bookings have four or five fields. These transactions can co-exist in one file.
Transaction sequence in the file must be the same order as the employee/user entered those transactions (must follow a logical progression).
The Character value of the Parameter Settings value ‘LIA_IMPORT_FILE’ in MyWorkplace indicates the directory and file name to import.
Notes: • The file contents must follow a logical sequence of events (i.e. enter leave, cancel that leave, enter new leave) • The content of the Leave Code field must be an exact match with the Absent Reason code in the appropriate pay group in MyWorkplace. • Leave cancellations will only occur if included in LIA type file. LIA_IMPORT_FILE must also be set in Parameter Settings in MyWorkplace. Cancellations will not work if LEAVE_IMPORT_FILE setting is used. • There must be one blank row (carriage return) at the end of the data in the file. • The Import process occurs as part of the standard Clockings Import. • The file name will be leave.csv or other agreed name. • Any errors can be seen by using the frame ‘fm_import_data’ only if LEAVE_IMPORT_FILE setting is in use. This Frame can also be used to Import and Process the data if required. • The Import process creates the records in the Advance Leave tables. • The Imported file is renamed using our standard method of appending the Date & Time to the file name.