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
D0800084 - F08041 Interface with HR History Data Item Tracking Table
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
szFileName | FILE | char | REQ | INPUT |
The number of a specific table. For example, the Account Master table name is F0901. See the Standards Manual on the programmers'
| ||||
szDataItem | DTAI | char | REQ | INPUT |
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
| ||||
cIncludeHrHistory | XCOD | char | OPT | NONE |
The code in this field indicates whether the adjoining piece of information should be tracked for Human Resources history purposes. Valid
| ||||
cReadOrWriteFlag | VC01A | char | REQ | INPUT |
This is a generic field used for video constants display. | ||||
cErrorFlag | VC01B | char | OPT | OUTPUT |
This is a generic field used for video constants display. |
None |
None |