ediverse Explore the platform

Spotlight PEPPOL BIS Billing 3.0 The EU e-invoicing mandate is here — France Sept 2026, Belgium Jan 2026, Germany 2025.
OSTRPT D.21B

OSTRPT — EDIFACT Order Status Report (D.21B)

The OSTRPT message is the periodic order-status report on a set of open orders, issued by a supplier or a logistics provider: per-line progress, updated promised dates, anomalies. It complements ORDRSP with an aggregated, multi-order management view. This page summarises the segment structure as published by UN/CEFACT for directory D.21B.

Purpose

The OSTRPT message is the periodic order-status report on a set of open orders, issued by a supplier or a logistics provider: per-line progress, updated promised dates, anomalies. It complements ORDRSP with an aggregated, multi-order management view.

This page focuses on the structure published by UN/CEFACT for directory D.21B. The segments listed, their status (M / C), position and repetition factor are extracted from the official file ostrpt_c.htm hosted on service.unece.org.

Segment structure

The OSTRPT D.21B message has 78 header entries, 0 detail entries and 0 summary entries (segments and groups combined). Groups are shown in bold and their members are indented by actual nesting depth.

Pos.TagNameSRep.
00010UNHMessage headerM1
00020BGMBeginning of messageM1
00030DTMDate/time/periodM×5
00040RFFReferenceC1
00050IRQInformation requiredC1
00060FTXFree textC×99
00070  SG1Group (×99)M×99
00080  NADName and addressM1
00090  LOCPlace/location identificationC×999
00100    SG2Group (×5)C×5
00110    CTAContact informationM1
00120    COMCommunication contactC×5
00130      SG3Group (×999)M×999
00140      DOCDocument/message detailsM1
00150      DTMDate/time/periodC×5
00160      CNTControl totalC×9
00170      RFFReferenceC×99
00180      TODTerms of delivery or transportC×99
00190        SG4Group (×99)C×99
00200        STSStatusM1
00210        DTMDate/time/periodC×5
00220        PCDPercentage detailsC1
00230        QTYQuantityC1
00240          SG5Group (×99)C×99
00250          NADName and addressM1
00260          LOCPlace/location identificationC×9
00270            SG6Group (×999999)C×999999
00280            LINLine itemM1
00290            PIAAdditional product idC×99
00300            IMDItem descriptionC×99
00310            MEAMeasurementsC×5
00320            GINGoods identity numberC×99
00330            RCSRequirements and conditionsC×5
00340            FTXFree textC×99
00350              SG7Group (×999)C×999
00360              RFFReferenceM1
00370              DTMDate/time/periodC1
00380                SG8Group (×99)C×99
00390                STSStatusM1
00400                DTMDate/time/periodC×5
00410                PCDPercentage detailsC1
00420                QTYQuantityC1
00430                  SG9Group (×99)C×99
00440                  NADName and addressM1
00450                  RFFReferenceC×5
00460                  LOCPlace/location identificationC×9
00470                    SG10Group (×5)C×5
00480                    CTAContact informationM1
00490                    COMCommunication contactC×5
00500                      SG11Group (×5)C×5
00510                      TDTTransport informationM1
00520                      LOCPlace/location identificationC1
00530                        SG12Group (×5)C×5
00540                        TODTerms of delivery or transportM1
00550                        LOCPlace/location identificationC1
00560                          SG13Group (×5)C×5
00570                          EQDEquipment detailsM1
00580                          HANHandling instructionsC×5
00590                            SG14Group (×1)C1
00600                            PACPackageM1
00610                            QTYQuantityC1
00620                              SG15Group (×10)C×10
00630                              PCIPackage identificationM1
00640                              RFFReferenceC×99
00650                              GINGoods identity numberC×99
00660                                SG16Group (×99)C×99
00670                                SCCScheduling conditionsM1
00680                                  SG17Group (×99)C×99
00690                                  LOCPlace/location identificationM1
00700                                  DTMDate/time/periodC×5
00710                                  QTYQuantityC1
00720                                    SG18Group (×99)C×99
00730                                    STSStatusM1
00740                                    DTMDate/time/periodC×5
00750                                    PCDPercentage detailsC1
00760                                    QTYQuantityC1
00770                                    NADName and addressC1
00780UNTMessage trailerM1

Detail

No segment in this section.

Summary

No segment in this section.

Changes vs D.96A

The OSTRPT message is not published in directory D.96A. No "D.96A → D.21B" comparison line can therefore be produced — see the block below for details.

This message is not published in directory D.96A: it was introduced into the standard after that release and therefore has no historical baseline for comparison. The first directory indexed on ediverse.io sets the reference; later changes are then documented from one release to the next in subsequent directories.

Structural example

Minimal example of an OSTRPT D.21B message with mandatory segments only. The goal is to show the exact version declared in UNH (OSTRPT:D:21B:UN) — not to replicate a full business case.

edifact ostrpt-d21b-example.edi
UNB+UNOC:3+5410000000123:14+5410000000456:14+260514:1430+CTRL021001'
UNH+1+OSTRPT:D:21B:UN'
BGM+341+OSTRPT-2026-W19+9'
DTM+137:20260514:102'
RFF+ON:ORDER789'
IRQ+SO::PROCESSING'
FTX+AAI+++Open-order status snapshot - week 19 - 14 orders followed'
UNT+7+1'
UNZ+1+CTRL021001'

Common errors

  • Misaligned UNH tokens — The UNH+...+OSTRPT:D:21B:UN token must reflect exactly the directory in use — a mismatch between the UNH release and the release agreed with the partner is rejected by every strict validator.
  • Wrong UNT segment count — The value after UNT+ must include UNH and UNT themselves. By far the most common sender-side error, regardless of the directory in use.
  • Stale code lists — Between D.96A and D.21B, several code lists received new qualifiers (DTM status, RFF qualifier, NAD codes…). Reusing an older directory’s code tables triggers warnings or even rejections depending on the partner’s strict-conformance mode.

Other versions of this message available on ediverse.io: OSTRPT D.10A, OSTRPT D.16B, OSTRPT D.24A.

X12 functional equivalent: X12 870.

← All EDIFACT versions