X12 850 Purchase Order
This Draft Standard for Trial Use contains the format and establishes the data contents of the Purchase Order Transaction Set (850) for use within the context of an Electronic Data Interchange (EDI) environment. The transaction set can be used to provide for customary and established business and industry practice relative to the placement of purchase orders for goods and services. This transaction set should not be used to convey purchase order changes or purchase order acknowledgment information.
- Segment
- * Element
- > Component
Interchange Control Header
To start and identify an interchange of zero or more functional groups and interchange-related control segments
Code to identify the type of information in the Authorization Information
- 00
- No Authorization Information Present (No Meaningful Information in I02)
Information used for additional identification or authorization of the interchange sender or the data in the interchange; the type of information is set by the Authorization Information Qualifier (I01)
Code to identify the type of information in the Security Information
- 00
- No Security Information Present (No Meaningful Information in I04)
This is used for identifying the security information about the interchange sender or the data in the interchange; the type of information is set by the Security Information Qualifier (I03)
Qualifier to designate the system/method of code structure used to designate the sender or receiver ID element being qualified
Identification code published by the sender for other parties to use as the receiver ID to route data to them; the sender always codes this value in the sender ID element
Qualifier to designate the system/method of code structure used to designate the sender or receiver ID element being qualified
Identification code published by the receiver of the data; When sending, it is used by the sender as their sending ID, thus other parties sending to them will use this as a receiving ID to route data to them
Code to identify the agency responsible for the control standard used by the message that is enclosed by the interchange header and trailer
- U
- U.S. EDI Community of ASC X12, TDCC, and UCS
This version number covers the interchange control segments
- 00401
- Draft Standards for Trial Use Approved for Publication by ASC X12 Procedures Review Board through October 1997
A control number assigned by the interchange sender
Code sent by the sender to request an interchange acknowledgment (TA1)
- 0
- No Acknowledgment Requested
- 1
- Interchange Acknowledgment Requested
Code to indicate whether data enclosed by this interchange envelope is test, production or information
- I
- Information
- P
- Production Data
- T
- Test Data
Type is not applicable; the component element separator is a delimiter and not a data element; this field provides the delimiter used to separate component data elements within a composite data structure; this value must be different than the data element separator and the segment terminator
- >
- Component Element Separator
Functional Group Header
To indicate the beginning of a functional group and to provide control information
Code identifying a group of application related transaction sets
- PO
- Purchase Order (850)
Code identifying party sending transmission; codes agreed to by trading partners
Code identifying party receiving transmission. Codes agreed to by trading partners
Time expressed in 24-hour clock time as follows: HHMM, or HHMMSS, or HHMMSSD, or HHMMSSDD, where H = hours (00-23), M = minutes (00-59), S = integer seconds (00-59) and DD = decimal seconds; decimal seconds are expressed as follows: D = tenths (0-9) and DD = hundredths (00-99)
Assigned number originated and maintained by the sender
Code used in conjunction with Data Element 480 to identify the issuer of the standard
- T
- Transportation Data Coordinating Committee (TDCC)
- X
- Accredited Standards Committee X12
Code indicating the version, release, subrelease, and industry identifier of the EDI standard being used, including the GS and GE segments; if code in DE455 in GS segment is X, then in DE 480 positions 1-3 are the version number; positions 4-6 are the release and subrelease, level of the version; and positions 7-12 are the industry or trade association identifiers (optionally assigned by user); if code in DE455 in GS segment is T, then other formats are allowed
- 004010
- Draft Standards Approved for Publication by ASC X12 Procedures Review Board through October 1997
Heading
Transaction Set Header
To indicate the start of a transaction set and to assign a control number
Code uniquely identifying a Transaction Set
- The transaction set identifier (ST01) used by the translation routines of the interchange partners to select the appropriate transaction set definition (e.g., 810 selects the Invoice Transaction Set).
- 850
- Purchase Order
Beginning Segment for Purchase Order
To indicate the beginning of the Purchase Order Transaction Set and transmit identifying numbers and dates
Code identifying purpose of transaction set
- 00
- Original
Code specifying the type of Purchase Order
- DS
- Dropship
- NE
- New Order
Identifying number for Purchase Order assigned by the orderer/purchaser
Reference Identification
To specify identifying information
This segment will be sent only if BEG02 = DS for Drop Ship.
Code qualifying the Reference Identification
- CO
- Customer Order Number
Administrative Communications Contact
To identify a person or office to whom administrative communications should be directed
This segment will be sent only if BEG02 = DS for Drop Ship.
Code identifying the major duty or responsibility of the person or group named
- BD
- Buyer Name or Department
Code identifying the type of communication number
- TE
- Telephone
F.O.B. Related Instructions
To specify transportation instructions relating to shipment
This segment will be sent only if BEG02 = DS for Drop Ship.
Date/Time Reference
To specify pertinent dates and times
Carrier Details (Routing Sequence/Transit Time)
To specify the carrier and sequence of routing and provide transit time information
Code specifying the method or type of transportation for the shipment
- AE
- Air Express
- H
- Customer Pickup
- M
- Motor (Common Carrier)
If Transportation Method/Type Code is "M" vendor will arrange freight
- T
- Best Way (Shippers Option)
- U
- Private Parcel Service
Code specifying the value of time used to measure the transit time
This element will be sent only if BEG02 = DS for Drop Ship and if TD504 =
AE for Air Express.
- CD
- Calendar Days (Includes weekends and Holidays)
Reference Identification
To transmit identifying information as specified by the Reference Identification Qualifier
Code qualifying the Reference Identification
- PO
- Purchase Order Number
Message Text
To provide a free-form format that allows the transmission of text information
Name
To identify a party by type of organization, name, and code
Code identifying an organizational entity, a physical location, property or an individual
- BT
- Bill-to-Party
- SF
- Ship From
- ST
- Ship To
If value in BEG02 = DS (drop ship) then the address in the N1*ST loop will be a Dot customer's location rather than a Dot ship-to location. If
customer's DUNS+4 number is available, a "9" will be sent in the N103 and the DUNS+4 will be sent in the N104. If DUNS+4 is not
available, the N103 & N104 will not be sent.
Free-form name
For BT : Dot Foods, Inc. or Dot Foods Canada, Inc.
Code designating the system/method of code structure used for Identification Code (67)
- 9
- D-U-N-S+4, D-U-N-S Number with Four Character Suffix
Code identifying a party or other code
- This segment, used alone, provides the most efficient method of providing organizational identification. To obtain this efficiency the "ID Code" (N104) must provide a key to the table maintained by the transaction processing party.
For BT: Dot Foods: 0256712560000; Dot Foods Canada: 2035370220000
Address Information
To specify the location of the named party
Geographic Location
To specify the geographic place of the named party
Free-form text for city name
- A combination of either N401 through N404, or N405 and N406 may be adequate to specify a location.
Code (Standard State/Province) as defined by appropriate government agency
- N402 is required only if city name (N401) is in the U.S. or Canada.
Code defining international postal zone code excluding punctuation and blanks (zip code for United States)
Detail
Baseline Item Data
To specify basic and most frequently used line item data
- PO102 is required.
Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken
- CA
- Case
- EA
- Each
Price per unit of product, service, commodity, etc.
Code identifying the type/source of the descriptive number used in Product/Service ID (234)
- PO106 through PO125 provide for ten different product/service IDs per each item. For example: Case, Color, Drawing No., U.P.C. No., ISBN No., Model No., or SKU.
- UK
- U.P.C./EAN Shipping Container Code (1-2-5-5-1)
Identifying number for a product or service
14 digit case GTIN (SCC-14)
Code identifying the type/source of the descriptive number used in Product/Service ID (234)
- UA
- U.P.C./EAN Case Code (2-5-5)
Identifying number for a product or service
12 digit case UPC
Code identifying the type/source of the descriptive number used in Product/Service ID (234)
- MG
- Manufacturer's Part Number
Identifying number for a product or service
Manufacturer product number
Code identifying the type/source of the descriptive number used in Product/Service ID (234)
- PI
- Purchaser's Item Code
Currency
To specify the currency (dollars, pounds, francs, etc.) used in a transaction
Code identifying an organizational entity, a physical location, property or an individual
- BY
- Buying Party (Purchaser)
Product/Item Description
To describe a product or process in coded or free-form format
Code indicating the format of a description
- If PID01 equals "F", then PID05 is used. If PID01 equals "S", then PID04 is used. If PID01 equals "X", then both PID04 and PID05 are used.
- F
- Free-form
Summary
Transaction Totals
To transmit a hash total for a specific element in the transaction set
- The number of line items (CTT01) is the accumulation of the number of PO1 segments. If used, hash total (CTT02) is the sum of the value of quantities ordered (PO102) for each PO1 segment.
Total number of line items in the transaction set
Sum of values of the specified data element. All values in the data element will be summed without regard to decimal points (explicit or implicit) or signs. Truncation will occur on the left most digits if the sum is greater than the maximum size of the hash total of the data element.
-.0018 First occurrence of value being hashed.
.18 Second occurrence of value being hashed.
1.8 Third occurrence of value being hashed.
18.01 Fourth occurrence of value being hashed.
1855 Hash total prior to truncation.
855 Hash total after truncation to three-digit field.
Total order quantity
Numeric value of weight
Total order weight
Transaction Set Trailer
To indicate the end of the transaction set and provide the count of the transmitted segments (including the beginning (ST) and ending (SE) segments)
Total number of segments included in a transaction set including ST and SE segments
Functional Group Trailer
To indicate the end of a functional group and to provide control information
Total number of transaction sets included in the functional group or interchange (transmission) group terminated by the trailer containing this data element
Interchange Control Trailer
To define the end of an interchange of zero or more functional groups and interchange-related control segments
Purchase Order Sample from DOT Foods 1
GS*PO*SENDERGS*RECEIVERGS*20231101*013723*000000001*X*004010
ST*850*000000001
BEG*00*NE*351040-001**20170906
DTM*118*20170911
TD5****H
N9*PO*351040-001
MSG*M for TH-07T & W for M-07M 26 plts T/L-TH for Mon
MSG*if you have another truck
MSG*PENNSAUKEN FOR IL
MSG*Turn pallets sideways
N1*SF*ABC COMPANY*9*0547328390000
N3*5195 CENTRAL HIGHWAY
N4*PENNSAUKEN*NJ*081094607*US
N1*BT*DOT FOODS, INC.*9*0256712560000
N3*P.O. BOX 192*1 DOT WAY
N4*MT. STERLING*IL*623530192*US
N1*ST*DOT FOODS, INC.*9*0256712560103
N3*P.O. BOX 192*1 DOT WAY
N4*MT. STERLING*IL*623530192*US
PO1**120*CA*24.93**UK*10073321001213*UA*007332100121*MG*3010*PI*339980
CUR*BY*USD
PID*F****JJF SPRTZL-SUP BKD 2.5 OZ 100-2.5 O
PO1**400*CA*24.93**UK*10073321001169*UA*007332100116*MG*3014*PI*339982
CUR*BY*USD
PID*F****JJF SPRTZL-KG SZ BKD 5Z 50-5 OZ
PO1**270*CA*16.7**UK*10073321001152*UA*007332100115*MG*3085*PI*339984
CUR*BY*USD
PID*F****JJF SPRTZL BITES 350-10 GR
PO1**88*CA*27.05**UK*10073321071650*UA*007332107165*MG*7165*PI*390419
CUR*BY*USD
PID*F****JJF PRET-PFLR TWSTD PZA 24-6.25 OZ
PO1**88*CA*27.05**UK*10073321071674*UA*007332107167*MG*7167*PI*390421
CUR*BY*USD
PID*F****JJF PRET-PFLR HOLLERIN JAL 24-6.25
PO1**88*CA*27.05**UK*10073321071681*UA*007332107168*MG*7168*PI*390422
CUR*BY*USD
PID*F****JJF PRET-PFLR SWT DRE CCHS 24-6.25
PO1**72*CA*24.52**UK*10073321384408*UA*007332138440*MG*38440*PI*442216
CUR*BY*USD
PID*F****JJF SBT-CUP LUIG ORG 4Z 96-4 FO
PO1**105*CA*33.72**UK*10895599002163*UA*089559900216*MG*D412*PI*444740
CUR*BY*USD
PID*F****JJF COND CNSG BGS 2-10 LB
PO1**200*CA*21.39**UK*10073321310124*UA*007332131012*MG*31012*PI*461264
CUR*BY*USD
PID*F****JJF SOFT PRET WHEAT RODS 180-1 OZ
PO1**240*CA*25.12**UK*10073321301108*UA*007332130110*MG*30110*PI*462200
CUR*BY*USD
PID*F****JJF SFPTZ RG SZ WHE 51% 100-2.2 OZ
PO1**17*CA*17.07**UK*10073321384613*UA*007332138461*MG*38461*PI*464682
CUR*BY*USD
PID*F****JJF LNA CHER IIC NAS 48-4 OZ
PO1**120*CA*28.75**UK*00766000666249*UA*076600066624*MG*66624A*PI*566028
CUR*BY*USD
PID*F****JJF K&S SPZ SIC FETA 24-6 OZ
PO1**50*CA*24.93**UK*10074865587607*UA*007486558760*MG*2001402*PI*571734
CUR*BY*USD
PID*F****SYS PRETZ KG 50-5 OZ
PO1**144*CA*29.21**UK*10073321484467*UA*007332148446*MG*48446*PI*592843
CUR*BY*USD
PID*F****JJF SORB C/ CY' BLRAS SWL 96-4.4 FO
CTT*14*2002*30899.14*LB
SE*62*000000001
GE*1*000000001
IEA*1*000000001
Purchase Order Sample from DOT Foods 2
GS*PO*SENDERGS*RECEIVERGS*20231101*013736*000000001*X*004010
ST*850*000000001
BEG*00*NE*346995-001**20170830
DTM*118*20170911
TD5****H
N9*PO*346995-001
MSG*Thurs for 2nd Mon 10T (TL)
N1*SF*ABC COMPANY*9*0547328390001
N3*5353 DOWNEY ROAD
N4*VERNON*CA*900580000*US
N1*BT*DOT FOODS CANADA, INC.*9*2035370220000~
N3*P.O. BOX 192*1 DOT WAY
N4*MT. STERLING*IL*623530192*US
N1*ST*DOT FOODS, INC.*9*2035991394301
N3*BAY 613-617 28TH ST NE
N4*CALGARY*AB*T2A4L6*CA
PO1**50*CA*29.46**UK*10073321001169*UA*007332100116*MG*3014*PI*339982
CUR*BY*CAD
PID*F****JJF SPRTZL-KG SZ BKD 5Z 50-5 OZ
PO1**91*CA*32.43**UK*10073321032958*UA*007332103295*MG*3295*PI*344086
CUR*BY*CAD
PID*F****JJF BAV BKY PRET-STX 72-2.4 OZ
PO1**42*CA*45.46**UK*10053493070415*UA*005349307041*MG*7041*PI*489682
CUR*BY*CAD
PID*F****JJF BRENDAS BST SWT DG BAV 40-7 OZ
PO1**48*CA*63.63**UK*10073321405301*UA*007332140530*MG*40530*PI*510540
CUR*BY*CAD
PID*F****JJF FUNNEL CAKE 8.5" 6-48 CNT
PO1**1*CA*27.94**UK*10073321573741*UA*007332157374*MG*4497957374*PI*649107
CUR*BY*CAD
PID*F****JJF PRETZ 12-10 OZ
CTT*5*232*3850.5*LB
SE*32*000000001
GE*1*000000001
IEA*1*000000001
Stedi is a registered trademark of Stedi, Inc. All names, logos, and brands of third parties listed on this page are trademarks of their respective owners (including “X12”, which is a trademark of X12 Incorporated). Stedi, Inc. and its products and services are not endorsed by, sponsored by, or affiliated with these third parties. Use of these names, logos, and brands is for identification purposes only, and does not imply any such endorsement, sponsorship, or affiliation.