F060116HistoryDriver

F060116 History Driver

Minor Business Rule

Object Name: N0500060

Parent DLL: CFND

Location: Server

Language: NER

Functional Description
Operate as a central business function for employee history and turnover modification.  This function 

will "call" other history business functions based on a parameter called cFunctionMode_VC01A.  A 

allowable values for cFunctionMode_VC01A are 1, 2, and 3 being equivalant to the events before update, 

after update, and after insert, respectively.


Purpose

Provide a central location for calling the Employee Master (F060116) business functions.


Setup Notes and Prerequisites

Both parameters are required.


Technical Specification


Parameters


Data Item Data Structure DescriptionI/ORequiredNotes

AN8mnAddressNumber_AN8IY

VC01AcFunctionMode_VC01AIY1 = before update, 2 = after update, 3 = after insert


Processing


Read the Employee Master (F060116) record for mnAddressNumber_AN8.  Store all current information in 

local variables.


Read the F08040 table to determine if position control is used.


Call HR History - Disable/Enable History Triggers (B0800021) to determine the current status of 

history/turnover modification.


If cFunctionMode_VC01A is 1 (before update) then

If trigger status is on then

Call Write Record to JDECache - Segement 1 (B0800016)

Call Write Record to JDECache - Segement 2 (B0800019)

Endif

If position control is tracked then

Call Write Position Control Parameters to Cache (B0800032)

Endif

Else

If cFunctionMode_VC01A is 2 (after update) then

If trigger status is on then

Call HR History - Process EE Master Changes - Segement 1 (B0800017)

Call HR History - Process EE Master Changes - Segement 2 (B0800020)

Endif

If position control is tracked then

Call Launch Position Control Monitor (B0800033)

Endif

Else

If cFunctionMode_VC01A is 3 (after insert)then

If trigger status is on then

Call HR History - Process EE Master Changes - Segement 1

(B0800017)


Call HR History - Process EE Master Changes - Segement 2

(B0800020)

Endif

If position control is tracked then

Call Write Position Control Parameters to Cache (B0800032)

Call Launch Position Control Monitor (B0800033)

Endif

Endif

Endif

Endif


If trigger status is on then

Call HR History - Disable/Enable History Triggers (B0800031) to clear cache

Endif


Data Structure

D0500060 - F060116 History Driver


Parameter NameData ItemData TypeReq/OptI/O/Both
mnAddressNumber_AN8AN8MATH_NUMERICREQINPUT

A number that identifies an entry in the Address Book system, such as employee, applicant, participant, customer, supplier, tenant, or 
location.

cFunctionMode_VC01AVC01AcharREQINPUT

This is a generic field used for video constants display.

jdDateEffectiveOnEFTOJDEDATEOPTINPUT

A future date when all changes will take effect or the date when the changes went into effect. If you do not enter a date in this field, the system 
uses the current date as the effective date.

szPayrollLockoutID_USRUSRcharOPTBOTH

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 
from being processed in more than one concurrent payroll cycle. It also locks out everyone but the user who is running the payroll (or 
prepayroll) from updating the employee's master file or time records until either the the cycle is complete or a reset of the payroll lockout is 
executed.

Related Functions

None

Related Tables

None