This function will create a internal next numbers for writing to the F06904 table.
Technical Specifications
UKID Unique Key Id OutputOYMain Key in the F06904
F06904 Accounting Distribution Rules
Special Logic
Read first F06904 record. (F06904 is keyed with UKID Descending)
If no record exists in the F06904, the number 1 will be returned in UKID
If UKID in the record read = 999999999999999
Check to see if the number 1 already exists in the F06904
While the record exists in the F06904
Add 1 to UKID
Check to see if number just added to UKID exists
End While
Else
Add 1 to UKID
End If
^
DN0500014 - Increment Index For AAI Table (F06904)
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
mnUniqueKeyIDOutput | UKID | MATH_NUMERIC | NONE | NONE |
This field is a unique number used to identify a record in a file. |
None |
None |