F08041InterfaceWithHistoryTrack

F08041 Interface with HR History Data Item Tracking Table

Minor Business Rule

Object Name: N0800084

Parent DLL: CFND

Location: Client/Server

Language: NER

Functional Description

Purpose

This NER will interface with the table F08041.  Whether the function performs a read or write will 
depend on a flag contained in the data structure.  If the flag is set to 1 (one) then read the table; if 

it is set to 0 (zero) then write a record to the table.


Setup Notes and Prerequisites


The input parameters for the key fields, file name and data item, and the parameter specifying 

whether the function is performing a read or write are required.


Special Logic




Technical Specification


Initialize error flag to 0.


If the read/write flag is 1 then

Read the F08041 table using input parameters for the

file name and data item.  Return the value specifying

if the data item is tracked in history.

else

If the read/write flag is 0 then

If the parameter for history tracking is 'Y' or

the parameter for history tracking is 'N' then

Attempt to update an existing record in the 

F08041 table using the file name and data

item are key fields and modifying the value 

for the history track flag.


If table i/o is unsuccessful then

Insert a record into the F08041 table

using the file name and data item as

as key fields and setting the history

track flag.

End if

Else

Set the error flag to 1 since invalid value

passed in for history track flag.

End if

Else

Set the error flag to 2 since invalid value 

passed in for read/write flag.

End if

End if


If table i/o status is not equal success then

Set the error flag to 3 

End if

Data Structure

D0800084 - F08041 Interface with HR History Data Item Tracking Table

Parameter NameData ItemData TypeReq/OptI/O/Both
szFileNameFILEcharREQINPUT

The number of a specific table. For example, the Account Master table name is F0901. See the Standards Manual on the programmers' 
menu for naming conventions.

szDataItemDTAIcharREQINPUT

A code that identifies and defines a unit of information. It is an alphanumeric code up to 8 characters long that does not allow blanks or 
special characters such as %, &, or +. You create new data items using system codes 55-59. You cannot change the alias.

cIncludeHrHistoryXCODcharOPTNONE

The code in this field indicates whether the adjoining piece of information should be tracked for Human Resources history purposes. Valid 
codes are:    Y Yes, track this piece of information.    N or blank   No, do not track this piece of information. The program automatically puts a Y 
in this field for Address Number (data item AN8) because the address number must be tracked with history. Note: If the code is changed 
from N to Y, history tracking begins at that point in time. Previous information cannot be retrieved.

cReadOrWriteFlagVC01AcharREQINPUT

This is a generic field used for video constants display.

cErrorFlagVC01BcharOPTOUTPUT

This is a generic field used for video constants display.

Related Functions

None

Related Tables

None