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.
DN0500034 - Generate Next Available Who's Who Line Number
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
mnAddressNumber | AN8 | MATH_NUMERIC | REQ | INPUT |
A number that identifies an entry in the Address Book system, such as employee, applicant, participant, customer, supplier, tenant, or
| ||||
mnLineNumberID | IDLN | MATH_NUMERIC | REQ | OUTPUT |
This field is used to identify the line ID number for a Who's Who record. | ||||
mnErrorCodeReturned | MATH06 | MATH_NUMERIC | REQ | OUTPUT |
Event point for Math Numeric. |
None |
None |