RetrieveFirstPhoneNumFromF0115

Retrieve First Phone Number of Contact from F0115

Major Business Rule

Object Name: N0500031

Parent DLL: CFND

Location: Client/Server

Language: NER

1.Functional Description

1.1Purpose
Retrieve the first telephone number from the first record under Address Number (AN8) and Who's Who Line Number (IDLN) with smallest Line Number 
(RCK7).


1.2Setup Notes and Prerequisites

1.3Special Logic



2.Technical Specifications

2.1Parameters:

Data Item               Data Structure DescriptionI/ORequiredNotes
mnAddressNumber Address Number  IYes 

(AN8)

mnLineNumberID Who's Who Line NumberIYesFrom Constants Information File (F08040).

(IDLN)

szPhoneAreaCode1 Phone Area Code ON"Before Image"

(AR1)

szPhoneNumber   Phone Number      ON

(PH1)

mnErrorCodeReturned Error Code             OYes0 = no errors 1 = error while fetching data

(MATH06)


2.2Related Tables 

Table Table Description
F0115Address Book - contact Phone Numbers


2.3Related Business Functions - Review and Copy Code

Source NameFunction Name


2.4Processing 


1.0F0115.FetchSingle using keys AN8 and IDLN. Data sorted by AN8, IDLN, and RCK7. The record fetched, if successful, will be with the smallest 
RCK7.


Function returns area code and phone number from 

^

Data Structure

DN0500031 - Retrieve First Phone Number of Contact from F0115

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_NUMERICREQINPUT

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

szPhoneAreaCode1AR1charOPTOUTPUT

The first segment of a telephone number. In the United States, the prefix is the three-digit area code.

szPhoneNumberPH1charOPTOUTPUT

A number without the prefix or special characters, such as hyphens or periods, that makes up the telephone number for an entity. You can 
use any applicable telephone number format for a country. This field is used in conjunction with the Prefix field (AR1), where you enter the first 
segment of the telephone number, which is called the area code in the United States. When you search for an address using a phone 
number, you must enter the number exactly as it is set up in the Address Book system, including any special characters.

mnErrorCodeReturnedMATH06MATH_NUMERICREQOUTPUT

Event point for Math Numeric.

Related Functions

None

Related Tables

None