Functional Description
The purpose of this Named ER is to determine the employee's current status flag. The status flag is set as such:
'0' = Active employee and no payroll lock out
'1' = Locked employee and NO change is allowed, as the current user id is same as the user id locking the employee.
'2' = Locked employee and any change is allowed, as the current user id is the user id locking the employee.
'3' = Locked employee and only changes not affecting the net pay are allowed, as check has been cut for the locked
employee.
'4' = New Employee (This is not set in the Named ER)
'5' = Terminated employee
'6' = Employee on Leave of Absence
Additionally, if a value is passed in the Employee Identification parameter and no value is passed in the Address Number
parameter, then NER will determine if the value is a name search value, tax id, other employee number, or employee number
(address book number). The value will be validated against the Employee Master (F060116) and, if valid, the address
book number will be returned through the parameter Address Number. If the value is invalid the parameter Error Status will be
set to 1.
As long as the Address Number is passed in or, if Address Number is not passed in, a valid Employee Identification is
passed in, the NER will check to see if the employee is involved in a OneWorld payroll lockout.
Important: If Address Number and Employee Identification are BOTH passed or not passed in, then payroll lockout id,
termination date, and leave of absense begin and end dates MUST be passed in. Also, OW payroll cannot be determined
unless either Address Number and/or Employee Identification is passed in.
Setup Notes and Prerequisites
The hierarchy status flag is:
b)Terminated Status (ie. '5')
c)Leave of Absence Status (ie. '6')
Technical Specification
1)If szEmployeeIdentification <> Blank and szEmployeeIdentification <> Null and mnAddressNumber = Zero
c)If first character = '?'
ii)Call business function 'F0101 Edit Address Number' passing in Name Search Value and returning an address book number (AN8)
iii)Fetch Employee Master (F060116) based on Address Book Number from previous BSFN call
2)If Continuation flag = 1
a)If mnAddressNumber <> Zero
OneWorld then function will return "0" in the status flag. If running payroll on
initialized to zero.
for N0500021)
character with length of 10).
2)Get the payroll ID from the PayrollLockOutID parameter (which is the substring of PayrollLockOutID starting from 11th character
with length of 3).
If the YDCKST = '1' (Check Completed) or 'A' (Check Active)
DN0800002 - Set Employee Current Status FlagId Validation
^
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
CurrentStatusFlag | EV01 | char | OPT | OUTPUT |
An option that specifies the type of processing for an event. | ||||
PayrollLockoutID | USR | char | OPT | NONE |
This code is a combination of the IBM user ID and the batch number assigned to a prepayroll selection. It is used to prohibit one employee
| ||||
DateTerminated | DT | JDEDATE | OPT | NONE |
The date that the employee was terminated, if applicable. | ||||
LeaveBeginDate | LSDT | JDEDATE | OPT | NONE |
The date on which an employee's paid or unpaid leave of absence begins. Use this date to indicate the leave for the Family and Medical
| ||||
LeaveEndDate | LADT | JDEDATE | OPT | NONE |
The date on which an employee's paid or unpaid leave of absence expires. | ||||
szEmployeeIdentification | ENDYOW | char | OPT | INPUT |
The employee number, TAX ID, or Alternate number, depending on the employee number mode that is set up in the Payroll Constants for
| ||||
mnAddressNumber | AN8 | MATH_NUMERIC | OPT | NONE |
A number that identifies an entry in the Address Book system, such as employee, applicant, participant, customer, supplier, tenant, or
| ||||
cErrorStatus | VC01A | char | OPT | OUTPUT |
This is a generic field used for video constants display. | ||||
szPayrollIDOW | PAYD | char | OPT | OUTPUT |
A code that identifies a group of employees for whom you are processing payroll. Use this ID to process each step of the payroll
| ||||
szUserId | USER | char | OPT | OUTPUT |
The code that identifies a user profile. |
None |
None |