GenNextAvailWhosWhoLineNo

Generate Next Available Who's Who Line Number

Major Business Rule

Object Name: N0500034

Parent DLL: CFND

Location: Client/Server

Language: NER

1.1Purpose
Look for first available Who's Who Line Number (IDLN) in F0111. If numbers are not sequential, the function will look for the first unused value (hole) 
larger than zero and return its value.


1.2Setup Notes and Prerequisites

1.3Special Logic



2.Technical Specifications

2.1Parameters:

Data Item                     Data Structure Description           I/ORequiredNotes
mnAddressNumber Address Number                 IYes

(AN8)

mnLineNumberID Who's Who Line NumberOYes

(IDLN)

mnErrorCodeReturned Error Code             OYes         0 = no errors 1 = error opening file F0111

(MATH06)


2.2Related Tables 

Table Table Description
F0111Address Book - Who's Who



2.3Related Business Functions - Review and Copy Code

Source NameFunction Name


2.4Processing 


1.0F0111.Select based on AN8

2.0While there are no errors and not end of file and a hole not found, F0111.FetchNext(IDLN).


3.0If an error was encountered, return error code only.


4.0For IDLN, return 0 if no records found; if a hole found, return its value. Otherwise return value of last (which is the largest) IDLN value plus 1.


Data Structure

DN0500034 - Generate Next Available Who's Who Line Number

Parameter NameData ItemData TypeReq/OptI/O/Both
mnAddressNumberAN8MATH_NUMERICREQINPUT

A number that identifies an entry in the Address Book system, such as employee, applicant, participant, customer, supplier, tenant, or 
location.

mnLineNumberIDIDLNMATH_NUMERICREQOUTPUT

This field is used to identify the line ID number for a Who's Who record.

mnErrorCodeReturnedMATH06MATH_NUMERICREQOUTPUT

Event point for Math Numeric.

Related Functions

None

Related Tables

None