GetAddressForOP

Get Address For OP

Minor Business Rule

Object Name: B4000810

Parent DLL: COPBASE

Location: Client/Server

Language: C

Retrieves the Address Book information for Order Processing.
  Input parameters Address Number

                                   Effective Date

This function operates on the tables F0116, F0111, and F0117.


Data Structure

D4000810 - Get Address  For OP

Parameter NameData ItemData TypeReq/OptI/O/Both
mnAddressNumberAN8MATH_NUMERICNONENONE

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

szMailingNameMLNMcharNONENONE

The company or person to whom billing or correspondence is addressed.

szAddressLine1ADD1charNONENONE

The first line of a mailing address for an employee, customer, or supplier in the Address Book system. The U.S. Internal Revenue Service 
(IRS) restricts the size of the address that prints on an employee's year-end tax return. To comply with IRS regulations, the system has the 
following restrictions:   o  On W-2 returns, the system prints only the last three nonblank address lines plus the city, state, and postal code.   o  On 
1099 returns, the system prints only the last nonblank address line plus the city, state, and postal code.   o  On other U.S. federal magnetic 
media, the system prints only the last nonblank address line plus the city, state, and postal code.

szAddressLine2ADD2charNONENONE

The second line of the mailing address for an employee, customer, or supplier in the Address Book system. Attention Payroll users: The 
Internal Revenue Service (IRS) restricts the size of the address that prints on employee's year-end forms. To comply with IRS regulations, the 
address that prints on W-2 forms includes only the last three nonblank address lines plus the city, state, and postal code. The address that 
prints on 1099 forms includes only the last nonblank address line plus the city, state, and postal code. If you process year-end information using 
the federal magnetic media format, the address that prints on those forms contains only the last nonblank address line plus the city, state, 
and postal code.

szAddressLine3ADD3charNONENONE

The third line of the mailing address for an employee, customer, or supplier in the Address Book system. Attention Payroll users: The 
Internal Revenue Service (IRS) restricts the size of the address that prints on employee's year-end forms. To comply with IRS regulations, the 
address that prints on W-2 forms includes only the last three nonblank address lines plus the city, state, and postal code. The address that prints 
on 1099 forms includes only the last nonblank address line plus the city, state, and postal code. If you process year-end information using 
the federal magnetic media format, the address that prints on those forms contains only the last nonblank address line plus the city, state, and 
postal code.

szAddressLine4ADD4charNONENONE

The fourth line of the mailing address for an employee, customer, or supplier in the Address Book system. Attention Payroll users: The 
Internal Revenue Service (IRS) restricts the size of the address that prints on employee's year-end forms. To comply with IRS regulations, the 
address that prints on W-2 forms includes only the last three nonblank address lines plus the city, state, and postal code. The address that 
prints on 1099 forms includes only the last nonblank address line plus the city, state, and postal code. If you process year-end information using 
the federal magnetic media format, the address that prints on those forms contains only the last nonblank address line plus the city, state, and 
postal code.

szPostalCodeADDZcharNONENONE

The United States ZIP code or the postal code that specifies where a letter is to be routed.  Attach this code to the address for delivery in 
other countries. This code is used as the low end value when doing Postal Code Transaction range processing.

szCityCTY1charNONENONE

A name that indicates the city associated with the address.

szCountyCOUNcharNONENONE

The name of a county, parish, or other political district that is necessary for the address or for tax purposes.

szStateADDScharNONENONE

A user defined code (00/S) that specifies the state or province. This code is usually a postal service abbreviation.

szCountryCTRcharNONENONE

A user defined code (00/CN) that identifies a country. The country code has no effect on currency conversion. The Address Book system 
uses the country code for data selection and address formatting.

jdEffectiveDateEFTBJDEDATENONENONE

The date that an address, item, transaction, or table record becomes active.  The meaning of this field differs, depending on the program.  
For example, the effective date could represent the following:    o When a change of address becomes effective.   o When a lease becomes 
effective.   o When a price becomes effective.   o When the currency exchange rate becomes effective.   o When a tax rate becomes effective. 

Related Functions

None

Related Tables

F0101 Address Book Master
F0111 Address Book - Who's Who
F0116 Address by Date
F0117 Postal Codes
GetCityForPostalCode

GetCityForPostalCode

Get Address For OP

Minor Business Rule

Object Name: B4000810

Parent DLL: COPBASE

Location: Client/Server

Language: C

This Business Function Retrieves the City for Postal Code for Order Processing. It needs the Postal 
Code as the input parameter and it returns the city,State,County and Country. It returns '1' in Error 

Code and blanks in the  output fields  if no record exists in F0117 and '0' if the record is found.

^

Data Structure

D4000810B - Get City For Postal Code

Parameter NameData ItemData TypeReq/OptI/O/Both
szPostalCodeADDZcharNONENONE

The United States ZIP code or the postal code that specifies where a letter is to be routed.  Attach this code to the address for delivery in 
other countries. This code is used as the low end value when doing Postal Code Transaction range processing.

szCityCTY1charNONENONE

A name that indicates the city associated with the address.

szStateADDScharNONENONE

A user defined code (00/S) that specifies the state or province. This code is usually a postal service abbreviation.

szCountyCOUNcharNONENONE

The name of a county, parish, or other political district that is necessary for the address or for tax purposes.

szCountryCTRcharNONENONE

A user defined code (00/CN) that identifies a country. The country code has no effect on currency conversion. The Address Book system 
uses the country code for data selection and address formatting.

cErrorCodeERRcharNONENONE

The Data Field Error Code field is simply a generic data field to pass an error condition flag.  This field is one of the fields that make up the 
external parameter data structure of the Data Dictionary Server.

Related Functions

None

Related Tables

F0101 Address Book Master
F0111 Address Book - Who's Who
F0116 Address by Date
F0117 Postal Codes