Function Name: Employee Hire Address Book Edit
Purpose:
This function edits address book information for new employees.
Data Structure:
Data Item Data Structure DescriptionI/ORequiredNotes
AN8mnAddressNumberIY
EV01cABRecordExsistsFlagIN1 - This address number is already in the F01010 table
0 - This is a new address number
EV01cSuppressErrorFlagIN
DATIszErrorMessageIdON
PIDszProgramIdIN
VERSszVersionIN
AT1szSearchTypeIN
TAXszTaxIdIN
ALPHszNameAlphaIN
MLNMszNameMailingIN
MCUszCostCenterIN
ADD1szAddressLine1IN
ADD2szAddressLine2IN
ADD3szAddressLine3IN
ADD4szAddressLine4IN
CTY1szCityIN
ADDSszStateIN
ADDZszZipCodePostalIN
COUNszCountyAddressIN
CTRszCountryIN
AR1szPhoneAreaCode1IN
PH1szPhoneNumber1IN
AR3szPhoneAreaCode2IN
PH3szPhoneNumber2IN
MLNMszContactNameMailingIN
AR4szContactPhoneAreaCodeIN
PH4szContactPhoneNumberIN
REM1szEmailIN
CCPRszCountryForPayrollIN
AC01szReportCodeAddBook001IN
AC02szReportCodeAddBook002IN
AC03szReportCodeAddBook003IN
AC04szReportCodeAddBook004IN
AC05szReportCodeAddBook005IN
AC06szReportCodeAddBook006IN
AC07szReportCodeAddBook007IN
AC08szReportCodeAddBook008IN
AC09szReportCodeAddBook009IN
AC10szReportCodeAddBook010IN
AC11szReportCodeAddBook011IN
AC12szReportCodeAddBook012IN
AC13szReportCodeAddBook013IN
AC14szReportCodeAddBook014IN
AC15szReportCodeAddBook015IN
AC16szReportCodeAddBook016IN
AC17szReportCodeAddBook017IN
AC18szReportCodeAddBook018IN
AC19szReportCodeAddBook019IN
AC20szReportCodeAddBook020IN
AC21szCategoryCodeAddressBk21IN
AC22szCategoryCodeAddressBk22IN
AC23szCategoryCodeAddressBk23IN
AC24szCategoryCodeAddressBk24IN
AC25szCategoryCodeAddressBk25IN
AC26szCategoryCodeAddressBk26IN
AC27szCategoryCodeAddressBk27IN
AC28szCategoryCodeAddressBk28IN
AC29szCategoryCodeAddressBk29IN
AC30szCategoryCodeAddressBk30IN
CCPRszPODefaultCountryForPayrollIN
TYCcPOEmergencyContactTypeIN
PHTPszPOHomePhoneNumberTypeIN
PHTPszPOWorkPhoneNumberTypeIN
Related Tables :
Table Table Description
F0101Address Book
F0111Whos Who
F0115Phones
F0116Date Effective Addresses
Related Business Functions:
Source NameFunction Name
N0100041Address Book MBF
Processing:
=======================================================================
NAMED ER: Employee Hire Address Book Edit
=======================================================================
If BF cABRecordExsistsFlag is equal to
// Find Out if New or Exsisting Record
V0101M.Select
BF mnAddressNumber = TK Address Number
If SV File_IO_Status is equal to CO SUCCESS
BF cABRecordExsistsFlag = "1"
Else
BF cABRecordExsistsFlag = "0"
End If
End If
If BF szCountryForPayroll is equal to
BF szCountryForPayroll = BF szPODefaultCountryForPayroll
End If
If BF cABRecordExsistsFlag is equal to "1" And BF mnAddressNumber is not equal to
mnAddressNumber is not equal to
// Perform Edit Only of Address Book Fields
Address Book - MBF
"C" -> cActionCode
UNDEFINED X cUpdateMasterFile
UNDEFINED X cProcessEdits
BF cSuppressErrorFlag -> cSuppressErrorMessages
BF szErrorMessageId <- szErrorMessageID
UNDEFINED X szVersion
UNDEFINED X mnSameAsExcept
BF mnAddressNumber -> mnAddressBookNumber
UNDEFINED X szLongAddressNumber
BF szTaxId -> szTaxId
BF szSearchType -> szSearchType
BF szNameAlpha -> szAlphaName
UNDEFINED X szSecondaryAlphaName
BF szNameMailing -> szMailingName
UNDEFINED X szSecondaryMailingName
UNDEFINED X szDescriptionCompressed
BF szCostCenter -> szBusinessUnit
BF szAddressLine1 -> szAddressLine1
BF szAddressLine2 -> szAddressLine2
BF szAddressLine3 -> szAddressLine3
BF szAddressLine4 -> szAddressLine4
BF szZipCodePostal -> szPostalCode
BF szCity -> szCity
BF szCountyAddress -> szCounty
BF szState -> szState
BF szCountry -> szCountry
UNDEFINED X szCarrierRoute
UNDEFINED X szBulkMailingCenter
BF szPhoneAreaCode1 -> szPrefix1
BF szPhoneNumber1 -> szPhoneNumber1
BF szPOWorkPhoneNumberType -> szPhoneNumberType1
BF szPhoneAreaCode2 -> szPhoneAreaCode2
BF szPhoneNumber2 -> szPhoneNumber2
BF szPOHomePhoneNumberType -> szPhoneNumberType2
UNDEFINED X cPayablesYNM
UNDEFINED X cReceivablesYN
UNDEFINED X cEmployeeYN
UNDEFINED X cUserCode
UNDEFINED X cARAPNettingY
UNDEFINED X cSubledgerInactiveCode
UNDEFINED X cPersonCorporationCode
UNDEFINED X szCertificate
UNDEFINED X szAddlIndTaxID
UNDEFINED X szCreditMessage
UNDEFINED X szLanguage
UNDEFINED X szIndustryClassification
UNDEFINED X cEMail
UNDEFINED X mn1stAddressNumber
UNDEFINED X mn2ndAddressNumber
UNDEFINED X mn3rdAddressNumber
UNDEFINED X mn4thAddressNumber
UNDEFINED X mn5thAddressNumber
UNDEFINED X mnFactorSpecialPayee
UNDEFINED X mnParentNumber
UNDEFINED X cAddressType3YN
UNDEFINED X cAddressType4YN
UNDEFINED X cAddressType5YN
BF szReportCodeAddBook001 -> szCategoryCode01
BF szReportCodeAddBook002 -> szAccountRepresentative
BF szReportCodeAddBook003 -> szCategoryCode03
BF szReportCodeAddBook004 -> szGeographicRegion
BF szReportCodeAddBook005 -> szCategoryCode05
BF szReportCodeAddBook006 -> szCategoryCode06
BF szReportCodeAddBook007 -> sz1099Reporting
BF szReportCodeAddBook008 -> szCategoryCode08
BF szReportCodeAddBook009 -> szCategoryCode09
BF szReportCodeAddBook010 -> szCategoryCode10
BF szReportCodeAddBook011 -> szSalesRegion
BF szReportCodeAddBook012 -> szCategoryCode12
BF szReportCodeAddBook013 -> szLineOfBusiness
BF szReportCodeAddBook014 -> szSalesVolume
BF szReportCodeAddBook015 -> szCategoryCode15
BF szReportCodeAddBook016 -> szCategoryCode16
BF szReportCodeAddBook017 -> szCategoryCode17
BF szReportCodeAddBook018 -> szCategoryCode18
BF szReportCodeAddBook019 -> szCategoryCode19
BF szReportCodeAddBook020 -> szCategoryCode20
BF szCategoryCodeAddressBk21 -> szCategoryCode21
BF szCategoryCodeAddressBk22 -> szCategoryCode22
BF szCategoryCodeAddressBk23 -> szCategoryCode23
BF szCategoryCodeAddressBk24 -> szCategoryCode24
BF szCategoryCodeAddressBk25 -> szCategoryCode25
BF szCategoryCodeAddressBk26 -> szCategoryCode26
BF szCategoryCodeAddressBk27 -> szCategoryCode27
BF szCategoryCodeAddressBk28 -> szCategoryCode28
BF szCategoryCodeAddressBk29 -> szCategoryCode29
BF szCategoryCodeAddressBk30 -> szCategoryCode30
UNDEFINED X szGlBankAccount
UNDEFINED X mnTimeScheduledIn
UNDEFINED X jdDateScheduledIn
UNDEFINED X cClearedY
UNDEFINED X szRemark
UNDEFINED X szUserReservedCode
UNDEFINED X jdUserReservedDate
UNDEFINED X mnUserReservedAmount
UNDEFINED X mnUserReservedNumber
UNDEFINED X szUserReservedReference
UNDEFINED X jdDateEffective
BF szProgramId -> szProgramId
BF szEmail -> szRemark1
UNDEFINED X mnAddNumParentOriginal
UNDEFINED X OKToDelete
UNDEFINED X szVersionconsolidated
UNDEFINED X cDirectionIndicator
UNDEFINED X cEdiSuccessfullyProcess
BF szCountryForPayroll -> szCountryForPayroll
UNDEFINED X szShortcutClientType
If SV Error_Status is not equal to CO SUCCESS
If BF szErrorMessageId is equal to
BF szErrorMessageId = "2737"
End If
End If
Else
If BF mnAddressNumber is not equal to
mnAddressNumber is not equal to
Address Book - MBF
"A" -> cActionCode
UNDEFINED X cUpdateMasterFile
UNDEFINED X cProcessEdits
BF cSuppressErrorFlag -> cSuppressErrorMessages
BF szErrorMessageId <- szErrorMessageID
UNDEFINED X szVersion
UNDEFINED X mnSameAsExcept
BF mnAddressNumber -> mnAddressBookNumber
UNDEFINED X szLongAddressNumber
BF szTaxId -> szTaxId
BF szSearchType -> szSearchType
BF szNameAlpha -> szAlphaName
UNDEFINED X szSecondaryAlphaName
BF szNameMailing -> szMailingName
UNDEFINED X szSecondaryMailingName
UNDEFINED X szDescriptionCompressed
BF szCostCenter -> szBusinessUnit
BF szAddressLine1 -> szAddressLine1
BF szAddressLine2 -> szAddressLine2
BF szAddressLine3 -> szAddressLine3
BF szAddressLine4 -> szAddressLine4
BF szZipCodePostal -> szPostalCode
BF szCity -> szCity
BF szCountyAddress -> szCounty
BF szState -> szState
BF szCountry -> szCountry
UNDEFINED X szCarrierRoute
UNDEFINED X szBulkMailingCenter
BF szPhoneAreaCode1 -> szPrefix1
BF szPhoneNumber1 -> szPhoneNumber1
BF szPOWorkPhoneNumberType -> szPhoneNumberType1
BF szPhoneAreaCode2 -> szPhoneAreaCode2
BF szPhoneNumber2 -> szPhoneNumber2
BF szPOHomePhoneNumberType -> szPhoneNumberType2
UNDEFINED X cPayablesYNM
UNDEFINED X cReceivablesYN
UNDEFINED X cEmployeeYN
UNDEFINED X cUserCode
UNDEFINED X cARAPNettingY
UNDEFINED X cSubledgerInactiveCode
UNDEFINED X cPersonCorporationCode
UNDEFINED X szCertificate
UNDEFINED X szAddlIndTaxID
UNDEFINED X szCreditMessage
UNDEFINED X szLanguage
UNDEFINED X szIndustryClassification
UNDEFINED X cEMail
UNDEFINED X mn1stAddressNumber
UNDEFINED X mn2ndAddressNumber
UNDEFINED X mn3rdAddressNumber
UNDEFINED X mn4thAddressNumber
UNDEFINED X mn5thAddressNumber
UNDEFINED X mnFactorSpecialPayee
UNDEFINED X mnParentNumber
UNDEFINED X cAddressType3YN
UNDEFINED X cAddressType4YN
UNDEFINED X cAddressType5YN
BF szReportCodeAddBook001 -> szCategoryCode01
BF szReportCodeAddBook002 -> szAccountRepresentative
BF szReportCodeAddBook003 -> szCategoryCode03
BF szReportCodeAddBook004 -> szGeographicRegion
BF szReportCodeAddBook005 -> szCategoryCode05
BF szReportCodeAddBook006 -> szCategoryCode06
BF szReportCodeAddBook007 -> sz1099Reporting
BF szReportCodeAddBook008 -> szCategoryCode08
BF szReportCodeAddBook009 -> szCategoryCode09
BF szReportCodeAddBook010 -> szCategoryCode10
BF szReportCodeAddBook011 -> szSalesRegion
BF szReportCodeAddBook012 -> szCategoryCode12
BF szReportCodeAddBook013 -> szLineOfBusiness
BF szReportCodeAddBook014 -> szSalesVolume
BF szReportCodeAddBook015 -> szCategoryCode15
BF szReportCodeAddBook016 -> szCategoryCode16
BF szReportCodeAddBook017 -> szCategoryCode17
BF szReportCodeAddBook018 -> szCategoryCode18
BF szReportCodeAddBook019 -> szCategoryCode19
BF szReportCodeAddBook020 -> szCategoryCode20
BF szCategoryCodeAddressBk21 -> szCategoryCode21
BF szCategoryCodeAddressBk22 -> szCategoryCode22
D0500710A - Employee Hire Address Book Edit
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
| ||||
cABRecordExsistsFlag | EV01 | char | OPT | INPUT |
An option that specifies the type of processing for an event. | ||||
cSuppressErrorFlag | EV01 | char | OPT | INPUT |
An option that specifies the type of processing for an event. | ||||
szErrorMessageId | DTAI | char | OPT | OUTPUT |
A code that identifies and defines a unit of information. It is an alphanumeric code up to 8 characters long that does not allow blanks or
| ||||
szProgramId | PID | char | OPT | INPUT |
The number that identifies the batch or interactive program (batch or interactive object). For example, the number of the Sales Order Entry
| ||||
szVersion | VERS | char | OPT | INPUT |
A user-defined set of specifications that control how applications and reports run. You use versions to group and save a set of user-defined
| ||||
szSearchType | AT1 | char | OPT | NONE |
A user defined code (01/ST) that specifies the kind of address book record to search for. Examples include:
E
Employees
X
Ex-employees
| ||||
szTaxId | TAX | char | OPT | NONE |
The identification code required by various tax authorities. This can be a social security number, federal or state corporate tax ID, sales tax
| ||||
szNameAlpha | ALPH | char | OPT | NONE |
The text that names or describes an address. This 40-character alphabetic field appears on a number of forms and reports. You can enter
| ||||
szNameMailing | MLNM | char | OPT | NONE |
The company or person to whom billing or correspondence is addressed. | ||||
szCostCenter | MCU | char | OPT | NONE |
An alphanumeric code that identifies a separate entity within a business for which you want to track costs. For example, a business unit
| ||||
szAddressLine1 | ADD1 | char | OPT | NONE |
The first line of a mailing address for an employee, customer, or supplier in the Address Book system. The U.S. Internal Revenue Service
| ||||
szAddressLine2 | ADD2 | char | OPT | NONE |
The second line of the mailing address for an employee, customer, or supplier in the Address Book system.
Attention Payroll users: The
| ||||
szAddressLine3 | ADD3 | char | OPT | NONE |
The third line of the mailing address for an employee, customer, or supplier in the Address Book system.
Attention Payroll users: The
| ||||
szAddressLine4 | ADD4 | char | OPT | NONE |
The fourth line of the mailing address for an employee, customer, or supplier in the Address Book system.
Attention Payroll users: The
| ||||
szCity | CTY1 | char | OPT | NONE |
A name that indicates the city associated with the address. | ||||
szState | ADDS | char | OPT | NONE |
A user defined code (00/S) that specifies the state or province. This code is usually a postal service abbreviation. | ||||
szZipCodePostal | ADDZ | char | OPT | NONE |
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
| ||||
szCountyAddress | COUN | char | OPT | NONE |
The name of a county, parish, or other political district that is necessary for the address or for tax purposes. | ||||
szCountry | CTR | char | OPT | NONE |
A user defined code (00/CN) that identifies a country. The country code has no effect on currency conversion.
The Address Book system
| ||||
szPhoneAreaCode1 | AR1 | char | OPT | NONE |
The first segment of a telephone number. In the United States, the prefix is the three-digit area code. | ||||
szPhoneNumber1 | PH1 | char | OPT | NONE |
A number without the prefix or special characters, such as hyphens or periods, that makes up the telephone number for an entity. You can
| ||||
szPhoneAreaCode2 | AR3 | char | OPT | NONE |
The prefix for telephone number 3. The default format for the Phone Prefix data dictionary item is set to the United States prefix (area code).
| ||||
szPhoneNumber2 | PH3 | char | OPT | NONE |
The telephone number has been established in free form to allow incorporation of extension numbers and local telephone oddities. For
| ||||
szContactNameMailing | MLNM | char | OPT | NONE |
The company or person to whom billing or correspondence is addressed. | ||||
szContactPhoneAreaCode | AR4 | char | OPT | NONE |
The prefix for telephone number 4. The default format for the Phone Prefix data dictionary item is set to the United States prefix (area code).
| ||||
szContactPhoneNumber | PH4 | char | OPT | NONE |
The telephone number has been established in free form to allow incorporation of extension numbers and local telephone oddities. For
| ||||
szEmail | REM1 | char | OPT | NONE |
A 40-character field that you can use to enter text. | ||||
szCountryForPayroll | CCPR | char | OPT | NONE |
A user defined code list 00/CN that indicates the country in which the employee resides. | ||||
szReportCodeAddBook001 | AC01 | char | OPT | NONE |
One of thirty reporting codes that you can assign to an address in the Address Book system. Use these codes to group address book
| ||||
szReportCodeAddBook002 | AC02 | char | OPT | NONE |
One of thirty reporting codes that you can assign to an address in the Address Book system. Use these codes to identify addresses for
| ||||
szReportCodeAddBook003 | AC03 | char | OPT | NONE |
One of thirty reporting codes that you can assign to an address in the Address Book system. Use these codes to identify addresses for
| ||||
szReportCodeAddBook004 | AC04 | char | OPT | NONE |
One of thirty reporting codes that you can assign to an address in the Address Book system. Use these codes to identify addresses for
| ||||
szReportCodeAddBook005 | AC05 | char | OPT | NONE |
One of thirty reporting codes that you can assign to an address in the Address Book system. Use these codes to identify addresses for
| ||||
szReportCodeAddBook006 | AC06 | char | OPT | NONE |
One of thirty reporting codes that you can assign to an address in the Address Book system. Use these codes to identify addresses for
| ||||
szReportCodeAddBook007 | AC07 | char | OPT | NONE |
One of 30 reporting codes that you can assign to an address in the Address Book system. Category Code 07 is used in the 1099 process to
| ||||
szReportCodeAddBook008 | AC08 | char | OPT | NONE |
One of thirty reporting codes that you can assign to an address in the Address Book system. Use these codes to identify addresses for
| ||||
szReportCodeAddBook009 | AC09 | char | OPT | NONE |
One of thirty reporting codes that you can assign to an address in the Address Book system. Use these codes to identify addresses for
| ||||
szReportCodeAddBook010 | AC10 | char | OPT | NONE |
One of thirty reporting codes that you can assign to an address in the Address Book system. Use these codes to identify addresses for
| ||||
szReportCodeAddBook011 | AC11 | char | OPT | NONE |
One of thirty reporting codes that you can assign to an address in the Address Book system. Use these codes to identify addresses for
| ||||
szReportCodeAddBook012 | AC12 | char | OPT | NONE |
One of thirty reporting codes that you can assign to an address in the Address Book system. Use these codes to identify addresses for
| ||||
szReportCodeAddBook013 | AC13 | char | OPT | NONE |
One of thirty reporting codes that you can assign to an address in the Address Book system. Use these codes to identify addresses for
| ||||
szReportCodeAddBook014 | AC14 | char | OPT | NONE |
One of thirty reporting codes that you can assign to an address in the Address Book system. Use these codes to identify addresses for
| ||||
szReportCodeAddBook015 | AC15 | char | OPT | NONE |
One of thirty reporting codes that you can assign to an address in the Address Book system. Use these codes to identify addresses for
| ||||
szReportCodeAddBook016 | AC16 | char | OPT | NONE |
One of thirty reporting codes that you can assign to an address in the Address Book system. Use these codes to identify addresses for
| ||||
szReportCodeAddBook017 | AC17 | char | OPT | NONE |
One of thirty reporting codes that you can assign to an address in the Address Book system. Use these codes to identify addresses for
| ||||
szReportCodeAddBook018 | AC18 | char | OPT | NONE |
One of thirty reporting codes that you can assign to an address in the Address Book system. Use these codes to identify addresses for
| ||||
szReportCodeAddBook019 | AC19 | char | OPT | NONE |
One of thirty reporting codes that you can assign to an address in the Address Book system. Use these codes to identify addresses for
| ||||
szReportCodeAddBook020 | AC20 | char | OPT | NONE |
One of thirty reporting codes that you can assign to an address in the Address Book system. Use these codes to identify addresses for
| ||||
szCategoryCodeAddressBk21 | AC21 | char | OPT | NONE |
One of thirty reporting codes that you can assign to an address in the Address Book system. Use these codes to identify addresses for
| ||||
szCategoryCodeAddressBk22 | AC22 | char | OPT | NONE |
One of thirty reporting codes that you can assign to an address in the Address Book system. Use these codes to identify addresses for
| ||||
szCategoryCodeAddressBk23 | AC23 | char | OPT | NONE |
One of thirty reporting codes that you can assign to an address in the Address Book system. Use these codes to identify addresses for
| ||||
szCategoryCodeAddressBk24 | AC24 | char | OPT | NONE |
One of thirty reporting codes that you can assign to an address in the Address Book system. Use these codes to identify addresses for
| ||||
szCategoryCodeAddressBk25 | AC25 | char | OPT | NONE |
One of thirty reporting codes that you can assign to an address in the Address Book system. Use these codes to identify addresses for
| ||||
szCategoryCodeAddressBk26 | AC26 | char | OPT | NONE |
One of thirty reporting codes that you can assign to an address in the Address Book system. Use these codes to identify addresses for
| ||||
szCategoryCodeAddressBk27 | AC27 | char | OPT | NONE |
One of thirty reporting codes that you can assign to an address in the Address Book system. Use these codes to identify addresses for
| ||||
szCategoryCodeAddressBk28 | AC28 | char | OPT | NONE |
One of thirty reporting codes that you can assign to an address in the Address Book system. Use these codes to identify addresses for
| ||||
szCategoryCodeAddressBk29 | AC29 | char | OPT | NONE |
One of thirty reporting codes that you can assign to an address in the Address Book system. Use these codes to identify addresses for
| ||||
szCategoryCodeAddressBk30 | AC30 | char | OPT | NONE |
One of thirty reporting codes that you can assign to an address in the Address Book system. Use these codes to identify addresses for
| ||||
szPODefaultCountryForPayroll | CCPR | char | OPT | NONE |
A user defined code list 00/CN that indicates the country in which the employee resides. | ||||
cPOEmergencyContactType | TYC | char | OPT | NONE |
A user defined code (01/W0) that identifies the Who's Who entry. Examples include:
A
Attention name
B
Billing
C
Contact name
E
Emergency
| ||||
szPOHomePhoneNumberType | PHTP | char | OPT | NONE |
A user defined code (01/PH) that indicates either the location or use of a telephone number. Valid values include:
Blank
Business telephone
| ||||
szPOWorkPhoneNumberType | PHTP | char | OPT | NONE |
A user defined code (01/PH) that indicates either the location or use of a telephone number. Valid values include:
Blank
Business telephone
|
None |
None |