The EDIFACT ORDCHG, Decoded: A Changed Order Is a New Negotiation, Not a Correction
An EDIFACT ORDCHG · Purchase Order Change Request message is how a buyer changes an order they have already sent: quantities moved, delivery dates pushed, lines added, lines cancelled, prices corrected. It does not edit the original ORDERS · Purchase Order message. It references it — and until the seller answers with an ORDRSP · Order Response, nobody actually knows which version of the order is real.
I run SignalEDI. This series has walked the EDIFACT order cycle in order: the ORDERS that opens it, the ORDRSP where the seller commits, the DESADV · Despatch Advice that ships it, the INVOIC · Invoice that bills it, and the APERAK · Application Acknowledgment that reports when a message itself was rejected. ORDCHG is the message that interrupts that tidy sequence — usually after the warehouse has already started picking.
What an ORDCHG actually carries
An ORDCHG opens with UNH and BGM, and the BGM segment is where the first trap lives. BGM carries a document name code (1055 in EDIFACT code lists for a purchase order change request in common directory versions — always confirm against your partner's message implementation guideline, because directories differ) plus the buyer's change document number and, critically, a message function code. That function code tells the receiver what kind of change this is: a full replacement of the order, an addition of lines, a deletion, or a change to existing lines. Misread the function code and you will apply a partial change as if it were the whole order — the single most common ORDCHG failure I see.
Next comes DTM segments for the dates that matter — the change date, and any revised requested delivery date — and RFF segments that tie the change back to the original order. The RFF referencing the buyer's original order number is not decoration. It is the join key. An ORDCHG that cannot be matched to exactly one open order is not a change request; it is an exception waiting for a human.
The lines: change at the level the seller promised
Below the header, the line groups repeat: LIN identifies the item, and action-related qualifiers and accompanying segments describe what is different — a revised QTY, a new delivery schedule in SCC/DTM detail, a changed PRI price, or a line marked for cancellation.
Two rules keep ORDCHG processing honest:
1. A change is line-scoped, not file-scoped. If line 3 changes quantity and lines 1, 2, and 4 are absent, absent means unchanged — unless the message function said full replacement, in which case absent means deleted. The function code and the line content have to be read together. Systems that treat every ORDCHG as a replacement corrupt orders; systems that treat every one as a patch drop cancellations.
2. Sequence matters more than timestamps. Buyers sometimes send two changes before the seller answers the first. Apply them in interchange order, answer each one, and never let a later change silently absorb an earlier unacknowledged one. When the seller's ORDRSP accepts change two but the warehouse is still working from change one, the shipment will be wrong in a way no ASN can fix.
The answer is part of the protocol
In X12, the 860/865 pair makes the request-and-answer structure explicit. EDIFACT folds the answer into ORDRSP: the seller responds to the changed order with line-level acceptance, rejection, or acceptance with a revised date, quantity, or price. That means an unanswered ORDCHG is an open liability, not a completed transaction. Track it the way you track an unacknowledged 997 · Functional Acknowledgment: age it, escalate it, and do not release the shipment against an order version the seller never confirmed.
Watch for these failure patterns:
- Change arrives after DESADV. The goods already left. The ORDCHG now describes a return or a short-shipment conversation, not a pick change — route it to humans, not to the warehouse feed.
- Price changes without a contract reference. A revised PRI with no supporting agreement reference is a dispute scheduled for invoice day, when the INVOIC is matched against the wrong price.
- Cancelled lines that reappear. If a later ORDERS or a retransmitted original resurrects a cancelled line, your matching logic keyed on document number alone instead of order-plus-version. Version your orders; every accepted change increments the working version.
- APERAK says fine, business says no. APERAK (and CONTRL at the syntax level) only proves the message parsed and was accepted at the application layer. It says nothing about whether the change was commercially accepted. Only the ORDRSP does that.
Why this message deserves respect
Every integration team rehearses the happy path: order in, response back, despatch out, invoice paid. Real trading relationships live in the interruptions. The buyer whose demand forecast moved, the port delay that pushed a date, the line that has to die before it ships — all of that arrives as an ORDCHG, and how your system handles it decides whether a change costs a phone call or a chargeback.
If you are building EDIFACT flows, test the change path as hard as the order path: send a partial change, a full replacement, a cancellation after picking starts, and two changes in flight at once. If your system can tell you, for any open order, exactly which version is current and who confirmed it, your ORDCHG handling is probably sound.
We handle this at SignalEDI by versioning every order and holding shipment release until the latest change is answered — the unglamorous bookkeeping that keeps a changed order from becoming a wrong shipment.
— Chris, founder of SignalEDI
Top comments (0)