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.

What information does SAP Ariba include in an EDI 850 Purchase Order?

SAP Ariba EDI 850 Purchase Orders contain item-level detail including UPCs or GTINs, ordered quantities, unit pricing, ship-to addresses, and requested delivery dates. Key segments like BEG (beginning of the PO), PO1 (line items), N1 (party identification), and CTT (transaction totals) structure the document. SAP Ariba sends 850s electronically through their EDI network, and each PO must be acknowledged with an 855 to confirm receipt. Stacksync parses these fields and maps them directly to your ERP or database so orders appear automatically without manual data entry or CSV imports.

What information does SAP Ariba include in an EDI 850 Purchase Order?

SAP Ariba EDI 850 Purchase Orders contain item-level detail including UPCs or GTINs, ordered quantities, unit pricing, ship-to addresses, and requested delivery dates. Key segments like BEG (beginning of the PO), PO1 (line items), N1 (party identification), and CTT (transaction totals) structure the document. SAP Ariba sends 850s electronically through their EDI network, and each PO must be acknowledged with an 855 to confirm receipt. Stacksync parses these fields and maps them directly to your ERP or database so orders appear automatically without manual data entry or CSV imports.

How quickly does Stacksync process SAP Ariba EDI 850 Purchase Orders?

Stacksync processes incoming SAP Ariba 850 Purchase Orders in real time, typically within seconds of receipt. The platform validates the X12 envelope, parses all segments, maps fields to your system's schema, and inserts the order record automatically. Unlike batch-processing EDI providers that run on scheduled intervals, Stacksync's event-driven architecture means your team sees new SAP Ariba POs immediately. This speed is critical for meeting SAP Ariba's tight fulfillment windows and maintaining high on-time in-full compliance scores.

How quickly does Stacksync process SAP Ariba EDI 850 Purchase Orders?

Stacksync processes incoming SAP Ariba 850 Purchase Orders in real time, typically within seconds of receipt. The platform validates the X12 envelope, parses all segments, maps fields to your system's schema, and inserts the order record automatically. Unlike batch-processing EDI providers that run on scheduled intervals, Stacksync's event-driven architecture means your team sees new SAP Ariba POs immediately. This speed is critical for meeting SAP Ariba's tight fulfillment windows and maintaining high on-time in-full compliance scores.

What are common reasons a SAP Ariba EDI 850 Purchase Order gets rejected?

The most frequent rejection causes for SAP Ariba 850s include invalid UPC or GTIN codes, incorrect ship-to location identifiers, quantities that don't match SAP Ariba's rounding requirements, and missing mandatory segments. Formatting issues like incorrect date formats in the DTM segment or invalid N1 qualifier codes also trigger rejections. Stacksync validates every incoming SAP Ariba 850 against known compliance requirements before syncing to your system, flagging anomalies immediately rather than silently dropping the transaction.

What are common reasons a SAP Ariba EDI 850 Purchase Order gets rejected?

The most frequent rejection causes for SAP Ariba 850s include invalid UPC or GTIN codes, incorrect ship-to location identifiers, quantities that don't match SAP Ariba's rounding requirements, and missing mandatory segments. Formatting issues like incorrect date formats in the DTM segment or invalid N1 qualifier codes also trigger rejections. Stacksync validates every incoming SAP Ariba 850 against known compliance requirements before syncing to your system, flagging anomalies immediately rather than silently dropping the transaction.

Do I need to send an EDI 855 after receiving a SAP Ariba 850 Purchase Order?

SAP Ariba typically requires an EDI 855 Purchase Order Acknowledgment for every 850 received. The 855 confirms that you received the PO and indicates whether you can fulfill it as ordered, need to modify quantities, or must reject specific line items. Most SAP Ariba compliance programs expect the 855 within 24 to 48 hours of PO receipt. Stacksync can generate and send 855 acknowledgments automatically based on your acceptance rules, ensuring you never miss a compliance deadline. A 997 Functional Acknowledgment may also be required as a separate technical receipt.

Do I need to send an EDI 855 after receiving a SAP Ariba 850 Purchase Order?

SAP Ariba typically requires an EDI 855 Purchase Order Acknowledgment for every 850 received. The 855 confirms that you received the PO and indicates whether you can fulfill it as ordered, need to modify quantities, or must reject specific line items. Most SAP Ariba compliance programs expect the 855 within 24 to 48 hours of PO receipt. Stacksync can generate and send 855 acknowledgments automatically based on your acceptance rules, ensuring you never miss a compliance deadline. A 997 Functional Acknowledgment may also be required as a separate technical receipt.

How does Stacksync map SAP Ariba EDI 850 fields to my ERP system?

Stacksync uses a visual field mapping interface to connect SAP Ariba 850 segments — such as BEG for PO header data, PO1 for line items, and N1 for party identification — to the corresponding fields in your ERP, WMS, or database. You configure the mapping once, and Stacksync applies it to every subsequent SAP Ariba 850 automatically. The platform handles data type conversions, conditional logic for optional fields, and SAP Ariba-specific formatting requirements. If SAP Ariba changes their 850 specification, Stacksync alerts you and suggests mapping updates.

How does Stacksync map SAP Ariba EDI 850 fields to my ERP system?

Stacksync uses a visual field mapping interface to connect SAP Ariba 850 segments — such as BEG for PO header data, PO1 for line items, and N1 for party identification — to the corresponding fields in your ERP, WMS, or database. You configure the mapping once, and Stacksync applies it to every subsequent SAP Ariba 850 automatically. The platform handles data type conversions, conditional logic for optional fields, and SAP Ariba-specific formatting requirements. If SAP Ariba changes their 850 specification, Stacksync alerts you and suggests mapping updates.

Ready to automate SAP Ariba EDI?

a blue checkmark icon
POC from integration engineers
a blue checkmark icon
No-code EDI setup
a blue checkmark icon
Real-time compliance monitoring
a blue checkmark icon
White-glove onboarding