P 2 K_PU.GET_EEM

Get Employee EEMID value#

Functionality:#

This function retrieves the ID for P2K_HR_EMPLOYMENTS

Parameters:#

PERSON_CODE Optional. The PERSON_CODE for the employee.
GOVERNMENT_CODE Optional. The GOVERNMENT_CODE for the employee.
If you prefix the government code with the letter "E", then the EXTERNAL_RETIREMENT_ID field (without the "E") is used to retrieve the EID_ID
AS_OF Optional. The AS OF date is used to search for an active employment on or after that date. If not provided then the current date is used.

Returns: #

Numeric

Errors: #

Example: #

P2K_PU.GET_EEM(~)

will get the EEM_ID value for the passed person code, for the active employment record with the most future hire date prior to today (current date)

P2K_PU.GET_EEM(0,~)

will get the EEM_ID value for the passed government code. Note that the first parameter is optional, but must still contain a value.

Notes#


Notes#

Click to create a new notes page