AddParentChildRecord

Maintain Parent/Child Record

Major Business Rule

Object Name: B0100003

Parent DLL: CFIN

Location: Client/Server

Language: C



Functional Description


Purpose

This function, given an Address Book Number and a Parent Address, adds a record to the Address 
Organizational Structure Master File (F0150). If the Original Parent Number is different from the Parent 

Number, this function will delete the Original Parent record and add a new record to the F0150.


Setup Notes and Prerequisites

1. If the fields mnAddressNumber or mnAddressNumberParent are equal to zero, then exit the function 

with no error returned.

2. If the mnAddressNumberParent and mnAddressnumberParentOriginal are equal, then exit the function 

with no returned.


Special Logic

None.


Technical Specifications


Parameters



Related Tables

F0150Address Organizational Structure Master File

Related Business Functions

B9800100Get Audit Information

Processing

Open F0150 table.
Retrieve F0150 Parentrecord using mnAddressNumber.

If F0150 Parent Record is found,

Delete F0150 old record.

Endif

Load fields with the passed values.

Call business function B9800100 to get Update Audit Information.

Add F0150 record.

Close F0150 table.




^

Data Structure

D0100400 - A/B - Add/Update Parent Record

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.

mnAddressNumberAN8MATH_NUMERICNONENONE

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

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 

mnAddressnumberParentOriginalAN84MATH_NUMERICNONENONE

An alternate address number in the Address Book system. You can use this field for any secondary business address that relates to the 
primary address. For example:     Ship-to address Law firm CPA Securities agent Bonding agent  If you leave this field blank on an entry screen, 
the system supplies the primary address from the Address Number field.

szProgramIdPIDcharOPTNONE

The number that identifies the batch or interactive program (batch or interactive object). For example, the number of the Sales Order Entry 
interactive program is P4210, and the number of the Print Invoices batch process report is R42565. The program ID is a variable length value. 
It is assigned according to a structured syntax in the form TSSXXX, where: T The first character of the number is alphabetic and identifies the 
type, such as P for Program, R for Report, and so on. For example, the value P in the number P4210 indicates that the object is a 
program. SS The second and third characters of the number are numeric and identify the system code. For example, the value 42 in the number P4210 
indicates that this program belongs to system 42, which is the Sales Order Processing system. XXX The remaining characters of the numer are 
numeric and identify a unique program or report. For example, the value 10 in the number P4210 indicates that this is the Sales Order Entry 
program.

Related Functions

B9800100 Get Audit Information

Related Tables

None
DeleteParentChildRecord

DeleteParentChildRecord

Maintain Parent/Child Record

Major Business Rule

Object Name: B0100003

Parent DLL: CFIN

Location: Client/Server

Language: C

Data Structure

D0100400 - A/B - Add/Update Parent Record

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.

mnAddressNumberAN8MATH_NUMERICNONENONE

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

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 

mnAddressnumberParentOriginalAN84MATH_NUMERICNONENONE

An alternate address number in the Address Book system. You can use this field for any secondary business address that relates to the 
primary address. For example:     Ship-to address Law firm CPA Securities agent Bonding agent  If you leave this field blank on an entry screen, 
the system supplies the primary address from the Address Number field.

szProgramIdPIDcharOPTNONE

The number that identifies the batch or interactive program (batch or interactive object). For example, the number of the Sales Order Entry 
interactive program is P4210, and the number of the Print Invoices batch process report is R42565. The program ID is a variable length value. 
It is assigned according to a structured syntax in the form TSSXXX, where: T The first character of the number is alphabetic and identifies the 
type, such as P for Program, R for Report, and so on. For example, the value P in the number P4210 indicates that the object is a 
program. SS The second and third characters of the number are numeric and identify the system code. For example, the value 42 in the number P4210 
indicates that this program belongs to system 42, which is the Sales Order Processing system. XXX The remaining characters of the numer are 
numeric and identify a unique program or report. For example, the value 10 in the number P4210 indicates that this is the Sales Order Entry 
program.

Related Functions

B9800100 Get Audit Information

Related Tables

None