Articles

Importing Vendors

Districts buying Escape generally have existing vendor records on some computerized format. This write-up discusses plans for converting those records for import into Escape. Source files for this conversion are ASCII files which we will convert to the Escape format. The rest of this document outlines the rules and format of the record layouts. This document describes the procedures for importing vendor information into Escape prior to system startup.

WARNING: THIS PROGRAM WILL REMOVE THE EXISTING VENDORS IN YOUR ESCAPE SYSTEM! If you are trying to update or load new vendors into your Escape system, then you should use the import vendor function from within Escape AP Module.

Vendor Import Rules

The file must be in ASCII, with fixed field format. NO packed or binary information! No delimiters please! You may utilize any or all of the fields specified below - when not using a field it is to be padded with blanks (ASCII 32). If the field is filled with blanks, the system will fill the field with blanks.

Date Fields

This field must be in YYYYMMDD format, eight characters in length. For example, December 1st, 2003 would be 20031201.

Time Fields

This field must be in HHMM format, four characters in length. For example, 6:00am would be 0600 and 3:30pm would be 1530.

Decimal fields

These fields accept numbers only. The fields must be "right justified" and "zero filled." No "punctuation" is allowed and the decimal point is implied. For example, if the Shipping Percentage field has been defined like this:

SHIPPING_CPT   STRING(4)   DDdd

Then a value of 8.5% would be formatted like this: 0850

Integer fields

These fields accept numbers only. The fields must be "right justified" and "zero filled." No "punctuation" is allowed. For example, if the Ship Days has been defined like this:

SHIP_DAYS  STRING(3)   DDD

Then the Ship Days of 45 would be formatted like this: 045

Another example. If the Zip Code has been defined like this:

ZIP_CODE     STRING (10)     DDDDDDDDDD

Then the zip code 95827 0978 would be formatted like this: 95827-0978 OR 95827 0978

Each record must end with ASCII Carriage Return (CR) and Line Feed (LF) characters. A number of decisions may need to be made regarding formatting the district's existing data to match our format. We will assist each district in deciding which fields to convert, etc.

Conversion Considerations

Required Fields

If you are a Purchasing stand-alone customer (not Finance), then there are only 2 required fields - CODE and COMPANY_NAME1. If you are an Escape Finance customer, then there are 3 required fields - CODE and COMPANY_NAME1 and NO_1099_FORM.

NOTE re NO_1099_FORM

The import file will set the NO 1099 flag to Y if there is no value for this field in the import file AND if there is no TAX ID number. If there is a TAX ID number, the import will not set the flag. When the user edits the vendor record in Escape, the user will be prompted to fill the 1099 field.

Status

If a vendor is active, this field should be blank! If you are importing inactive vendors, you may put a value in the field to indicate that. Most customers do not import inactive vendors.

Sort Code

Fill this with the first 10 characters of the Vendor Name.

Department

This is not a required field and is not used for selection or filtering of vendor records. It is an information-only field.

Shipping and Terms fields.

Ask your Purchasing Director for default values which you can prefill into the Terms, Ship Days, Ship Pct, Ship Via and FOB fields of all the Vendor records. By doing this, only exceptions will need to be modified.

District-Specific Codes

There are four district-specific fields to be used at the discretion of each district. Two of these fields are 2 bytes in length and 2 are 1 byte in length. An example of how a district used one of these fields is that a "1" designated the vendor as a minority-owned business.

Import File Layout

The Escape Import record layout contains the following fields which are listed below in the order required.

For your convenience, we have a column designating the position number in the ASCII file and a column heading if you are creating or editing this file in Microsoft Excel.

Field Size Pos
Num
Excel
Col
Heading
Description
Org_Id 6 1 A District or Organization Number
Status_Code 1 7 B Status of Vendor
(Leave Blank if Active)
Code 6 8 C Vendor Number or Code
(Required field)
Dept 4 14 D Dept Associated with Vendor.
(Info only)
Sort_Code 10 18 E Alpha Lookup Code
Company_Name1 30 28 F Vendor's Company Name (line 1 of 2, 30 chars each)(required field)
Company_Name2 30 58 G Vendor's Company Name (line 2 of 2, 30 chars each)
Street1 30 88 H Issue Street Address for Vendor (line 1 of 2, 30 chars each)
Street2 30 118 I Issue Street Address for Vendor (line 2 of 2, 30 chars each)
City 18 148 J Issue City for Vendor
State 2 166 K Issue State for Vendor
Zip_code 10 168 L Issue Zipcode (eg. 99999-0000 or 99999 1111)
Phone 13 178 M Issue Telephone Number
eg. (916)366-8076
Contact 30 191 N Issue Contact Person
Fax_number 13 221 O Issue Fax Number
eg. (916)366-8078
Extension 4 234 P Issue Contact Phone Extension
Country 15 238 Q Issue Address Country
Issue County 4 253 R Issue Address County
Terms 12 257 S Default Terms for Payment
Ship_via 12 269 T Default Ship Via Instructions
FOB 12 281 U Default FOB instructions
Tax_ID 12 293 V Vendor Tax Identification Number (eg. 393-33-3939)
Ship_Days 3 305 W Default # of days from PO date to ship date
Shipping_Pct 4 308 X Shipping Percentage (e.g.'1050' for 10.50%)
Remit2_Name1 30 312 Y Remit To Company Name (line 1 of 2)
Remit2_Name2 30 342 Z Remit To Company Name (line 2 of 2)
Remit2_Addr1 30 372 AA Remit To Address (line 1 of 2)
Remit2_Addr2 30 402 AB Remit To Address (line 2 of 2)
Remit2_City 18 432 AC Remit to City
Remit2_State 2 450 AD Remit To State
Remit2_Zip 10 452 AE Remit To Zip (eg. 94930-0000, or 94343 2012)
Remit2_Phone 13 462 AF Remit Telephone Number
eg. (916)366-8076
Remit2_Cntct 30 475 AG Remit Contact Person
Remit2_Fax 13 505 AH Remit Fax Number
eg. (916)366-8076
Remit2_Ext 4 518 AI Remit Contact Phone Extension
Remit2_Cntry 15 522 AJ Remit Address Country
Remit County 4 537 AK Remit Address County
Account_Num 20 541 AL Vendor's Account # for Your District
Message 50 561 AM Vendor Note Field
Sales_Tax_ID 16 611 AN State Sales Tax ID Number
No_1099_Form 1 627 AO Y/N Flag for Omitting 1099 for Vendor (required field if you are importing into Escape Finance system). To omit 1099 "Y" or " ",
"N" to create a 1099.
Discount_Days 3 628 AP Number of days discount is valid
Discount_Pct 4 631 AQ Percentage of discount (10.25% entered as 1025)
Payment_Hold 1 635 AR Payment hold flag (Y to hold payment)
MBE_WBE_Code 2 636 AS MBE/WBE Code
Garnished 1 638 AT Garnish flag (Y if will garnish)
Group_Code_1 10 639 AU 1st Commodity Group Code for Vendor
Group_Code_2 10 649 AV 2nd Commodity Group Code for Vendor
Group_Code_3 10 659 AW 3rd Commodity Group Code for Vendor
Group_Code_4 10 669 AX 4th Commodity Group Code for Vendor
Group_Code_5 10 679 AY 5th Commodity Group Code for Vendor
Combine_invc 1 689 AZ To combine invoice "Y" or " ",
"N" to not combine.

Running the Import Program - IMPRTVND.EXE dated 01/20/00

WARNING: Remember this program is for loading Vendors into the Escape system on start-up. THIS PROGRAM WILL REMOVE THE EXISTING VENDORS IN YOUR ESCAPE SYSTEM! If you are trying to update or load new vendors into your Escape system, then you should use the import vendor function from within Escape AP Module.

Before running the program you should back up the following groups of files found in the \ESCAPE\AP directory:

VENDORS.*
VND*.*

To run the Vendor Import Program you should be in the directory where your VENDORS.TXT import file is found. Usually this would be the \ESCAPE\IMPORT directory.

The IMPRTVND.EXE should be found in your \ESCAPE\UTIL directory. So to run the program, go to your \escape\import directory and type in the following:

K:\ESCAPE\IMPORT> \ESCAPE\UTIL\IMPRTVND.EXE

The program will automatically start to import and the results should look something like the example shown below:

Load vendors using "VENDORS.TXT" (Note: all vendor data will be deleted first)
Total converted: 33

Once complete, you should go back into Escape as normal and review the vendors file to verify the import file was loaded correctly. If the import failed, then you can restore the files you backed up before running the import program.

Verifying the Vendor Name and Addresses - VNDUTIL.EXE dated 03/23/04

Users must be out of the system to run this utility.

This utility reads the vendor file checking for names and addresses. It generates a log file with the vendor code, address seq, name and clues of invalid address records. It uses the following logic to determine if a name and address for the vendor is valid:

  • The payee name is at least 2 characters in length.
  • The payee street is at least 6 characters in length.
  • The payee city is at least 2 characters in length
  • The payee state or country must be at least 2 characters long
  • The payee zip code must be at least 5 characters.
  • The payee address sequence is unique.

To run the Vendor validation program you must be on the drive where Escape is located. You can be in any directory.

The VNDUTIL.EXE should be found in your \ESCAPE\UTIL directory. Type in the following:

\ESCAPE\UTIL\VNDUTIL.EXE

The program will automatically start to read the vendor records. The results should look something like the example shown below:

         Utility to report invalid Vendor Address Records
         Log produced is named \escape\ap\vndraddr.log

         Checking address sequence records for Address Elements
         Records Read: 1157

Total Read: 2100 Total Name Only Records: 116
Total Read: 2100 Total Errors: 105 

Once complete, two log files are generated:

  • \ESCAPE\AP\VNDRADDR.LOG - There are two sections to the log, the first lists the vendor address records with Name only. The second section, is missing address elements.

    When there is an invalid address, the vendor number, addr seq, missing elements, and name are entered in the log. The vendor number and name are not repeated for multiple address records reported for the same vendor.

  • \ESCAPE\AP\ESC_VNDR.LOG - If a vendor has a bad address, the log will report if they have a good address. A total vendor record count and error count is entered as the last entry of each section of each log.

The logs are appended to with each run of the utility. Delete it before running the utility subsequent times if you only want the errors for the current run.