Stedi maintains this guide based on public documentation from Walgreens. Contact Walgreens for official EDI specifications. To report any errors in this guide, please contact us.
X12 850 Purchase Orders for Distribution Center (DC)
—
Delimiters
- ~ Segment
- * Element
- > Component
EDI samples
- None included
Powered by
Build EDI implementation guides at stedi.com
Overview
ISA
-
Interchange Control Header
Max use 1
Required
GS
-
Functional Group Header
Max use 1
Required
heading
ST
010
Transaction Set Header
Max use 1
Required
BEG
020
Beginning Segment for Purchase Order
Max use 1
Required
REF
050
Reference Identification Others
Max use 1
Required
REF
050
Reference Identification Schedule Reference Number
Max use 1
Optional
PER
060
Administrative Communications Contact Buyer Name or Department
Max use 1
Required
PER
060
Administrative Communications Contact Order Contact
Max use 1
Required
PER
060
Administrative Communications Contact Warehouse
Max use 1
Optional
ITD
130
Terms of Sale/Deferred Terms of Sale
Max use 1
Optional
DTM
150
Date/Time Reference
Max use 4
Required
detail
PO1 Loop
PO1
010
Baseline Item Data
Max use 1
Required
PO3
030
Additional Item Detail
Max use 1
Optional
PO4
090
Item Physical Details
Max use 1
Required
REF
100
Reference Identification
Max use 1
Optional
PER
110
Administrative Communications Contact
Max use 3
Optional
SDQ
190
Destination Quantity
Max use 500
Optional
MSG
289
Message Text
Max use 15
Optional
GE
-
Functional Group Trailer
Max use 1
Required
IEA
-
Interchange Control Trailer
Max use 1
Required
—
- 00
- No Authorization Information Present (No Meaningful Information in I02)
—
- 00
- No Security Information Present (No Meaningful Information in I04)
—
- U
- U.S. EDI Community of ASC X12, TDCC, and UCS
—
- 00401
- Draft Standards for Trial Use Approved for Publication by ASC X12 Procedures Review Board through October 1997
—
- 0
- No Acknowledgment Requested
- 1
- Interchange Acknowledgment Requested
—
- T
- Transportation Data Coordinating Committee (TDCC)
- X
- Accredited Standards Committee X12
Heading
REF
050
Heading > REF
Reference Identification Others
RequiredMax use >1
—
Usage notes
—
Example
Variants (all may be used)
REFReference Identification Schedule Reference NumberREF
050
Heading > REF
Reference Identification Schedule Reference Number
OptionalMax use 1
—
Usage notes
—
Example
Variants (all may be used)
REFReference Identification OthersPER
060
Heading > PER
Administrative Communications Contact Buyer Name or Department
RequiredMax use 1
—
Example
Variants (all may be used)
PERAdministrative Communications Contact Order ContactPERAdministrative Communications Contact WarehouseIf either Communication Number Qualifier (PER-03) or Communication Number (PER-04) is present, then the other is required
PER
060
Heading > PER
Administrative Communications Contact Order Contact
RequiredMax use 1
—
Example
Variants (all may be used)
PERAdministrative Communications Contact Buyer Name or DepartmentPERAdministrative Communications Contact WarehouseIf either Communication Number Qualifier (PER-03) or Communication Number (PER-04) is present, then the other is required
PER
060
Heading > PER
Administrative Communications Contact Warehouse
OptionalMax use 1
—
Example
Variants (all may be used)
PERAdministrative Communications Contact Buyer Name or DepartmentPERAdministrative Communications Contact Order ContactIf either Communication Number Qualifier (PER-03) or Communication Number (PER-04) is present, then the other is required
SAC Loop
OptionalMax 4
SAC
120
Heading > SAC Loop > SAC
Service, Promotion, Allowance, or Charge Information
RequiredMax use 1
—
Example
At least one of Service, Promotion, Allowance, or Charge Code (SAC-02) or Agency Qualifier Code (SAC-03) is required
If either Agency Qualifier Code (SAC-03) or Agency Service, Promotion, Allowance, or Charge Code (SAC-04) is present, then the other is required
If either Allowance/Charge Percent Qualifier (SAC-06) or Percent (SAC-07) is present, then the other is required
If either Unit or Basis for Measurement Code (SAC-09) or Quantity (SAC-10) is present, then the other is required
If Quantity (SAC-11) is present, then Quantity (SAC-10) is required
If Reference Identification (SAC-13) is present, then at least one of Service, Promotion, Allowance, or Charge Code (SAC-02) or Agency Service, Promotion, Allowance, or Charge Code (SAC-04) is required
—
- 1
- Item List Cost
- 2
- Item Net Cost
- 3
- Discount/Gross
- 4
- Discount/Net
- 5
- Base Price per Unit
- 6
- Base Price Amount
- 7
- Base Price Amount Less Previous Discount
- 8
- Net Monthly On All Invoices Past Due
- 9
- Late Payment Charge Base Amount
- Z
- Mutually Defined
—
- AS
- Assortment
- CA
- Case
- DE
- Deal
- DZ
- Dozen
- EA
- Each
—
- 01
- Bill Back
- 02
- Off Invoice
- 03
- Vendor Check to Customer
- 04
- Credit Customer Account
- 05
- Charge to be Paid by Vendor
- ZZ
- Mutually Defined
SAC Loop end
—
- 01
- Basic
- 02
- End of Month (EOM)
- 05
- Discount Not Applicable
- 12
- 10 Days After End of Month (10 EOM)
—
- 1
- Ship Date
- 2
- Delivery Date
- 3
- Invoice Date
- 15
- Receipt of Goods
N9 Loop
OptionalMax 1000
N9 Loop end
N1 Loop
RequiredMax 200
—
—
Usage notes
—
- BS
- Bill and Ship To
- BT
- Bill-to-Party
- BY
- Buying Party (Purchaser)—
- CS
- Consolidator
- SF
- Ship From
- ST
- Ship To
- SU
- Supplier/Manufacturer—
—
- 9
- D-U-N-S+4, D-U-N-S Number with Four Character Suffix
- 11
- Drug Enforcement Administration (DEA)—
- 92
- Assigned by Buyer or Buyer's Agent
N4
340
Heading > N1 Loop > N4
Geographic Location
OptionalMax use >1
—
Usage notes
—
Example
If Location Identifier (N4-06) is present, then Location Qualifier (N4-05) is required
N1 Loop end
Heading end
Detail
PO1 Loop
RequiredMax 100000
PO1
010
Detail > PO1 Loop > PO1
Baseline Item Data
RequiredMax use 1
—
Usage notes
—
Example
If Basis of Unit Price Code (PO1-05) is present, then Unit Price (PO1-04) is required
If either Product/Service ID Qualifier (PO1-08) or Product/Service ID (PO1-09) is present, then the other is required
If either Product/Service ID Qualifier (PO1-10) or Product/Service ID (PO1-11) is present, then the other is required
If either Product/Service ID Qualifier (PO1-14) or Product/Service ID (PO1-15) is present, then the other is required
—
- AS
- Assortment
- CA
- Case
- CT
- Carton—
- DE
- Deal
- DZ
- Dozen
- EA
- Each
—
- EN
- European Article Number (EAN) (2-5-5-1)
- ND
- National Drug Code (NDC)
- UA
- U.P.C./EAN Case Code (2-5-5)—
- UE
- U.P.C./EAN Module Code (2-5-5)
- UI
- U.P.C. Consumer Package Code (1-5-5)
- UK
- U.P.C./EAN Shipping Container Code (1-2-5-5-1)
- UN
- U.P.C. Case Code Number (1-1-5-5)
- UP
- U.P.C. Consumer Package Code (1-5-5-1)
- VN
- Vendor's (Seller's) Item Number—
PID Loop
RequiredMax 1000
PID Loop end
PO4
090
Detail > PO1 Loop > PO4
Item Physical Details
RequiredMax use >1
—
Example
If Length (PO4-10) is present, then Unit or Basis for Measurement Code (PO4-13) is required
If Width (PO4-11) is present, then Unit or Basis for Measurement Code (PO4-13) is required
If Height (PO4-12) is present, then Unit or Basis for Measurement Code (PO4-13) is required
If Unit or Basis for Measurement Code (PO4-13) is present, then at least one of Length (PO4-10), Width (PO4-11) or Height (PO4-12) is required
If Weight Qualifier (PO4-05) is present, then Gross Weight per Pack (PO4-06) is required
If either Gross Weight per Pack (PO4-06) or Unit or Basis for Measurement Code (PO4-07) is present, then the other is required
—
- AS
- Assortment
- CA
- Case
- DE
- Deal
- DZ
- Dozen
- EA
- Each
PER
110
Detail > PO1 Loop > PER
Administrative Communications Contact
OptionalMax use 3
—
Example
If either Communication Number Qualifier (PER-03) or Communication Number (PER-04) is present, then the other is required
SAC Loop
OptionalMax 4
SAC
130
Detail > PO1 Loop > SAC Loop > SAC
Service, Promotion, Allowance, or Charge Information
RequiredMax use 1
—
Example
At least one of Service, Promotion, Allowance, or Charge Code (SAC-02) or Agency Qualifier Code (SAC-03) is required
If either Agency Qualifier Code (SAC-03) or Agency Service, Promotion, Allowance, or Charge Code (SAC-04) is present, then the other is required
If either Allowance/Charge Percent Qualifier (SAC-06) or Percent (SAC-07) is present, then the other is required
If either Unit or Basis for Measurement Code (SAC-09) or Quantity (SAC-10) is present, then the other is required
If Quantity (SAC-11) is present, then Quantity (SAC-10) is required
If Reference Identification (SAC-13) is present, then at least one of Service, Promotion, Allowance, or Charge Code (SAC-02) or Agency Service, Promotion, Allowance, or Charge Code (SAC-04) is required
—
- D170
- Free Goods
- ZZZZ
- Mutually Defined—
—
- 1
- Item List Cost
- 2
- Item Net Cost
- 3
- Discount/Gross
- 4
- Discount/Net
- 5
- Base Price per Unit
- 6
- Base Price Amount
- 7
- Base Price Amount Less Previous Discount
- 8
- Net Monthly On All Invoices Past Due
- 9
- Late Payment Charge Base Amount
- Z
- Mutually Defined
—
- AS
- Assortment
- CA
- Case
- DE
- Deal
- DZ
- Dozen
- EA
- Each
—
- 01
- Bill Back
- 02
- Off Invoice
- 03
- Vendor Check to Customer
- 04
- Credit Customer Account
- 05
- Charge to be Paid by Vendor
- ZZ
- Mutually Defined
SAC Loop end
SDQ
190
Detail > PO1 Loop > SDQ
Destination Quantity
OptionalMax use 500
—
Usage notes
—
Example
If either Identification Code (SDQ-05) or Quantity (SDQ-06) is present, then the other is required
If either Identification Code (SDQ-07) or Quantity (SDQ-08) is present, then the other is required
If either Identification Code (SDQ-09) or Quantity (SDQ-10) is present, then the other is required
If either Identification Code (SDQ-11) or Quantity (SDQ-12) is present, then the other is required
If either Identification Code (SDQ-13) or Quantity (SDQ-14) is present, then the other is required
If either Identification Code (SDQ-15) or Quantity (SDQ-16) is present, then the other is required
If either Identification Code (SDQ-17) or Quantity (SDQ-18) is present, then the other is required
If either Identification Code (SDQ-19) or Quantity (SDQ-20) is present, then the other is required
If either Identification Code (SDQ-21) or Quantity (SDQ-22) is present, then the other is required
—
- AS
- Assortment
- CA
- Case
- DE
- Deal
- DZ
- Dozen
- EA
- Each
PO1 Loop end
Detail end
Summary
CTT Loop
OptionalMax 1
CTT
010
Summary > CTT Loop > CTT
Transaction Totals
RequiredMax use 1
—
Usage notes
—
Example
If either Weight (CTT-03) or Unit or Basis for Measurement Code (CTT-04) is present, then the other is required
If either Volume (CTT-05) or Unit or Basis for Measurement Code (CTT-06) is present, then the other is required
CTT Loop end
Summary end
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.