P 2 K_PU.ALA_LAST

Get Employee ALA_LAST#

Functionality:#

The purpose of this function is to capture the latest previous evaluated leave lines for the month as of the date specified. This will be to return the any of the AC_CODE values as seen in the Previous Evaluations tab of IALA

Parameters:#

EEM_ID Required. Employment ID in which the pay info is to be recovered
LEAVE_TYPE Required. Leave type code from IAPT
AC_CODE Required. AC_CODE as defined on IAAC (ie, A050, A700, A900, etc.)
WHEN Optional. The as of date to be used (DD-MON-YYYY). Only the 'MON' portion of the date will be used. This date will be converted to the last day of the month for the query (The month from the Sysdate will be used if left blank).

Returns: #

Numeric

Errors: #

Example: #

FUNCTION ALA_LAST(~,'VACATION','A700','01-Jan-2017')

Using the EEM_ID as the parameter, this will return the value from the last leave line to be processed in the month of January, linked to the leave type 'VACATION' and the AC_CODE A700.

Notes#