IncrementIndexinAAITable

Increment Index in AAI Table (F06904)

Minor Business Rule

Object Name: N0500014

Parent DLL: CFND

Location: Client/Server

Language: NER

Functional Description
Purpose
This function will create a internal next numbers for writing to the F06904 table.

Technical Specifications


Parameters:
Data Item Date Field DescriptionI/ORequiredNotes

UKID      Unique Key Id OutputOYMain Key in the F06904


Related Tables 
Table Table Description

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
   Move a 1 into UKID
   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

• Return to the program that called the function with UKID filled in.


^

Data Structure

DN0500014 - Increment Index For AAI Table (F06904)

Parameter NameData ItemData TypeReq/OptI/O/Both
mnUniqueKeyIDOutputUKIDMATH_NUMERICNONENONE

This field is a unique number used to identify a record in a file.

Related Functions

None

Related Tables

None