F03B22FetchNextUniqueID

F03B22 Fetch Next Unique ID

Minor Business Rule

Object Name: B03B0165

Parent DLL: CFIN

Location: Client/Server

Language: C

B03B0165 
F03B22 Fetch Next Unique ID


Functional Description

Purpose

This function determines the value of Unique Key ID from F03B22 and returns it back to the caller.  

The function finds the highest number of Unique Key ID from F03B22, adds it by 1, and returns it back 

to the caller.  


Setup Notes and Prerequisites


Special Logic


Technical Specifications


Parameters

ItemDescription I/OReq?Notes

UKIDUnique Key IDOYes


Related Tables

F03B22A/R Fee Journal History

Related Business Functions

Processing

• Fetch Unique Key ID from F03B22; sort Unique Key ID descending.
• If JDBReturn is not equal to JDEDB_PASSED,
• Assign a '1' to Unique Key ID.
• Else,
• If Unique Key ID (fetched) is a '0',
• Assign a '1' to Unique Key ID (output).
• Else,
• Add 1 to Unique Key ID (fetched) and move it to the Unique Key ID (output).
• End if.
• End if.




^

Data Structure

D03B0165 - F03B22 Fetch Next Unique ID

Parameter NameData ItemData TypeReq/OptI/O/Both
mnUniqueKeyIDInternalUKIDMATH_NUMERICNONENONE

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

Related Functions

None

Related Tables

F03B22 A/R Fee Journal History