Purchase Order

ANSI X12 850

Version 4010

Author: / Lastar
Modified: / 04/29/2015

Document Overview

The purpose of this document is to provide C2G’s trading partners with detailed specifications and guidelines for implementing the electronic purchase order (850) with C2G.

850 /

Purchase Order

Functional Group=PO

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.

Not Defined:

Pos / Id / Segment Name / Req / Max Use / Repeat / Notes
ISA / Interchange Control Header / M / 1
GS / Functional Group Header / M / 1
ST / Transaction Set Header / M / 1

Heading:

Pos / Id / Segment Name / Req / Max Use / Repeat / Notes
020 / BEG / Beginning Segment for Purchase Order / M / 1
050 / REF / Reference Identification / O / >1
240 / TD5 / Carrier Details / O / 1
LOOP ID – N9 / 1
295 / N9 / Reference Identification / O / 1
300 / MSG / Message Text / O / 1000
LOOP ID - N1 / 200
310 / N1 / Name / M / 1
330 / N3 / Address Information / M / 2
340 / N4 / Geographic Location / M / 1

Detail:

Pos / Id / Segment Name / Req / Max Use / Repeat / Notes
LOOP ID - PO1 / 100000
010 / PO1 / Baseline Item Data / M / 1
289 / MSG / Message Text / O / <1

Summary:

Pos / Id / Segment Name / Req / Max Use / Repeat / Notes
LOOP ID - CTT / 1
010 / CTT / Transaction Totals / M / 1
030 / SE / Transaction Set Trailer / M / 1

Not Defined:

Pos / Id / Segment Name / Req / Max Use / Repeat / Notes
SE / Transaction Set Trailer / M / 1
GE / Functional Group Trailer / M / 1
IEA / Interchange Control Trailer / M / 1
BEG /

Beginning Segment for Purchase Order

/ Pos: 020 / Max: 1
Heading - Mandatory
Loop: N/A / Elements: 5

Element Summary:

Ref / Id / Element Name / Req / Type / Min/Max
BEG01 / 353 / Transaction Set Purpose Code / M / ID / 2/2
Code / Name
00 / Original
BEG02 / 92 / Purchase Order Type Code / M / ID / 2/2
Code / Name
SA / Stand Alone
DS / Drop Ship
BEG03 / 324 / Purchase Order Number
External Information: This field will contain the Lastar PO number for this order. / M / AN / 1/22
BEG04 / 328 / Release Number / O / AN / 1/30
BEG05 / 373 / Date
External Information: This field will be the PO date
Formatting Notes: CCYYMMDD / M / DT / 8/8

Semantics:

1. / BEG05 is the date assigned by the purchaser to purchase order.
REF /

Reference Identification

/ Pos: 050 / Max: >1
Heading - Optional
Loop: N/A / Elements: 2

Element Summary:

Ref / Id / Element Name / Req / Type / Min/Max
REF01 / 353 / Reference Identification Qualifier / M / ID / 2/2
Code / Name
TH
CO / TRANSPORTATION ACCOUNT CODE
Carrier account number
CUSTOMER ORDER NUMBER
End user PO number
REF02 / 324 / Reference Identification / M / AN / 1/30
TD5 / Carrier Details (Routing Sequence/Transit Time) / Pos: 240Max: 1
Heading - Optional
Loop: N/AElements: 6

To specify the carrier and sequence of routing and provide transit time information

Element Summary:

Ref _ / Id_ / Element Name _ / Req / Type / Min/Max
TD502 / 66 / Identification Code Qualifier
Description: Code designating the system/method of code structure used for Identification Code (67)
Code Name
2Standard Carrier Alpha Code (SCAC)
93Code assigned by the organization originating the transaction set / C / ID / 1/2
TD503 / 67 / Identification Code
Description: Code identifying a party or other code / C / AN / 2/80
TD505 / 387 / Routing
Description: Free-form description of the routing or requested routing for shipment, or the originating carrier's identity / C / AN / 1/35

Syntax:

R0204050612 -- At least one of TD502, TD504, TD505, TD506 or TD512 is required.

C0203 -- If TD502 is present, then TD503 is required

C0708 -- If TD507 is present, then TD508 is required

C1011 -- If TD510 is present, then TD511 is required

C1312 -- If TD513 is present, then TD512 is required

C1413 -- If TD514 is present, then TD513 is required

C1512 -- If TD515 is present, then TD512 is required

Semantics:

1.TD515 is the country where the service is to be performed.

Comments:

1.When specifying a routing sequence to be used for the shipment movement in lieu of specifying each carrier within the movement, use TD502 to identify the party responsible for defining the routing sequence, and use TD503 to identify the actual routing sequence, specified by the party identified in TD502.

N9 /

Reference Identification

/ Pos: 295 / Max: 1
Heading - Optional
Loop: N9 / Elements: 2

Element Summary:

Ref / Id / Element Name / Req / Type / Min/Max
N901 / 128 / Reference Identification Qualifier / M / ID / 2/3
Code / Name
L1 / LETTERS OR NOTES
N902 / 127 / Reference Identification / O / AN / 1/30
MSG /

Message Text

/ Pos: 300 / Max: 1000
Heading - Optional
Loop: N9 / Elements: 1

Element Summary:

Ref / Id / Element Name / Req / Type / Min/Max
MSG01 / 933 / Reference Identification
Formatting Notes: C2G can accommodate up to 70 characters in this field. For longer messages, please send multiple MSG segments. / O / AN / 1/264
N1 /

Name

/ Pos: 310 / Max: 1
Heading - Mandatory
Loop: N1 / Elements: 4

Element Summary:

Ref / Id / Element Name / Req / Type / Min/Max
N101 / 98 / Entity Identifier Code / M / ID / 2/3
Code / Name
ST / Ship To
N102 / 93 / Name
External Information: This will be the ship to name / X / AN / 1/60
N103 / 66 / Identification Code Qualifier / M / ID / 1/2
Code / Name
ZZ / Mutually Defined
N104 / 67 / Identification Code
External Information: This field will be a code that represents the ship to location. / X / AN / 2/80

Syntax:

1. / R0203 - At least one of N102,N103 is required
2. / P0304 - If either N103,N104 is present, then all are required
N3 / Address Information / Pos: 330Max: 2
Heading - Optional
Loop: N1Elements: 2

To specify the location of the named party

Element Summary:

Ref _ / Id_ / Element Name _ / Req / Type / Min/Max
N301 / 166 / Address Information
Description: Address information / M / AN / 1/55
N302 / 166 / Address Information
Description: Address information / O / AN / 1/55
N4 / Geographic Location / Pos: 340Max: >1
Heading - Optional
Loop: N1Elements: 3

To specify the geographic place of the named party

Element Summary:

Ref _ / Id_ / Element Name _ / Req / Type / Min/Max
N401 / 19 / City Name
Description: Free-form text for city name / O / AN / 2/30
N402 / 156 / State or Province Code
Description: Code (Standard State/Province) as defined by appropriate government agency / O / ID / 2/2
N403 / 116 / Postal Code
Description: Code defining international postal zone code excluding punctuation and blanks (zip code for United States) / O / ID / 3/15

Syntax:

1. N406 C0605 -- If N406 is present, then N405 is required

Comments:

1.A combination of either N401 through N404, or N405 and N406 may be adequate to specify a location.

2.N402 is required only if city name (N401) is in the U.S. or Canada.

PO1 /

Baseline Item Data

/ Pos: 010 / Max: 1
Detail - Mandatory
Loop: PO1 / Elements: 7

Element Summary:

Ref / Id / Element Name / Req / Type / Min/Max
PO101 / 350 / Assigned Identification / O / AN / 1/20
PO102 / 330 / Quantity Ordered
External Information: This field will be the quantity of this item ordered / X / R / 1/15
PO103 / 355 / Unit or Basis for Measurement Code / O / ID / 2/2
Code / Name
EA / Each
PO104 / 212 / Unit Price / X / R / 1/17
PO105 / 639 / Basis of Unit Price Code / O / ID / 2/2
PO106 / 235 / Product/Service ID Qualifier / X / ID / 2/2
Code / Name
VP / Vendor item number
PO107 / 234 / Product/Service ID
External Information: This field will be the item ID / X / AN / 1/48
PO108 / 235 / Product/Service ID Qualifier / X / ID / 2/2
Code / Name
BP / Buyer item number
PO109 / 234 / Product/Service ID
External Information: This field will be the item ID / X / AN / 1/48

Syntax:

1. / C0302 - If PO103 is present, then all of PO102 are required
2. / C0504 - If PO105 is present, then all of PO104 are required
3. / P0607 - If either PO106,PO107 is present, then all are required
4. / P0809 - If either PO108,PO109 is present, then all are required
5. / P1011 - If either PO110,PO111 is present, then all are required
6. / P1213 - If either PO112,PO113 is present, then all are required
7. / P1415 - If either PO114,PO115 is present, then all are required
8. / P1617 - If either PO116,PO117 is present, then all are required
9. / P1819 - If either PO118,PO119 is present, then all are required
10. / P2021 - If either PO120,PO121 is present, then all are required
11. / P2223 - If either PO122,PO123 is present, then all are required
12. / P2425 - If either PO124,PO125 is present, then all are required

Comments:

1. / See the Data Element Dictionary for a complete list of IDs.
2. / PO101 is the line item identification.
3. / 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.
MSG /

Message Text

/ Pos: 289 / Max: 1000
Detail - Optional
Loop: MSG / Elements: 1

Element Summary:

Ref / Id / Element Name / Req / Type / Min/Max
MSG01 / 933 / Reference Identification
Formatting Notes: C2G can accommodate up to 70 characters in this field. For longer messages, please send multiple MSG segments. / O / AN / 1/264
CTT /

Transaction Totals

/ Pos: 010 / Max: 1
Summary - Mandatory
Loop: CTT / Elements: 2

Element Summary:

Ref / Id / Element Name / Req / Type / Min/Max
CTT01 / 354 / Number of Line Items / M / N0 / 1/6
CTT02 / 347 / Hash Total
External Information: This field will be the total number of items ordered / M / R / 1/10

Syntax:

1. / P0304 - If either CTT03,CTT04 is present, then all are required
2. / P0506 - If either CTT05,CTT06 is present, then all are required

Comments:

1. / This segment is intended to provide hash totals to validate transaction completeness and correctness.

SAMPLE 850

ISA*00* *00* *ZZ*ABCDEFG *01*9372248646 *080604*0913*U*00401*725340631*0*P*>~

GS*PO*ABCDEFG*9372248646*20080604*0913*725340631*X*004010~

ST*850*00000001~

BEG*00*SA*350889**20080604~

REF*TH*12345~

REF*CO*PO67890~

TD5***07**UPS GROUND~

N9*L1*MESSAGE TO FOLLOW~

MSG*SPECIAL INSTRUCTIONS~

N1*ST*JOHN SMITH~

N3*2860 ABC DR~

N4*ANYCITY*MN*55125~

PO1**2*EA*6.95**VP*40657*BP*ABCDE~

MSG*LINE ITEM INSTRUCTIONS~

CTT*1~

SE*14*00000001~

GE*1*725340631~

IEA*1*725340631~

LastarPurchase Order Specs (ANSI X12 850)Page 1