GetParentAddress

A/B - Get Parent Address

Minor Business Rule

Object Name: B0100002

Parent DLL: CFIN

Location: Client/Server

Language: C

Business Function Specification

Source NameB0100002DesignerGary Brown
Data Structure 
D0100002ProgrammerGary Brown
Function Name
Get Parent AddressSystem Code01

Revisions Log 

DateProgrammerSAR NumberDescription
11/29/94M. RobinsonCreated

03/01/95  M.Ransom       Modified for Null math numeric error and Share Request.

11/13/95  G Brown        Version 46 for 32 bit processing



1.Functional Description

1.1Purpose
This function, given an Address Book Number, will return the Parent Number from the A/B Organizational Structure file (F0150).  If a related Parent 
Number is not found, it will return a zero in the Parent Address.


1.2Setup Notes and Prerequisites

• If mnAddressNumber is equal to a zero then the function will exit with no error returned.
'b7

1.3Special Logic


2.Technical Specifications


2.1Parameters:

Data Item  Data Structure Description    I/ORequired   Notes
OSTP   szOrganizationTypeStructur IN/R   This must be NULL for Address       Book.

PAN8   mnAddressNumberParent     ON/R

AN8   mnAddressNumber       IRequired


2.2Related Tables 

Table Table Description
F0150Address Organization Structure Master


2.3Related Business Functions

Source NameFunction Name

2.4Processing 




Data Structure

D0100381 - Get Parent Address

Parameter NameData ItemData TypeReq/OptI/O/Both
szOrganizationTypeStructurOSTPcharNONENONE

A user defined code (01/TS) that identifies a type of organizational structure that has its own hierarchy in the Address Book system (for 
example, e-mail). When you create a parent/child relationship for the Accounts Receivable system, the structure type must be blank.

mnAddressNumberParentPA8MATH_NUMERICNONENONE

The address book number of the parent company. The system uses this number to associate a particular address with a parent company 
or location. Any value that you enter in this field updates the Address Organizational Structure Master table (F0150) for the blank structure 
type. This address number must exist in the Address Book Master table (F0101) for validation purposes. Examples of address book records 
that would have a parent number include:   o  Subsidiaries with parent companies     o  Branches with a home office     o  Job sites with a general 
contractor 

mnAddressNumberAN8MATH_NUMERICNONENONE

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

mnSynchronizationStatusSYNCSMATH_NUMERICOPTNONE

A user defined code that indicates the post synchronization validation status of the record.  Valid Values are: 0 Success (Blank) 1 The record 
is pending post synchronization Add validation on the server (PVA) 2 The record is pending post synchronization Change validation on the 
server (PVC) 3 The record is in error from the post synchronization Add validation on the server (ERRA) 4 The record is in error from the post 
synchronization Change validation on the server (ERRC) 5 The associated F0101 record is in error (ERRP) 6 The record is pending post 
synchronization Add validation on the server and the associated F0101 record is in error (ERRPA) 7 The record is pending post synchronization 
Change validation on the server and the associated F0101 record is in error (ERRPC)

Related Functions

None

Related Tables

None