Order entry automation: why purchase orders still arrive by email
Purchase orders still arrive by email, as PDFs, spreadsheets or portal downloads, because an EDI connection only pays off for customers with high order volumes. Order entry automation therefore has to handle these unstructured inputs, not only EDI.
Every EDI connection is a project of its own, because both sides agree a message format such as EDIFACT ORDERS or ANSI X12 850, map the fields to the ERP, test and onboard the partner; in SAP these orders arrive as IDocs of message type ORDERS. For a customer who orders a few times a month that effort does not pay back, so the PO keeps arriving by email and inside sales keeps retyping it.
Automating purchase order processing on the supplier side means turning each of these customer POs into a sales order without retyping. Germany's e-invoicing mandate for domestic B2B sales, in force since 1 January 2025 with transition rules, does not change this, because Section 14 of the German VAT Act governs invoices, not orders; how it applies to your company is for your tax department to assess.
EDI, template OCR and AI agents compared
EDI fits structured orders from large customers, template-based OCR fits a few stable layouts, and an AI agent fits the changing rest. The three run side by side, with the agent taking over what EDI and templates do not cover.
Template capture reads fields at fixed positions of a known layout, so when a customer changes its order form, the template fails until someone adjusts it. An AI agent reads the order regardless of layout and checks the result against master data and the contract before anything is posted. That check matters more than the reading, because a field read correctly with the wrong content still produces a wrong order.
| Approach | Input | Exceptions | Set-up effort | Maintenance | Limits |
|---|---|---|---|---|---|
| EDI | Structured message such as EDIFACT ORDERS or ANSI X12 850 | Appear as errors in the message monitor, for example an unknown material number | One project per customer covering format, mapping, test and onboarding | Low while format and master data stay stable | Only for customers who set up EDI and whose volume carries the effort |
| Template-based OCR | PDF or scan with a known layout | Every new or changed layout | One template per customer and form | Ongoing, with every layout change | Free text in the email, spreadsheets and special requests fall outside |
| AI agent | Email text, PDF, spreadsheet, scan, portal download | Routed to inside sales with a stated reason | Rules, tolerances and integration once per workflow, no template per customer | Monthly review of error rate and exception reasons | Needs maintained master data and defined tolerances, and does not decide on special terms |
AI order entry: the six steps the agent performs
In AI order entry, the agent captures a purchase order in six steps from email to sales order, following the mechanics of intake, context, proposal, release and write-back. A PO is a document like an invoice or a certificate, so the same control set applies as in document processing with AI agents, with field-level confidence, thresholds per document type and an audit trail from document to posting.
Material matching needs particular care, because many POs show the customer's part number next to yours and a mix-up produces a valid but wrong order. In SAP the mapping lives in the customer-material info record; where none exists, the agent proposes a match and a person confirms it once for all later orders.
- 01
Read the order: email body and attachments, PO number, lines, quantities, requested dates, ship-to and bill-to addresses
- 02
Identify the customer by checking sender, customer number and address against the customer master, including multiple ship-to parties
- 03
Map customer part numbers to your own item numbers through the customer-material info record or, where it is missing, through description and order history
- 04
Check prices, terms and delivery dates against the framework agreement, the quote and the ERP, including availability
- 05
Create the sales order in the ERP, either as a draft held for release or, for clean cases within tolerances, directly
- 06
Route exceptions to inside sales with a named reason: price deviation, unknown material, requested date earlier than the lead time allows, new delivery address
Sales order automation in SAP S/4HANA through standard APIs
In SAP S/4HANA, the agent creates sales orders through the standard Sales Order (A2X) API, technical name API_SALES_ORDER_SRV, a synchronous OData service for creating, reading, updating and deleting sales orders. SAP also offers an OData V4 version with the service name SalesOrder, and according to SAP's documentation the V2 API supports sell-from-stock scenarios only, so third-party orders, for example, are not covered.
Before creating anything, the agent simulates the order through API_SALES_ORDER_SIMULATION_SRV, which returns pricing, material availability and the credit limit check without saving an order. Sales order automation with AI can then compare the price on the PO with the price SAP determines itself instead of rebuilding the pricing logic. For orders that may only be processed with an approver's consent, the API provides the actions releaseApprovalRequest and rejectApprovalRequest.
Since SAP S/4HANA 2021, the system itself includes scope item 4X9 (Create Sales Orders from Unstructured Data), which extracts PDF and image purchase orders into a sales order request that a person converts into an order. An agent can build on it or run alongside it where orders also arrive as email text or spreadsheets or need checking against framework agreements. The difference between RPA and AI agents shows here in concrete terms, because an RPA bot keys orders through the SAP screens and depends on screen layouts and field positions, while an agent using the APIs depends on the data model and authorisations.
When the agent posts and when inside sales decides
The agent posts an order without release only when customer, material, price, quantity and date fall within defined tolerances and shadow mode has shown a stable error rate for that category. Every other order is created as a draft and routed to inside sales with a stated reason.
Tolerances are business rules, set by the head of inside sales together with finance, not by IT. Take a hypothetical rule set of at most 0.5 per cent deviation from the contract price, known ship-to parties only and no requested date earlier than the lead time. The agent then posts every order that meets all three conditions, and the rest join the queue with the failed condition as the reason.
New delivery addresses, special terms and first orders from new customers always go to a person, because a wrong posting there ships goods to the wrong place or commits to a price nobody approved. A Workflow Build puts this control set into production in 8 to 12 weeks, in your own cloud tenant and with write access limited to drafts at first.
Order entry KPIs: what to measure
Four KPIs show whether order entry automation works: touchless rate, capture time per order, error rate and the time from receipt of the order to the order confirmation. Measure them as a baseline before the start and split them by channel, because EDI orders run touchless anyway and distort every average.
The touchless rate alone is not enough, because a rising rate with a rising error rate only means wrong orders reach the system faster. The AI ROI calculator turns orders per month and minutes per order into hours freed and the payback period of the build.
| KPI | Definition | How to measure |
|---|---|---|
| Touchless rate | Share of orders created in the ERP without human intervention | Agent log and ERP change history, per channel and customer |
| Capture time per order | Working time from opening the order to the saved sales order, including clarification | Stopwatch sample before the start, then from the log |
| Error rate | Share of orders corrected after creation | Later changes to material, quantity, price or date, plus complaints about wrong deliveries |
| Time to order confirmation | Time from receipt of the order to the confirmation being sent | Timestamps from the inbox and the ERP output log |
Order entry in logistics: transport orders by email
For freight forwarders, order entry is the same problem with different fields, because transport orders arrive by email and dispatch types loading and delivery points, time windows, packages, weights and dangerous goods details into the TMS. Shippers with an EDI connection send EDIFACT IFTMIN instruction messages instead, which carry the final consignment details from shipper to forwarder or carrier; the ANSI X12 counterpart is the 204 load tender.
The agent reads the order, matches shipper and addresses to the master data, checks the order against agreed rates and services, creates it in the TMS and flags what is missing, such as a time window, a reference number or a customs detail. Dangerous goods, customs questions and special services stay with dispatch. For forwarders and contract logistics providers, this workflow sits next to damage claims and tracking inquiries and uses the same TMS master data.
Sources
- 01SAP Help Portal: Sales Order (A2X, OData V2), API_SALES_ORDER_SRV, SAP S/4HANA
- 02SAP Help Portal: Sales Order (A2X, OData V4), service SalesOrder
- 03SAP Help Portal: Sales Order Simulate (A2X), API_SALES_ORDER_SIMULATION_SRV
- 04SAP Help Portal: Release or Reject Sales Orders in Approval
- 05SAP Help Portal: Data From Master Records, customer-material information records, SAP S/4HANA
- 06SAP Help Portal: IDoc Types for Inbound Messages (SD), SAP S/4HANA
- 07SAP Help Portal: scope item 4X9, Create Sales Orders from Unstructured Data, SAP S/4HANA 2021
- 08SAP Help Portal: EDI document types, EDIFACT ORDERS and ANSI X12 850
- 09SAP Business Network for Logistics: Message Implementation Guide EDIFACT IFTMIN (PDF)
- 10SAP Help Portal: Global Track and Trace message types, EDIFACT IFTMIN and ANSI X12 204
- 11German Federal Ministry of Finance: FAQ on mandatory e-invoicing (in German)