X12
Inbound

SAP Ariba X12 850 Purchase Order

Ariba USA
The EDI 850 Purchase Order is SAP Ariba's primary document for placing orders with suppliers. It contains item details, quantities, pricing, shipping instructions, and delivery windows. Suppliers must acknowledge and fulfill these orders according to SAP Ariba's compliance requirements.
57segments
14loops
6mandatory

Schema Reference

57 segments · X12 850 Purchase Order

ISA ISA Interchange Control Header
Mandatory Max: 1
ISA01 Authorization Information Qualifier
M ID 2-2
ISA02 Authorization Information
M AN 10-10
ISA03 Security Information Qualifier
M ID 2-2
ISA04 Security Information
M AN 10-10
ISA05 Interchange ID Qualifier
M ID 2-2
ISA06 Interchange Sender ID
M AN 15-15
ISA07 Interchange ID Qualifier
M ID 2-2
ISA08 Interchange Receiver ID
M AN 15-15
ISA09 Interchange Date
M DT 6-6
ISA10 Interchange Time
M TM 4-4
ISA11 Interchange Control Standards Identifier
M ID 1-1
ISA12 Interchange Control Version Number
M ID 5-5
ISA13 Interchange Control Number
M N0 9-9
ISA14 Acknowledgment Requested
M ID 1-1
ISA15 Usage Indicator
M ID 1-1
GS GS Functional Group Header
Mandatory Max: 1
GS01 Functional Identifier Code
M ID 2-2
GS02 Application Sender's Code
M AN 2-15
GS03 Application Receiver's Code
M AN 2-15
GS04 Date
M DT 8-8
GS05 Time
M TM 4-8
GS06 Group Control Number
M N0 1-9
GS07 Responsible Agency Code
M ID 1-2
GS08 Version / Release / Industry Identifier Code
M AN 1-12
ST Transaction Set Header
Mandatory Max: 1
ST01 Transaction Set Identifier Code
M ID 3-3
ST02 Transaction Set Control Number
M AN 4-9
BEG Beginning Segment for Purchase Order
Mandatory Max: 1
BEG01 Transaction Set Purpose Code
M ID 2-2
BEG02 Purchase Order Type Code
M ID 2-2
BEG03 Purchase Order Number
M AN 1-22
BEG04 Release Number
O AN 1-30
BEG05 Date
M DT 8-8
CUR Currency
Optional Max: 1
CUR01 Entity Identifier Code
M ID 2-3
CUR02 Currency Code
M ID 3-3
CUR03 Exchange Rate
O R 4-10
CUR04 Entity Identifier Code
O ID 2-3
CUR05 Currency Code
O ID 3-3
REF Reference Identification
REF01 Reference Identification Qualifier
M ID 2-3
REF02 Reference Identification
C AN 1-30
REF03 Description
C AN 1-80
FOB F.O.B. Related Instructions
FOB01 Shipment Method of Payment
M ID 2-2
FOB02 Location Qualifier
C ID 1-2
FOB03 Description
O AN 1-80
FOB04 Transportation Terms Qualifier Code
O ID 2-2
FOB05 Transportation Terms Code
C ID 3-3
FOB06 Location Qualifier
C ID 1-2
FOB07 Description
O AN 1-80
CSH Sales Requirements
Optional Max: 5
CSH01 Sales Requirement Code
O ID 1-2
SAC Loop Repeat: 25
SAC Service, Promotion, Allowance, or Charge Information
Optional Max: 1
SAC01 Allowance or Charge Indicator
M ID 1-1
SAC02 Service, Promotion, Allowance, or Charge Code
C ID 4-4
SAC03 Agency Qualifier Code
C ID 2-2
SAC04 Agency Service, Promotion, Allowance, or Charge Code
C AN 1-10
SAC05 Amount
O N2 1-15
SAC06 Allowance/Charge Percent Qualifier
C ID 1-1
SAC07 Percent
C R 1-6
SAC13 Reference Identification
C AN 1-30
SAC14 Option Number
O AN 1-20
SAC15 Description
C AN 1-80
SAC16 Language Code
O ID 2-3
CUR Currency
Optional Max: 1
CUR01 Entity Identifier Code
M ID 2-3
CUR02 Currency Code
M ID 3-3
CUR03 Exchange Rate
O R 4-10
CUR04 Entity Identifier Code
O ID 2-3
CUR05 Currency Code
O ID 3-3
ITD Terms of Sale/Deferred Terms of Sale
ITD01 Terms Type Code
O ID 2-2
ITD02 Terms Basis Date Code
O ID 1-2
ITD03 Terms Discount Percent
O R 1-6
ITD05 Terms Discount Days Due
C N0 1-3
ITD07 Terms Net Days
O N0 1-3
ITD08 Terms Discount Amount
O N2 1-10
ITD15 Percent
O R 1-10
DTM Date/Time Reference
Optional Max: 10
DTM01 Date/Time Qualifier
M ID 3-3
DTM02 Date
C DT 8-8
DTM03 Time
C TM 4-8
DTM04 Time Code
O ID 2-2
PID Product/Item Description
Optional Max: 200
PID01 Item Description Type
M ID 1-1
PID02 Product/Process Characteristic Code
O ID 2-3
PID05 Description
C AN 1-80
PID09 Language Code
O ID 2-3
TXI Tax Information
TXI01 Tax Type Code
M ID 2-2
TXI02 Monetary Amount
C R 1-18
TXI03 Percent
C R 1-10
TXI04 Tax Jurisdiction Code Qualifier
C ID 2-2
TXI05 Tax Jurisdiction Code
C AN 1-10
TXI06 Tax Exempt Code
C ID 1-1
TXI08 Dollar Basis For Percent
O R 1-9
TXI10 Assigned Identification
O AN 1-20
N9 Loop Repeat: 1,000
N9 Reference Identification
Optional Max: 1
N901 Reference Identification Qualifier
M ID 2-3
N902 Reference Identification
C AN 1-30
N903 Free-form Description
C AN 1-45
DTM Date/Time Reference
Optional Max: 10
DTM01 Date/Time Qualifier
M ID 3-3
DTM02 Date
C DT 8-8
DTM03 Time
C TM 4-8
DTM04 Time Code
O ID 2-2
MSG Message Text
Optional Max: 1,000
MSG01 Free-Form Message Text
M AN 1-264
MSG02 Printer Carriage Control Code
C ID 2-2
N1 Loop Repeat: 200
N1 Name
Optional Max: 1
N101 Entity Identifier Code
M ID 2-3
N102 Name
C AN 1-60
N103 Identification Code Qualifier
C ID 1-2
N104 Identification Code
C AN 2-80
N2 Additional Name Information
Optional Max: 2
N201 Name
M AN 1-60
N202 Name
O AN 1-60
N3 Address Information
Optional Max: 2
N301 Address Information
M AN 1-55
N302 Address Information
O AN 1-55
N4 Geographic Location
N401 City Name
O AN 2-30
N402 State or Province Code
O ID 2-2
N403 Postal Code
O ID 3-15
N404 Country Code
O ID 2-3
N405 Location Qualifier
C ID 1-2
N406 Location Identifier
O AN 1-30
REF Reference Identification
REF01 Reference Identification Qualifier
M ID 2-3
REF02 Reference Identification
C AN 1-30
REF03 Description
C AN 1-80
PER Administrative Communications Contact
PER01 Contact Function Code
M ID 2-2
PER02 Name
O AN 1-60
PER03 Communication Number Qualifier
C ID 2-2
PER04 Communication Number
C AN 1-80
PER05 Communication Number Qualifier
C ID 2-2
PER06 Communication Number
C AN 1-80
PER07 Communication Number Qualifier
C ID 2-2
PER08 Communication Number
C AN 1-80
TD5 Carrier Details (Routing Sequence/Transit Time)
Optional Max: 12
TD501 Routing Sequence Code
O ID 1-2
TD502 Identification Code Qualifier
C ID 1-2
TD503 Identification Code
C AN 2-80
TD504 Transportation Method/Type Code
C ID 1-2
TD507 Location Qualifier
O ID 1-2
PO1 Loop Repeat: 100,000
PO1 Baseline Item Data
Mandatory Max: 1
PO101 Assigned Identification
O AN 1-20
PO102 Quantity Ordered
C R 1-15
PO103 Unit or Basis for Measurement Code
O ID 2-2
PO104 Unit Price
C R 1-17
PO106 Product/Service ID Qualifier
C ID 2-2
PO107 Product/Service ID
C AN 1-48
PO108 Product/Service ID Qualifier
C ID 2-2
PO109 Product/Service ID
C AN 1-48
PO110 Product/Service ID Qualifier
C ID 2-2
PO111 Product/Service ID
C AN 1-48
PO112 Product/Service ID Qualifier
C ID 2-2
PO113 Product/Service ID
C AN 1-48
PO114 Product/Service ID Qualifier
C ID 2-2
PO115 Product/Service ID
C AN 1-48
PO116 Product/Service ID Qualifier
C ID 2-2
PO117 Product/Service ID
C AN 1-48
PO118 Product/Service ID Qualifier
C ID 2-2
PO119 Product/Service ID
C AN 1-48
CUR Currency
Optional Max: 1
CUR01 Entity Identifier Code
M ID 2-3
CUR02 Currency Code
M ID 3-3
CUR03 Exchange Rate
O R 4-10
CUR04 Entity Identifier Code
O ID 2-3
CUR05 Currency Code
O ID 3-3
PO3 Additional Item Detail
Optional Max: 25
PO301 Change Reason Code
M ID 2-2
PO305 Basis of Unit Price Code
C ID 2-2
PO306 Quantity
M R 1-15
PO307 Unit or Basis for Measurement Code
M ID 2-2
CTP Loop
CTP Pricing Information
Optional Max: 1
CTP01 Class of Trade Code
O ID 2-2
CTP02 Price Identifier Code
C ID 3-3
CTP03 Unit Price
C R 1-17
CTP04 Quantity
C R 1-15
CTP06 Price Multiplier Qualifier
O ID 3-3
CTP07 Multiplier
C R 1-10
CUR Currency
Optional Max: 1
CUR01 Entity Identifier Code
M ID 2-3
CUR02 Currency Code
M ID 3-3
CUR03 Exchange Rate
O R 4-10
CUR04 Entity Identifier Code
O ID 2-3
CUR05 Currency Code
O ID 3-3
MEA Measurements
Optional Max: 40
MEA01 Measurement Reference ID Code
O ID 2-2
MEA02 Measurement Qualifier
O ID 1-3
MEA03 Measurement Value
C R 1-20
PID Loop Repeat: 1,000
PID Product/Item Description
Optional Max: 200
PID01 Item Description Type
M ID 1-1
PID02 Product/Process Characteristic Code
O ID 2-3
PID05 Description
C AN 1-80
PID09 Language Code
O ID 2-3
REF Reference Identification
REF01 Reference Identification Qualifier
M ID 2-3
REF02 Reference Identification
C AN 1-30
REF03 Description
C AN 1-80
SAC Loop Repeat: 25
SAC Service, Promotion, Allowance, or Charge Information
Optional Max: 1
SAC01 Allowance or Charge Indicator
M ID 1-1
SAC02 Service, Promotion, Allowance, or Charge Code
C ID 4-4
SAC03 Agency Qualifier Code
C ID 2-2
SAC04 Agency Service, Promotion, Allowance, or Charge Code
C AN 1-10
SAC05 Amount
O N2 1-15
SAC06 Allowance/Charge Percent Qualifier
C ID 1-1
SAC07 Percent
C R 1-6
SAC13 Reference Identification
C AN 1-30
SAC14 Option Number
O AN 1-20
SAC15 Description
C AN 1-80
SAC16 Language Code
O ID 2-3
CUR Currency
Optional Max: 1
CUR01 Entity Identifier Code
M ID 2-3
CUR02 Currency Code
M ID 3-3
CUR03 Exchange Rate
O R 4-10
CUR04 Entity Identifier Code
O ID 2-3
CUR05 Currency Code
O ID 3-3
FOB F.O.B. Related Instructions
FOB01 Shipment Method of Payment
M ID 2-2
FOB02 Location Qualifier
C ID 1-2
FOB03 Description
O AN 1-80
FOB04 Transportation Terms Qualifier Code
O ID 2-2
FOB05 Transportation Terms Code
C ID 3-3
FOB06 Location Qualifier
C ID 1-2
FOB07 Description
O AN 1-80
DTM Date/Time Reference
Optional Max: 10
DTM01 Date/Time Qualifier
M ID 3-3
DTM02 Date
C DT 8-8
DTM03 Time
C TM 4-8
DTM04 Time Code
O ID 2-2
TXI Tax Information
TXI01 Tax Type Code
M ID 2-2
TXI02 Monetary Amount
C R 1-18
TXI03 Percent
C R 1-10
TXI04 Tax Jurisdiction Code Qualifier
C ID 2-2
TXI05 Tax Jurisdiction Code
C AN 1-10
TXI06 Tax Exempt Code
C ID 1-1
TXI08 Dollar Basis For Percent
O R 1-9
TXI10 Assigned Identification
O AN 1-20
QTY Loop
QTY Quantity
Optional Max: 1
QTY01 Quantity Qualifier
M ID 2-2
QTY02 Quantity
C R 1-15
SCH Loop Repeat: 200
SCH Line Item Schedule
Optional Max: 1
SCH01 Quantity
M R 1-15
SCH02 Unit or Basis for Measurement Code
M ID 2-2
SCH05 Date/Time Qualifier
M ID 3-3
SCH06 Date
M DT 8-8
SCH08 Date/Time Qualifier
C ID 3-3
SCH09 Date
C DT 8-8
REF Reference Identification
REF01 Reference Identification Qualifier
M ID 2-3
REF02 Reference Identification
C AN 1-30
REF03 Description
C AN 1-80
PKG Loop Repeat: 200
PKG Marking, Packaging, Loading
Optional Max: 1
PKG01 Item Description Type
C ID 1-1
PKG02 Packaging Characteristic Code
O ID 1-5
PKG03 Agency Qualifier Code
C ID 2-2
PKG04 Packaging Description Code
C AN 1-7
PKG05 Description
C AN 1-80
MEA Measurements
Optional Max: 40
MEA01 Measurement Reference ID Code
O ID 2-2
MEA02 Measurement Qualifier
O ID 1-3
MEA03 Measurement Value
C R 1-20
N9 Loop Repeat: 1,000
N9 Reference Identification
Optional Max: 1
N901 Reference Identification Qualifier
M ID 2-3
N902 Reference Identification
C AN 1-30
N903 Free-form Description
C AN 1-45
MSG Message Text
Optional Max: 1,000
MSG01 Free-Form Message Text
M AN 1-264
MSG02 Printer Carriage Control Code
C ID 2-2
N1 Loop Repeat: 200
N1 Name
Optional Max: 1
N101 Entity Identifier Code
M ID 2-3
N102 Name
C AN 1-60
N103 Identification Code Qualifier
C ID 1-2
N104 Identification Code
C AN 2-80
N2 Additional Name Information
Optional Max: 2
N201 Name
M AN 1-60
N202 Name
O AN 1-60
N3 Address Information
Optional Max: 2
N301 Address Information
M AN 1-55
N302 Address Information
O AN 1-55
N4 Geographic Location
N401 City Name
O AN 2-30
N402 State or Province Code
O ID 2-2
N403 Postal Code
O ID 3-15
N404 Country Code
O ID 2-3
N405 Location Qualifier
C ID 1-2
N406 Location Identifier
O AN 1-30
REF Reference Identification
REF01 Reference Identification Qualifier
M ID 2-3
REF02 Reference Identification
C AN 1-30
REF03 Description
C AN 1-80
PER Administrative Communications Contact
PER01 Contact Function Code
M ID 2-2
PER02 Name
O AN 1-60
PER03 Communication Number Qualifier
C ID 2-2
PER04 Communication Number
C AN 1-80
PER05 Communication Number Qualifier
C ID 2-2
PER06 Communication Number
C AN 1-80
PER07 Communication Number Qualifier
C ID 2-2
PER08 Communication Number
C AN 1-80
TD5 Carrier Details (Routing Sequence/Transit Time)
Optional Max: 12
TD501 Routing Sequence Code
O ID 1-2
TD502 Identification Code Qualifier
C ID 1-2
TD503 Identification Code
C AN 2-80
TD504 Transportation Method/Type Code
C ID 1-2
TD507 Location Qualifier
O ID 1-2
SLN Loop Repeat: 1,000
SLN Subline Item Detail
Optional Max: 1
SLN01 Assigned Identification
M AN 1-20
SLN03 Relationship Code
M ID 1-1
SLN04 Quantity
C R 1-15
SLN09 Product/Service ID Qualifier
C ID 2-2
SLN10 Product/Service ID
C AN 1-48
SLN11 Product/Service ID Qualifier
C ID 2-2
SLN12 Product/Service ID
C AN 1-48
SLN13 Product/Service ID Qualifier
C ID 2-2
SLN14 Product/Service ID
C AN 1-48
MSG Message Text
Optional Max: 1,000
MSG01 Free-Form Message Text
M AN 1-264
MSG02 Printer Carriage Control Code
C ID 2-2
DTM Date/Time Reference
Optional Max: 10
DTM01 Date/Time Qualifier
M ID 3-3
DTM02 Date
C DT 8-8
DTM03 Time
C TM 4-8
DTM04 Time Code
O ID 2-2
CTT Loop Repeat: 1
CTT Transaction Totals
Optional Max: 1
CTT01 Number of Line Items
M N0 1-6
CTT02 Hash Total
O R 1-10
AMT Monetary Amount
Optional Max: 1
AMT01 Amount Qualifier Code
M ID 1-3
AMT02 Monetary Amount
M R 1-18
SE Transaction Set Trailer
Mandatory Max: 1
SE01 Number of Included Segments
M N0 1-10
SE02 Transaction Set Control Number
M AN 4-9
How It Works

Automating SAP Ariba EDI 850

Stacksync validates, transforms, and delivers your 850 transactions automatically — so your team can focus on operations, not EDI compliance.

Validate
Transform
Route
Monitor
Stacksync automatically syncs incoming SAP Ariba 850 Purchase Orders directly to your ERP or database. New orders appear in your system within seconds — no manual data entry, no CSV imports. Field mappings are configured once and every future PO flows through automatically.

SAP Ariba EDI 850 FAQ

Common questions about 850 Purchase Order transactions with SAP Ariba.

How long does it take to set up SAP Ariba EDI with Stacksync?

Most suppliers are fully connected and processing live SAP Ariba EDI transactions within 3–5 business days. Stacksync's no-code setup means you don't need developers or EDI consultants — configure your field mappings through our visual interface, run a test cycle, and go live.

Do I need an existing VAN or AS2 connection to trade with SAP Ariba?

No. Stacksync handles the entire EDI transport layer. We connect directly to SAP Ariba's trading partner network through our certified connections. You don't need to manage a separate VAN subscription, AS2 certificates, or SFTP configurations.

How does Stacksync help with SAP Ariba compliance?

Stacksync improves compliance scores by eliminating manual processing delays. Purchase Orders sync to your system in real time, ASNs are generated automatically when you ship, and invoices are validated with three-way matching before submission. Real-time monitoring alerts you to issues before they become chargebacks.

What EDI document types does Stacksync support for SAP Ariba?

Stacksync supports all EDI document types required by SAP Ariba — including Purchase Orders (850), Invoices (810), ASNs (856), PO Acknowledgments (855), and more. Our platform handles the full lifecycle from order to payment automatically.

Can I connect SAP Ariba EDI to my existing ERP or WMS?

Yes. Stacksync integrates with any system that has a database or API — including SAP, Oracle, NetSuite, Microsoft Dynamics, and custom-built ERPs. Data flows bidirectionally between SAP Ariba's EDI network and your system in real time.

What happens when SAP Ariba updates their EDI specifications?

Stacksync monitors SAP Ariba's EDI spec changes and updates our mappings proactively. When a change affects your integration, we notify you and apply updates — so you stay compliant without scrambling to decode new implementation guides.