CDW Corporation
August 28, 2002
ANSI X12 850 In Bound
Guidelines
August 28, 2002
The following pages are the guidelines for implementing the ANSI X12 850 document with CDW. The segments listed below are a subset of the 850 document. This represents all the segments that CDW is capable of receiving for version 4010.
SegmentMax.Loop
ID NameReq UseRepeat
(Header)
STTransaction Set HeaderM 1
BEGBeginning Segment for Purchase OrderM 1
CURCurrencyO1
REFReference NumbersO>1
PERAdministrative Communications ContactO3
TAXTax ReferenceO1
FOBF.O.B. Related InstructionsO1
CSHSales RequirementsO1
ITDTerms of Sale/Deferred Terms of SaleO1
DTMDate/Time ReferenceO3
LINItem Identification DetailO1
PWKPaperworkO25
PKGMarking, Packaging, LoadingO200
TD5Carrier Details (Rtg Seq/Trans Time)O3
N9Reference IdentificationO11|
MSGMessage TextO1000|
N1NameM 1200|
N2Additional Name InformationO 1|
N3Address InformationM 1|
N4Geographic LocationM 1|
REFReference NumbersO12|
PERAdministrative Communications ContactO>1|
(Detail)
PO1Baseline Item DataM1100,000-|
PO3Additional Item DetailO1|
MEAMeasurementsO2|
PIDProduct/Item DescriptionO1000*|
REFReference IdentificationO>1*|
SACService, Promotion, Allowance or ChargeO1|
FOBF.O.B. Related InstructionsO1|
DTMDate/Time ReferenceO3|
MSGMessage TextO>1
SCHLine Item ScheduleO>1*|
TD5Carrier Details (Rtg Seq/Trans Time)O>1*|
(Trailer)
CTTTransactions TotalsM1
SETransaction Set TrailerM1
* - Denotes that the segment is the only one in a loop
| - Denotes that the segment is included in a previous loop
Here is an example of an inbound 850 document:
ST*850*000000001
BEG*00*SA*TESTPO12345**20010401
CUR*BY*USD
REF*ZZ*REFERENCE NUMBER
PER*BD*BUYER NAME*TE*8005551234*EM*
TAX**SP*MN*********2
ITD*05*3*****30*****NET 30 DAYS
N9*ZZ*MESSAGES TO SALES REPRESENTATIVE
MSG*.
MSG*ATTENTION
MSG*.
MSG*NOTES TO SALES REPRESENTATIVE.
N1*BT*XYZ COMPANY*92*12345
N3*P.O. BOX 99999
N4*ANYTOWN*MN*123456789*US
N1*ST*XYZ COMPANY*92*12346
N3*123 COMPANY ST.
N4*ANYTOWN*MN*123456789*US
PER*DC*RECEIVER*TE*888-555-1212
PO1*0101*1*EA*154.06**VP*CDW 74886
PID*F****LANTRONIX MIRCRO PRINT SERVER
PO1*0201*1*EA*19.05**VP*CDW106091
PID*F****NEATO WHITE LABELS 100PK 2UP
PO1*0301*1*EA*66.85**VP*CDW99067
PID*F****SYMANTEC NORTON UTILITIES V3.0
PO1*0401*1*EA*57.88**VP*CDW77352
PID*F****PARTITION MAGIC
CTT*4
SE*32*010921382
Please note that the segment terminators are not shown.
The following is a guide to the notation that is used to present the specifications:
Req - Required or Usage
CConditional
MMandatory
OOptional
XRelational
TP - Element Type
ANAlpha Numeric
DTDate, in the form of CCYYMMDD
IDIdentifier or Qualifier
NxNumeric, where ‘x’ is the number of decimal positions
RDecimal, with the decimal point included
TMTime, in the form of HHMM
Header
ST - Transaction Set Header
ReferenceLength
ElementNumberDescriptionQual/DefReqTypeMinMax
ST01143Transaction code for document850 - InvoiceMID33
ST02329Transaction set control numberSequential #MAN49
same as SE02
BEG - Beginning Segment for Purchase Order
ReferenceLength
ElementNumberDescriptionQual/DefReqTypeMinMax
BEG01353Transaction Set Purpose Code‘00’ - OriginalMID22
BEG0292Purchase Order Type Code‘SA’ - Stand AloneMID22
BEG03324Purchase Order NumberMAN122
BEG04328Release NumberOAN130
BEG05373Purchase Order DateCCYYMMDDMDT88 BEG06 367 Contract Number O AN 1 30
BEG07587Acknowledgement TypeOID22
CUR - Currency
ReferenceLength
ElementNumberDescriptionQual/DefReqTypeMinMax
CUR0198Entity Identifier Code‘BY’-Buying PartyMID22
CUR02100Currency Code‘USD’-US DollarsMID33
REF – Reference Identification
ReferenceLength
ElementNumberDescriptionQual/DefReqTypeMinMax
REF01128Reference Number QualifierValid QualifiersMID23
REF02127Reference NumberCAN130
REF03352DescriptionOAN180
PER – Administrative Communications Contact
ReferenceLength
ElementNumberDescriptionQual/DefReqTypeMinMax
PER01366Contact Function CodeBD = Buyer ContactMID22
PER0293NameOAN135
PER03365Number Qualifier ‘TE’ - TelephoneOID22
PER04364Communication NumberInclude Area CodeOAN721
PER05365Number Qualifier ‘FX’ – Fax OID22
PER06364Communication NumberInclude Area CodeOAN721
PER07365Number Qualifier ‘EM’ - EmailOID22
PER08364Communication NumberEmail AddressOAN721
Header (continued)
TAX – Tax Reference
ReferenceLength
ElementNumberDescriptionQual/DefReqTypeMinMax
TAX01325Tax Identification NumberCAN120
TAX02309Location QualifierValid QualifiersOID12
TAX03310Location IdentificationCAN125
TAX12441Tax Exempt CodeValid QualifierOID11
FOB – F.O.B. Related Instructions
ReferenceLength
ElementNumberDescriptionQual/DefReqTypeMinMax
FOB01146Shipment Payment MethodValid QualifierMID22
FOB02309Location QualifierValid QualifiersCID12
FOB03352DescriptionLocation of CAN180
Responsibility
FOB06309Location QualifierValid QualifiersCID12
FOB07352DescriptionLocation WhereCAN180
Title Passes
CSH – Header Sale Condition
ReferenceLength
ElementNumberDescriptionQual/DefReqTypeMinMax
CSH02564Do-Not-Exceed Action CodeOID11
CSH03565Do-Not-Exceed AmountCN229
ITD – Terms of Sale/Deferred Terms of Sale
ReferenceLength
ElementNumberDescriptionQual/DefReqTypeMinMax
ITD01336Terms Type CodeValid CodesOID22
ITD02333Terms Basis Date CodeValid CodesMID12
ITD03338Terms Discount PercentageExpressed as a %OR16
ITD05351Terms Discount Days DueCN013
ITD07386Terms Net DaysON013
ITD12352DescriptionOAN180
ITD13765Day of MonthCN012
DTM – Date/Time Reference
ReferenceLength
ElementNumberDescriptionQual/DefReqTypeMinMax
DTM01374Date/Time QualifierValid QualifiersMID33
DTM02373DateCCYYMMDDCDT88
Header (continued)
LIN – Item Identification Detail
ReferenceLength
ElementNumberDescriptionQual/DefReqTypeMinMax
LIN02235Product/Service ID QualifierValid QualifiersMID22
LIN03234Product/Service IDMAN130
PWK – Paperwork
ReferenceLength
ElementNumberDescriptionQual/DefReqTypeMinMax
PWK01755Report Type CodeValid QualifiersMID22
PWK02756Report Transmission CodeValid QualifiersMID22
PWK07352DescriptionOAN180
PKG – Marking, Packaging, Loading
ReferenceLength
ElementNumberDescriptionQual/DefReqTypeMinMax
PKG01349Item Description TypeValid QualifiersMID11
PKG02753Packaging Characteristic CodeValid QualifiersOID15
PKG05352DescriptionOAN180
TD5 – Carrier Details (Routing Sequence/Transit Time)
ReferenceLength
ElementNumberDescriptionQual/DefReqTypeMinMax
TD505387RoutingCAN135
N9 – Reference Identification
ReferenceLength
ElementNumberDescriptionQual/DefReqTypeMinMax
N901128Reference Id Qualifier‘ZZ’-Mutually Def.MID23
N902127Reference IdMAN130
MSG – Message Text
ReferenceLength
ElementNumberDescriptionQual/DefReqTypeMinMax
MSG01933Free Form Message TextMID180
Header (continued)
N1 – Name
ReferenceLength
ElementNumberDescriptionQual/DefReqTypeMinMax
N10198Type of Organization‘BT’-Bill ToMID22
‘ST’-Ship To
N10293Name CAN135
N10366ID Code QualifierValid QualifiersCID12
N10467Identifying NumberCID217
N2 - Additional Name Information
ReferenceLength
ElementNumberDescriptionQual/DefReqTypeMinMax
N20193Name MAN135
N3 - Address Information
ReferenceLength
ElementNumberDescriptionQual/DefReqTypeMinMax
N301166AddressDestination addressMAN135
N302166AddressAdditional AddressOAN135
N4 - Geographic Location
ReferenceLength
ElementNumberDescriptionQual/DefReqTypeMinMax
N40119City NameXAN219
N402156State/Province CodeValid CodeOID22
N403116Postal CodeZip or postal codeOID49
N40426Country CodeNot necessary if USOID22
REF – Reference Identification
ReferenceLength
ElementNumberDescriptionQual/DefReqTypeMinMax
REF01128Reference Number QualifierValid QualifiersMID22
REF02127Reference NumberCAN130
PER – Administrative Communications Contact
ReferenceLength
ElementNumberDescriptionQual/DefReqTypeMinMax
PER01366Contact Function CodeValid QualifierMID22
PER0293NameOAN135
PER03365Number Qualifier ‘TE’ - TelephoneOID22
PER04364Communication NumberInclude Area CodeOAN721
PER05365Number Qualifier ‘FX’ – Fax OID22
PER06364Communication NumberInclude Area CodeOAN721
PER07365Number Qualifier ‘EM’ - EmailOID22
PER08364Communication NumberEmail AddressOAN721
Detail
PO1 - Baseline Item Data
ReferenceLength
ElementNumberDescriptionQual/DefReqTypeMinMax
PO101350Assigned IdentificationLine numberOAN16
PO102330Quantity OrderedTotal QuantityMR19
PO103355Unit of Measurement Code‘EA’-EachMID22
PO104212Unit PricePrice Per UnitCR114
PO105639Basis of Unit Price CodeValid QualifiersOID22
PO106235Product/Service ID Qualifier‘VP’-CDW ItemMID22
PO107234Product/Service IDProductCAN130
PO108235Product/Service ID Qualifier‘MG’-Man. Part #MID22
PO109234Product/Service IDProductCAN130
PO110235Product/Service ID Qualifier‘BP’-Buyers PartMID22
PO111234Product/Service IDProductCAN130
PO3 - Additional Item Detail
ReferenceLength
ElementNumberDescriptionQual/DefReqTypeMinMax
PO301371Change Reason CodeValid codesMID22
PO306380QuantityMR110
PO307355Unit of Measurement CodeValid qualifiersMID22
MEA - Measurements
ReferenceLength
ElementNumberDescriptionQual/DefReqTypeMinMax
MEA01737Measurement Ref Id CodeValid qualifierOID22
MEA02738Measurement QualifierValid qualifierOID13
MEA04355Unit of Measure‘EA’-EachMID22
MEA05740Range MinimumCR120
MEA06741Range MaximumCR120
PID - Product/Item Description
ReferenceLength
ElementNumberDescriptionQual/DefReqTypeMinMax
PID01349Item Description Type‘F’-Free FormMID11
PID05352DescriptionXAN180
REF - Reference Numbers
ReferenceLength
ElementNumberDescriptionQual/DefReqTypeMinMax
REF01128Reference Number QualifierSE - Serial numberMID22
REF02127Reference NumberS/N of itemXAN130
Detail (continued)
SAC – Service, Promotion, Allowance or Charge Information
ReferenceLength
ElementNumberDescriptionQual/DefReqTypeMinMax
SAC01248Allowance or Charge IndicatorValid qualifierMID11
SAC021300Service CodeValid codeCID44
SAC03559Agency Qualifier CodeValid codeCID22
SAC05610AmountON2115
FOB – F.O.B. Related Instructions
ReferenceLength
ElementNumberDescriptionQual/DefReqTypeMinMax
FOB01146Shipment Payment MethodValid QualifierMID22
FOB02309Location QualifierValid QualifiersCID12
FOB03352DescriptionLocation of CAN180
Responsibility
FOB06309Location QualifierValid QualifiersCID12
FOB07352DescriptionLocation WhereCAN180
Title Passes
DTM – Date/Time Reference
ReferenceLength
ElementNumberDescriptionQual/DefReqTypeMinMax
DTM01374Date/Time QualifierValid QualifiersMID33
DTM02373DateCCYYMMDDCDT88
MSG – Message Text
ReferenceLength
ElementNumberDescriptionQual/DefReqTypeMinMax
MSG01933Free Form Message TextMID180
SCH – Line Item Schedule
ReferenceLength
ElementNumberDescriptionQual/DefReqTypeMinMax
SCH01380QuantityMR110
SCH02355Unit of Measurement CodeValid CodesMID22
SCH05374Date/Time QualifierValid QualifiersMID33
SCH06373DateCCYYMMDDCDT88
TD5 – Carrier Details (Routing Sequence/Transit Time)
ReferenceLength
ElementNumberDescriptionQual/DefReqTypeMinMax
TD505387RoutingCAN135
Trailer
CTT - Transaction Totals
ReferenceLength
ElementNumberDescriptionQual/DefReqTypeMinMax
CTT01354Number of Line ItemsNumber of IT1MN016
segments used
SE - Transaction Set Trailer
ReferenceLength
ElementNumberDescriptionQual/DefReqTypeMinMax
SE0196Segments in TransactionST and SE includedMN016
SE02329Transaction Set ControlSame as ST02MAN49
850_I_40101