Skip to content
EDIFACT ORDCHG — EDIFACT Order ChangePublished Oct 12, 2026

EDIFACT ORDCHG: Order Change Message Guide

EDIFACT ORDCHG purchase order change explained: BGM+230, LIN action codes for added, deleted and changed lines, four live EANCOM examples and the 860 mapping.

Orders change. The buyer's forecast moves, a store promotion gets pulled, a product is discontinued. ORDCHG is how those changes reach you in a form your system can apply automatically, instead of as an email saying "can you add two more cases to Tuesday's order". Get it wrong and you pick the old quantity, ship to the old date and end up with a short-shipment or late-delivery deduction for an order you thought you had filled perfectly.

This guide follows the GS1 EANCOM 2002 ORDCHG layout (subset version EAN007, directory D.01B). The examples continue the fictional order HL-PO-88231 from the ORDERS guide, after the supplier's ORDRSP accepted line 1, part-shipped line 2 and rejected line 3.

What is an EDIFACT ORDCHG?

ORDCHG (purchase order change request) is the UN/EDIFACT message a buyer sends to change or cancel a purchase order the supplier has already received. It quotes the original order number and lists only what the buyer wants to change, line by line, with an action code on each LIN saying whether the line is new, deleted, changed or unchanged.

GS1 gives ORDCHG two jobs:

  1. A buyer-initiated change. The buyer wants more, less, a different date, an extra product or a cancelled line.
  2. Confirmation of a supplier's proposal. When the supplier's ORDRSP changes a line (a lower quantity, a later date), the buyer can confirm the amended terms with an ORDCHG.

Rules that define the message

The EANCOM principles are short and strict. Learn these and most ORDCHG problems go away:

  • Three things can never change: the order number, the buyer and supplier identities, and the line item numbers. To change any of them, cancel the order and send a new one.
  • Minimum content: the mandatory segments, a NAD for the buyer and one for the supplier, and one RFF in segment group 1 identifying the order being changed.
  • Re-send everything below a changed LIN. If any segment under a line changes, all segments under that line are transmitted again. The data under LIN with action 3 replaces what you hold for that line.
  • Re-sending unchanged data is not an error. A partner may send action 11 lines purely for information.

Where ORDCHG sits in the order-to-cash flow

StepMessageSent byX12 equivalent
1ORDERSBuyer850
2ORDRSPSupplier855
3ORDCHGBuyer, any time before despatch860
4ORDRSP to the change (if the partner requires it)Supplier865
5DESADVSupplier856
6INVOICSupplier810

EANCOM has no separate "change acknowledgment" message. A supplier responding to an ORDCHG sends another ORDRSP. The buyer can ask for one explicitly in the fourth element of BGM (response type code AC acknowledge with detail and change, AI acknowledge only changes, NA no acknowledgement needed).

Timing matters more than anything else here. An ORDCHG that arrives after you have picked, or worse after the DESADV has gone, creates a mismatch between order, shipment and invoice. Agree a cut-off with each partner and make your system flag late changes rather than silently applying them.

Example 1: quantity change

Harbour Lane Stores raises line 1 from 120 to 144 chopping boards. Only the changed line is sent, with every segment under it re-transmitted.

Live exampleEDIFACT ORDCHGEANCOM D.01B EAN007

ORDCHG increasing a line quantity

Line 1 changed (action 3) from 120 to 144; LIN detail re-sent in full and tied back to the original line.

Structurally valid UN/EDIFACT
UN/EDIFACT · ORDCHG · D:01B:UN · EANCOM EAN007 · 18 segments · 1 message

ORDCHG · Purchase order change request · ref 1

Document
Purchase order change request
Document number
HL-PC-88231-1
Message function
Change
Document/message date/time
2026-10-12
Reference date/time
2026-10-11
Order number (buyer)
HL-PO-88231

Parties

RoleIdentifierName and address
Buyer BY5012345000008GS1 (GLN)-
Supplier SU5098765000002GS1 (GLN)-

Lines (1)

#GTINCodesDescriptionOrdered quantityPriceAmount (qty x price)
15098765100016
Supplier: KV-1001
Changed
-1446.50936.00

Interchange (UNB)

Sender
5012345000008GS1 GLN
Recipient
5098765000002GS1 GLN
Prepared
2026-10-12 10:15
Control reference
HLS000462
Syntax
UNOC version 3
Messages
1
SegmentWhat it says
BGM+230+HL-PC-88231-1+4'Document 230 (purchase order change request), change number HL-PC-88231-1, function 4 (change)
RFF+ON:HL-PO-88231'The order being changed
DTM+171:20261011:102'Date of that order
LIN+1+3+5098765100016:SRV'Line 1, action 3 (changed), same GTIN
PIA+1+KV-1001:SA'Supplier's article number, re-sent because the line changed
QTY+21:144'The new ordered quantity. It replaces 120; it is not "add 144"
PRI+AAA:6.50'Net price, re-sent unchanged
RFF+ON:HL-PO-88231:1'Ties this line to line 1 of the original order
CNT+2:1'One LIN line in the change

QTY in ORDCHG is the new total, not a delta. This is the most common mapping mistake. If the buyer wants 24 more, the message says 144. EANCOM does also define QTY+18 (previous quantity), which some partners include so you can check you are changing the right baseline.

Example 2: delivery date change

The DC has lost its Friday slot. Lines 1 and 2 move to Monday 19 October. Each changed line repeats its full detail, now with a line-level DTM+2 requested delivery date.

Live exampleEDIFACT ORDCHGEANCOM D.01B EAN007

ORDCHG moving the delivery date on two lines

Lines 1 and 2 changed (action 3) with a new DTM+2 requested delivery date; quantities and prices re-sent.

Structurally valid UN/EDIFACT
UN/EDIFACT · ORDCHG · D:01B:UN · EANCOM EAN007 · 26 segments · 1 message

ORDCHG · Purchase order change request · ref 1

Document
Purchase order change request
Document number
HL-PC-88231-2
Message function
Change
Document/message date/time
2026-10-13
Reference date/time
2026-10-11
Order number (buyer)
HL-PO-88231

Parties

RoleIdentifierName and address
Buyer BY5012345000008GS1 (GLN)-
Supplier SU5098765000002GS1 (GLN)-
Delivery party DP5012345000107GS1 (GLN)-

Lines (2)

#GTINCodesDescriptionOrdered quantityPriceAmount (qty x price)
15098765100016
Supplier: KV-1001
Changed
-1446.50936.00
25098765100023
Supplier: KV-1002
Changed
-609.80588.00

Interchange (UNB)

Sender
5012345000008GS1 GLN
Recipient
5098765000002GS1 GLN
Prepared
2026-10-13 08:30
Control reference
HLS000465
Syntax
UNOC version 3
Messages
1
SegmentWhat it says
BGM+230+HL-PC-88231-2+4'A second change to the same order, with its own change number
NAD+DP+5012345000107::9'Delivery point, sent as clarification. Optional in a change
QTY+21:144'Line 1 keeps the quantity from the first change
DTM+2:20261019:102'New requested delivery date for the line

Two things to notice. First, line 1 carries 144, the quantity from change 1. Changes build on each other, so process them in order. Second, GS1 also allows DTM+2 in the header to move the date for the whole order. Some partners prefer that; others always send dates per line. Support both.

Example 3: cancel a line and add a substitute

The supplier's ORDRSP rejected line 3 (cotton tea towels). The buyer deletes it and adds a substitute product as a new line 4.

Live exampleEDIFACT ORDCHGEANCOM D.01B EAN007

ORDCHG deleting one line and adding another

Line 3 deleted (action 2) with only its reference; new line 4 added (action 1) with full detail.

Structurally valid UN/EDIFACT
UN/EDIFACT · ORDCHG · D:01B:UN · EANCOM EAN007 · 21 segments · 1 message

ORDCHG · Purchase order change request · ref 1

Document
Purchase order change request
Document number
HL-PC-88231-3
Message function
Change
Document/message date/time
2026-10-12
Reference date/time
2026-10-11
Order number (buyer)
HL-PO-88231

Parties

RoleIdentifierName and address
Buyer BY5012345000008GS1 (GLN)-
Supplier SU5098765000002GS1 (GLN)-

Lines (2)

#GTINCodesDescriptionQtyPriceAmount
35098765100030
Deleted
----
45098765100207
Supplier: KV-1020
Added
LINEN TEA TOWEL 2 PACK48
Ordered quantity
3.10148.80
qty x price

Interchange (UNB)

Sender
5012345000008GS1 GLN
Recipient
5098765000002GS1 GLN
Prepared
2026-10-12 11:20
Control reference
HLS000463
Syntax
UNOC version 3
Messages
1
SegmentWhat it says
LIN+3+2+5098765100030:SRV'Line 3, action 2 (deleted). EANCOM says no other line data is needed
RFF+ON:HL-PO-88231:3'Which original line is being deleted
LIN+4+1+5098765100207:SRV'New line 4, action 1 (added). All required data must be sent, as for a new order line
IMD+F++:::LINEN TEA TOWEL 2 PACK'Description of the new product
QTY+21:48', PRI+AAA:3.10'Quantity and price for the new line

The new line gets a new number. Line numbers cannot be reused or changed, so "replace line 3 with a different product" is always a delete plus an add.

Example 4: cancel the whole order

BGM message function 1 cancels the entire referenced order. EANCOM still requires the mandatory segments and both parties.

Live exampleEDIFACT ORDCHGEANCOM D.01B EAN007

ORDCHG cancelling a complete order

BGM function 1: cancel the order quoted in RFF+ON. No line detail needed.

Structurally valid UN/EDIFACT
UN/EDIFACT · ORDCHG · D:01B:UN · EANCOM EAN007 · 12 segments · 1 message

ORDCHG · Purchase order change request · ref 1

Document
Purchase order change request
Document number
HL-PC-88290-1
Message function
Cancellation
Document/message date/time
2026-10-12
Reference date/time
2026-10-10
Order number (buyer)
HL-PO-88290

Parties

RoleIdentifierName and address
Buyer BY5012345000008GS1 (GLN)-
Supplier SU5098765000002GS1 (GLN)-

Interchange (UNB)

Sender
5012345000008GS1 GLN
Recipient
5098765000002GS1 GLN
Prepared
2026-10-12 14:05
Control reference
HLS000464
Syntax
UNOC version 3
Messages
1

Not every partner uses ORDCHG for cancellations. Some cancel through a portal or by email and expect nothing in EDI. Ask.

ORDCHG segment reference

Status and repeats follow the EANCOM 2002 message structure chart. M is mandatory, C conditional.

SegmentNameStatusRepeatsCarriesX12 860 equivalent
UNHMessage headerM1ORDCHG:D:01B:UN:EAN007ST
BGMBeginning of messageM1230, change number, function, response requestBCH
DTMDate/timeM35137 message date; 2, 63, 64 delivery datesDTM
PAI, ALI, FTXPayment, additional info, free textC1, 5, 99Header clarificationsNTE
RFF (SG1)ReferenceC9999ON order being changed, POR response, PP changeBCH, REF
NAD (SG3)Name and addressC99BY and SU required; DP, IV, SN optionalN1
CUX (SG8)CurrenciesC5CurrencyCUR
PAT (SG9)Payment termsC10TermsITD
TDT, TODTransport, delivery termsC10, 5Carrier, IncotermsTD5, FOB
ALC (SG20)Allowance or chargeC99Header allowancesSAC
LIN (SG27)Line itemC200000Line number, action code, GTINPOC
PIAAdditional product idC25Supplier or buyer item numberPOC
IMDItem descriptionC99DescriptionPID
QTYQuantityC9921 new ordered quantity, 18 previousPOC
DTMLine dateC352 requested delivery, 61 cancel-byDTM
QVRQuantity varianceC1Variance and reason
PRI (SG32)PriceC25AAA net, AAB grossPOC
RFF (SG33)Line referenceC9999ON with original line numberREF
LOC, QTY, DTM (SG37)Split deliveryC9999Quantity per locationSDQ
UNSSection controlM1S
MOA, CNTTotalsC12, 102 = number of LIN linesAMT, CTT
UNTMessage trailerM1Segment countSE

Code tables

BGM message function (third element)

CodeMeaning in EANCOM ORDCHG
4Change: specified changes at line level to the referenced order
1Cancellation of the whole referenced order
9Original transmission of a change
31Copy for a third party, for information
42Confirmation of a change already made by other means, such as phone or email

LIN action code (second element)

CodeMeaningWhat your system should do
1AddedCreate a new order line. All required data is present
2DeletedCancel the line referenced in RFF+ON. No other data needed
3ChangedReplace everything held for the line with the data sent
11Not amendedInformation only. Change nothing

Line DTM qualifiers you will see

QualifierMeaning
2Delivery date/time, requested
10Shipment date/time, requested
63 / 64Latest / earliest delivery date
61Cancel if not delivered by this date

ORDCHG vs the X12 860

DataEDIFACT ORDCHGX12 860
Change documentBGM+230 with a change numberBCH
Change vs cancelBGM function 4 or 1BCH01 purpose code
Original PO number and dateRFF+ON with DTM+171BCH PO number and date
Line actionLIN action 1, 2, 3, 11POC02 change code (for example AI, DI, QI, QD, PC, NC)
New quantityQTY+21 (new total)POC03
New pricePRIPOC05
DatesDTM+2 header or lineDTM
Line countCNT+2CTT01

The X12 860 tells you what kind of change happened at line level (quantity increase, price change and so on). ORDCHG only says "changed" and gives you the new state of the line. To work out what changed, compare the incoming line with the one you hold. That comparison is worth building anyway, because it is the only reliable way to catch a changed price hidden inside a line you thought was a date change. See the EDI 860 guide for the X12 codes.

Common ORDCHG errors and fixes

  • Treating QTY as a delta. QTY+21 is the new ordered quantity. Adding it to the old figure doubles the line.
  • Processing changes out of order. Two ORDCHGs for the same order must be applied in sequence. Use the BGM change number and DTM+137 to order them, and hold a change that arrives before its predecessor.
  • Matching lines by position instead of reference. Use RFF+ON:<order>:<line> under each LIN to find the original line. Change messages often carry only one or two lines, so line 1 in the change may be line 7 of the order.
  • Ignoring action 11. Lines marked "not amended" must not overwrite anything, even if their data looks different from what you hold. Flag the difference instead.
  • Accepting changes after despatch. If the DESADV has gone, the change cannot be applied to that shipment. Reply through ORDRSP or the partner's agreed channel.
  • Changing what cannot change. An ORDCHG that alters the buyer GLN or tries to renumber lines breaks the EANCOM rules. Reject it back to the buyer, usually through APERAK.

Testing checklist

  1. Confirm the partner sends ORDCHG at all, and whether cancellations come as ORDCHG function 1 or outside EDI.
  2. Ask whether they send only changed lines, or every line with action 11 on the unchanged ones.
  3. Ask whether they expect an ORDRSP in reply, and in what time.
  4. Test each action code: add, delete, change quantity, change date, change price.
  5. Test two changes to the same order in sequence, and a change arriving after despatch.
  6. Validate segment counts and GTIN check digits in the EDIFACT inspector.
  7. Agree the cut-off after which changes are refused.

OrderSync applies ORDCHG to the open order it already holds, shows the before and after for every line, and holds changes that arrive too late for a person to decide.

Frequently Asked Questions

What is ORDCHG in EDI?

ORDCHG is the UN/EDIFACT purchase order change request. The buyer sends it to change or cancel an order already sent as ORDERS. It identifies the original order in RFF+ON and gives each changed line an action code. It is the EDIFACT equivalent of the X12 860.

What does BGM+230 mean?

230 is the document name code for a purchase order change request. The third element of BGM gives the message function: 4 for a change, 1 to cancel the whole order.

What are the LIN action codes in ORDCHG?

The second element of LIN is the action request: 1 added, 2 deleted, 3 changed and 11 not amended. A changed line replaces everything previously held for that line.

How do I cancel a single line in ORDCHG?

Send that line with action code 2, for example LIN+3+2+5098765100030:SRV', followed by RFF+ON quoting the order number and original line number. No other line data is needed.

How do you respond to an ORDCHG?

With an ORDRSP that references the change and gives the status of each line. EANCOM has no separate change acknowledgment message. Whether a response is required, and how quickly, is set by the trading partner.

What is the difference between ORDCHG and ORDRSP?

ORDCHG comes from the buyer and asks for a change. ORDRSP comes from the supplier and responds to an order or a change, accepting, amending or rejecting it.

Can ORDCHG change the delivery address?

Yes, within limits. A changed NAD+DP in the header or split deliveries at line level (LOC, QTY and DTM) can redirect goods. The buyer and supplier identities cannot change.

Related guides

Sources

Paste any ORDCHG into the free EDIFACT inspector to see each line's action code and check the counts before you apply it.

James Darby
Last updated: 10/12/2026

How to Answer "Are You EDI Capable?"

A buyer asked, and you need to answer this week. The four things they are checking, what you can say yes to today, and a realistic date for the rest.

  • What a buyer is really asking when they ask this
  • The minimum set-up that makes the answer yes
  • What you can answer today versus what needs building
  • Rough timelines, so you can give a date rather than a maybe

One email with the download. Unsubscribe any time.

Related Resources