EDI Sales Order Import (Freeway Commerce format)

DOWNLOAD SAMPLE FILE: SOrdEDIXML.csv

Required filename is EDI_Import.csv. In the tables below, remarks relating to Infoplex are in blue, whereas as those relating to Freeway’s specifications are in black or other colours. The Order import format can contain up to six record types, not all of which are processed into TASBooks:

#Record TypeNote
1StructureFixed Length. 1 record per file
2HeaderCSV – Uses Header ID from structure record. 1 record per Order
3Text LineCSV – Not processed (ignored so not detailed here)
4Detail (Product)CSV – Uses Detail ID from structure record. 1 or more records per Order
5ScheduleCSV – Not processed (ignored so not detailed here)
6ReconciliationCSV – Not processed (ignored so not detailed here)

Structure Record

1 per file. The first record in the file must be this string:

COMMADD/MM/YY hh:mm:ssHEAD DTL VAT TRAILSCHED

Header Record

Mandatory, one per Invoice

FieldLabelData TypeMax SizeRequired?Remarks
1Record IDA5YMust = HEAD, otherwise order rejected. [Fixed value indicating new header record].
2Company CodeA20YMust = “Company Representation Code” as set up in EDI/XML Central Info, otherwise order rejected (i.e. “received in error”). [Internal representation of company receiving the order]
3Customer CodeA20YTAS SO Customer Code; must exist in TAS or in EDI/XML Customer Mapping file, otherwise order rejected. [Internal accounting code for customer]
4Location CodeA20YTAS SO Delivery Code; unless blank, must exist in TAS or in EDI/XML Delivery Address Mapping file otherwise order rejected. [Internal accounting code for delivery point]
5Order NumberA25YTAS SO Ref (Customer’s); Customer Order Number is validated per “Mask” set up in EDI/XML Customer Mapping.
6Order DateD11YTAS SO Date; must be DD/MM/YY format, otherwise order rejected. Reasonableness check based on target company’s financial calendar: minimum = 4 Years Past, Period 1 Start Date, maximum = Current Year, Last Period End Date PLUS 1 Year. If blank or unreasonable, default = SL Date.
7Required Delivery DateD11NTAS SO Expected Ship Date; must be DD/MM/YY format, otherwise order rejected. Reasonableness check based on target company’s financial calendar: minimum >= Order Date, maximum = Current Year, Last Period End Date PLUS 5 Years. If blank or unreasonable, default = SL Date
8Required Delivery TimeT8NValue used in MultiTAS Delivery Instructions field
9Delivery Instructions Line1A40NValue ignored. [Up to four lines of 40 characters]
10Del Instructions Line 2A40NValue ignored
11Del Instructions Line 3A40NValue ignored
12Del Instructions Line 4A40NValue ignored
13NotesA40NValue ignored. [As Required]
14Delivery Instruction No.A20NValue ignored [NO]
15Cancellation DateD11NValue ignored. [Optional secondary delivery date]
16Direct Delivery IndicatorA1NValue ignored. Y = non standard delivery address specified by customer
17Delivery Party NameA35NTAS SO Delivery Name; if blank, then per TAS Delivery Code (above), otherwise TAS Customer Name
18Delivery Address Line 1A40NTAS SO Delivery Address 1; if blank, then per TAS Delivery Code (above), otherwise TAS Customer Inv Address 1
19Delivery Address Line 2A40NTAS SO Delivery Address 2; as previous
20Delivery Town/CityA30NTAS SO Delivery Address 3; as previous
21Delivery CountyA25NTAS SO Delivery Address 4; as previous
22Delivery Post CodeA10NTAS SO Delivery Postcode (trimmed to 8 chars); as previous
23Customer ANA NumberA13NValue ignored. [EDI Identity for customer]
24Location ANA NumberA13NValue ignored
25Customers Location CodeA17NValue ignored; see Field 4 above
26Reference CurrencyA5NValue ignored
27Ordering CurrencyA5NValue ignored
28Exchange RateN20NValue ignored
29Order TypeA17NValue ignored. [Message Sub Function]
30Latest Delivery DateD11NValue ignored
31Contract NumberA25NValue ignored
32Order Priority CodeA5NValue ignored
33Supplier Order NumberA25NValue ignored
34Supplier Order DateA11NValue ignored

Detail (Product) Record

Mandatory. Repeated as required

FieldLabelData TypeMax SizeRequired?Remarks
1Record IDA5YMust = DTL or LINE, otherwise order line item rejected (and whole order if no line items accepted). [Fixed value indicating new detail record]
2Line NumberA4YValue ignored
3Product CodeA30YTAS SO body Product Code; unless empty, must exist in TAS or in EDI/XML Customer-Product Mapping file, otherwise line rejected (and whole order if no line items accepted); if empty see Field 7 below. A value of ‘-‘ indicates a text line and the text is taken from the Description (Field 11). [Your internal product code]
4Product GroupA20NValue ignored. [Your internal Product group]
5QuantityN10YTAS Order Quantity (2 d.p.)
6Traded Unit EANA13NValue ignored. [If allowable, these can reduce the amount of maintenance]
7Partner Product CodeA30NIf Field 3 is empty, used and must exist in EDI/XML as “Mapped Product” in Customer-Product Mapping file, otherwise order line item rejected (and whole order if no line items accepted). [Required externally]
8Display Until DateD11NValue ignored
9Best Before DateD11NValue ignored
10PriceN12NTAS SO line item Unit Price. Unless blank/empty, CSV price used, otherwise lookup done on Customer Price Type to select which TAS product selling price to use; if customer is set to use Dynamic Discount, check for Customer/Product combination to find any Dynamic Discount records. Calc remaining £ values accordingly based on the Line Disc Calc option set in TAS Central Information (012 tab 6)
11DescriptionA40NTAS SO line item Description, except if blank. If blank, use TAS Product Description – BUT if EDI Customer set to use TAS Product Description anyway, CSV description ignored
12Specified PriceN10NValue ignored. [If transmitted in order file.]
13To Follow IndicatorA1YValue ignored. [T = to follow allowed, N (or omitted) = cancel balance]
14Action RequestA1NValue ignored. [Action to take with this line. A = Add, D = Delete, U = Update]
15Pack SizeN15NValue ignored. [A whole number supplying the number of sellable units within a pack]
16Unit of MeasureA14NValue ignored. [“Unit of Measure” and “Measure Indicator” are used for variable-measure goods (i.e. wood). In most instances like this, the “Pack Size” will be empty (and vice-versa). It should be noted, however, that certain Trading Partners send data in all 3 fields. This is in a 10.3 decimal format]
17Measure IndicatorA6NValue ignored. [i.e. KG, EACH, M]
18Traded Unit DUN CodeA14NValue ignored. [14 digit outer case barcode (numeric only)]
19Reserved (Reference)A35NValue ignored. [Reference field for specific use by FCL]
20Reserved (Reference)A35NValue ignored. [Reference field for specific use by FCL]
21Last Delivery Note NumberA25NValue ignored
22Last Delivery DateD11NValue ignored
23Quantity of Last DeliveryN10NValue ignored
24Order NumberA25NValue ignored; see Field 5 in Header. [Customers’ Order Number]
25Order DateD11NValue ignored; see Field 6 in Header. [Customers’ Order ]Date