Blog Data formats No. 07

EDI 850, EDIFACT ORDERS, UBL and PDF: how POs travel

A purchase order can reach a supplier as structured data a system reads directly, or as a document a person has to read. Which one you get depends mostly on the size of the customer.

ANSI X12 850

In North America, the standard electronic purchase order is the X12 850 transaction set. It is a compact, segment-based format: each segment starts with a code (BEG for the beginning of the order, N1 for a party, PO1 for a line) and fields are separated by a delimiter. Large retailers and manufacturers have used it for decades. The supplier usually replies with an 855 acknowledgement, ships with an 856 advance ship notice and bills with an 810 invoice.

UN/EDIFACT ORDERS

Outside North America, the equivalent is the UN/EDIFACT ORDERS message, with a similar segment structure and its own codes. Retail, automotive and logistics in Europe use it widely, usually in an industry subset such as EANCOM.

UBL and PEPPOL

UBL (Universal Business Language) is an XML standard from OASIS that includes an Order document. PEPPOL, a network used for public procurement in many European countries and beyond, defines its ordering process on top of UBL. Public bodies in some countries send orders this way, and e-invoicing rules are pushing more suppliers onto PEPPOL for invoices.

Why most orders are still PDFs

EDI works well, but it costs something to set up on both sides: a mapping for each trading partner, often a value-added network or an EDI provider, and testing. A large customer with thousands of orders a year will insist on it. A customer who sends you six orders a year will not, and neither will most of the small and mid-sized businesses that make up the long tail of a typical customer list.

Those customers export an order from their accounting or ERP system, or type it in a word processor, save it as PDF and email it. So a supplier ends up with a few customers on EDI and a few hundred on PDF.

Getting PDF orders into the same shape

The practical aim is to make PDF orders look like EDI orders by the time they reach your system: the same fields, the same codes, ready to post. That means:

  • reading the fields from the page, whatever the layout;
  • using the same code lists EDI uses, such as ISO currency codes and UN/ECE unit codes;
  • checking the figures, because unlike EDI a PDF has no validation of its own.

VioPO returns PDF and scanned orders in a fixed JSON format that uses those code lists. Mapping it to your EDI order structure, or straight into your ERP, is then one mapping instead of hundreds.