DESADV — Despatch Advice
Version: 2.0 — June 2026
EDIfact Standard: EANCOM D.01B
XML: v2.0
XSD: `Azuvio-CRMconnect-EDIconnect-DESADV-v2.0.xsd`
Direction: Outbound (CRMconnect → Partner)
Trigger: Shipment confirmation in Warehouse → Issues
CRMconnect Module: Warehouse → Delivery Advices
In response to: ORDERS
Partner responds with: RECADV
The despatch advice (DESADV) must be sent before the physical delivery of goods. The partner processes it to prepare the reception and to verify quantities against the order.
EDIfact D.01B
The following schema represents the list of elements in sequential order, not a complete syntactic form of the EANCOM message. It is based on the EANCOM D.01B standard.
| Status | EANCOM Segment | Description |
|---|---|---|
UNA:+.? ' |
Separator specification | |
| Mandatory | UNB+UNOD:3+{GLN_Sender}:14+{GLN_Receiver}:14+{YYMMDD}:{HHMM}+{RefNo}' |
Physical file start. UNB_0010 = receiver GLN. Test: ++++++1 at end |
| Mandatory | UNH+00001+DESADV:D:01B:UN:EAN008' |
Start of a despatch advice |
| Mandatory | BGM+351::9+{DespatchNo}+9' |
Document type and advice number. BGM_1001: 351=despatch advice; BGM_1225: 9=original |
| Mandatory | DTM+137:{YYYYMMDD}:102' |
Advice date |
| Optional | DTM+17:{YYYYMMDD}:102' |
Goods delivery date |
| Optional | MEA+PD+G+KGM:{TotalWeight}' |
Total delivered weight (products + packaging + pallets) |
| Mandatory | RFF+ON:{OrderNo}' |
Order number |
| Optional | DTM+171:{YYYYMMDD}:102' |
Order date |
| Optional | RFF+DQ:{DespatchNo}' |
Advice number — same as in BGM+ |
| Mandatory | NAD+SU+{GLN_Supplier}::9++{Name}+{Address}+{Town}++{PostalCode}' |
Supplier GLN, Name, Address. GLN is mandatory, rest optional |
| Optional | RFF+YC1:{SupplierCode}' |
Supplier code |
| Mandatory | NAD+BY+{GLN_Buyer}::9++{Name}+{Address}+{Town}++{PostalCode}+{Country}' |
Buyer GLN, Address. GLN is mandatory |
| Mandatory | NAD+DP+{GLN_Store}::9++{StoreName}+{Address}+{Town}++{PostalCode}' |
Store/Platform GLN, Postal address — delivery location. GLN is mandatory |
| Optional | TDT+20+++31+:::{DriverName}+++:::{LicensePlate}' |
Transport details: 20=main carriage code; 31=road transport |
Although TDT (driver + license plate) is optional, we recommend including it. Partners who receive it use it to verify the vehicle at the warehouse gate, significantly reducing waiting time at unloading.
| Status | EANCOM Segment | Description |
|---|---|---|
| Mandatory | CPS+1' |
Start of despatched package description |
| Optional | PAC+{PalletCount}++{PackageType}' |
Number of identical packages and package type. Ex: PAC+1++201 = 1 ISO pallet |
| Optional | PCI+33E' |
The package/carrier has a code displayed on its label |
| Optional | GIN+BJ+{SSCC}' |
SSCC (serial shipping container code) of the package |
| Mandatory | LIN+{LineNo}++{EAN}:EN' |
Main line position — product EAN code |
| Mandatory | PIA+1+{BuyerCode}:BP' |
Buyer's internal product code — as transmitted in ORDERS |
| Optional | PIA+1+{SupplierCode}:SA' |
Supplier's internal product code |
| Mandatory | QTY+12:{Qty}:PCE' |
12=quantity despatched for delivery. UOM: PCE=pieces, CS=cases, KGM=weighable items |
| Optional | QTY+59:{ConsumerUnits}:PCE' |
59=packing unit (number of pieces per case) — where applicable |
| Optional | DTM+361:{YYYYMMDD}:102' |
Best before date. If the same product has different dates → separate LIN+ group per date |
| Optional | DTM+36:{YYYYMMDD}:102' |
Expiry date. If the same product has different dates → separate LIN+ group per date |
| Optional | RFF+BT:{BatchNo}' |
Batch number. If the same product comes from different batches → separate LIN+ group per batch |
| Mandatory | CNT+2:{LineCount}' |
Number of lines (products) in the advice |
| Mandatory | UNT+{SegmentCount}+{MessageRef}' |
Advice terminator — message ID is repeated |
| Mandatory | UNZ+{MessageCount}+{InterchangeRef}' |
Physical file terminator — file ID is repeated |
EDIfact Example
UNA:+.? '
UNB+UNOD:3+5940000000010:14+5940000000020:14+240319:1400+000088'
UNH+00001+DESADV:D:01B:UN:EAN008'
BGM+351::9+3499956+9'
DTM+137:20240319:102'
DTM+17:20240320:102'
MEA+PD+G+KGM:3890'
RFF+ON:45147813'
DTM+171:20240315:102'
NAD+SU+5940000000010::9++Furnizor SRL+Str. Exemplu 1+Bucuresti++010000'
RFF+YC1:42759'
NAD+BY+5940000000020::9++Retailer SRL+Bd. Unirii 10+Bucuresti++030000+RO'
NAD+DP+5940000000030::9++Depozit Central+Str. Logistica 5+Ilfov++077000'
TDT+20+++31+:::Ion Popescu+++:::B-51-FMS'
CPS+1'
PAC+1++201'
PCI+33E'
GIN+BJ+340000000010000001'
LIN+1++4304984471105:EN'
PIA+1+3342:BP'
PIA+1+8622:SA'
QTY+12:18:PCE'
QTY+59:6:PCE'
DTM+36:20251231:102'
RFF+BT:LOT-2024-03'
CNT+2:1'
UNT+25+00001'
UNZ+1+000088'
XML v2.0
Message structure: <Message> → <Version> → <Documents> → <Desadv> → <Header> + <Lines> + <Summary>
Header
| XML Element | Example | Format | M | Description |
|---|---|---|---|---|
Version |
2.0 |
Decimal (max 2) | File version | |
DocumentDate |
2017-03-02 |
YYYY-MM-DD | Yes | Document date — when it was issued |
DeliveryNumber |
65282 |
Text | Yes | Despatch advice number |
EstimatedDeliveryDate |
2012-03-05 |
YYYY-MM-DD | No | Estimated delivery date |
RequestedDeliveryDate |
2017-03-05 |
YYYY-MM-DD | No | Requested delivery date |
OrderNumber |
45051454 |
Number | Yes | Order number |
OrderDate |
2012-07-27 |
YYYY-MM-DD | No | Order date |
CarrierRefNo |
45051454 |
Text (10) | No | Carrier reference number |
DocumentType |
O |
Char (1) | Yes | O=original, C=cancellation, R=replacement |
TestIndicator |
1 |
1 or 0 | No | 1=Test, 0 or absent=Production |
NetWeight |
1200 |
Number | No | Total net weight of the delivery in KGM |
GrossWeight |
3900 |
Number | No | Total gross weight in KGM (incl. transport equipment) |
TotalPackages |
8 |
Number | No | Total number of outer packages (e.g.: 8 pallets) |
LoadNo |
1 |
Text | No | Load number sent by supplier |
RouteNo |
1 |
Text | No | Route number sent by supplier |
TransportStage |
20 |
Text (3) | No | 20=main carriage |
TransportType |
30 |
Text (3) | No | 10=sea, 20=rail, 30=road, 40=air, 60=multimodal, 80=inland waterway |
TransportMeans |
30 |
Text (8) | No | 31=truck, 38=car, 28=refrigerated truck |
CarrierGLN |
5948909999665 |
Number (max 14) | No | Carrier GLN |
CarrierName |
ION GHEORGHE |
Text | No | Driver name |
TrailerNumber |
B-51-FMS |
Text | No | License plate number |
ContainerNumber |
943777 |
Text | No | Container number |
SealNumber |
4328 |
Text | No | Container seal number |
| Buyer | <Buyer> |
XML Tag | Buyer section | |
Buyer/GLN |
5948909999665 |
Number (max 14) | No | Buyer GLN |
Buyer/BuyerInternalCode |
18610500 |
Text | Yes | Buyer internal code |
Buyer/SAPCode |
18610500 |
Text | No | SAP code |
Buyer/Name |
Text | No | Name | |
Buyer/Address |
Text | No | Address | |
Buyer/Town |
Text | No | Town | |
Buyer/County |
Text | No | County | |
Buyer/Country |
Text | No | Country | |
Buyer/PostalCode |
Text | No | Postal code | |
Buyer/VatNo |
RO18610500 |
Text | No | Buyer VAT number |
| Seller | <Seller> |
XML Tag | Supplier section | |
Seller/GLN |
5948909999665 |
Number (max 14) | No | Supplier GLN |
Seller/SupplierInternalCode |
18610500 |
Text | Yes | Supplier internal code |
Seller/SAPCode |
Text | No | SAP code | |
Seller/Name |
Text | No | Name | |
Seller/Address |
Text | No | Address | |
Seller/Town |
Text | No | Town | |
Seller/County |
Text | No | County | |
Seller/Country |
Text | No | Country | |
Seller/PostalCode |
Text | No | Postal code | |
Seller/VatNo |
Text | No | Supplier VAT number | |
| Delivery | <Delivery> |
XML Tag | Delivery location | |
Delivery/GLN |
5948909999665 |
Number (max 14) | No | Delivery location GLN |
Delivery/DeliveryInternalCode |
18610500 |
Text | Yes | Delivery location internal code |
Delivery/SAPCode |
Text | No | SAP code | |
Delivery/Name |
Text | No | Name | |
Delivery/Address |
Text | No | Address | |
Delivery/Town |
Text | No | Town | |
Delivery/County |
Text | No | County | |
Delivery/Country |
Text | No | Country | |
Delivery/PostalCode |
Text | No | Postal code | |
Delivery/VatNo |
Text | No | Location VAT number | |
Invoicee/GLN |
5948909999665 |
Number (max 14) | Yes | Logistics service provider (LSP) GLN |
Invoicee/LSPInternalCode |
18610500 |
Text | No | Logistics service provider internal code |
Lines
| XML Element | Example | Format | M | Description |
|---|---|---|---|---|
LineNumber |
1 |
Numeric | Yes | Line number in the advice |
EAN |
5941234567899 |
Number (max 14) | Yes | Item EAN |
ArticleName |
Coca cola 2L |
Text | No | Article name |
BuyerItemCode |
123456001001 |
Number (max 20) | Yes | Article code assigned by the buyer |
BuyerAdditionalItemCode |
254635 |
Number | No | Buyer's additional article code |
SupplierItemCode |
ABC1234 |
Text (max 35) | No | Supplier's internal article code |
SupplierItemCodeVariant |
4 |
Text (max 35) | No | Supplier article code variant |
QuantityOrder |
37.000 |
Decimal (max 3) | No | Original ordered quantity |
QuantityDelivery |
37.000 |
Decimal (max 3) | Yes | Quantity despatched for delivery |
UnitOfMeasure |
PCE |
Allowed list | Yes | Standard EDIFACT unit of measure (PCE, KGM) |
PackingUnit |
12 |
Numeric | Yes | Number of consumer units in the traded unit. If traded unit = consumer unit → value 1 |
Price |
10.3740 |
Decimal (max 4) | No | Net net price per traded unit |
UnitPrice |
0.8645 |
Decimal (max 2) | No | Net net price per consumer unit (Price / PackingUnit) |
ArticleType |
CU |
Text (max 2) | No | CU=consumer unit, TU=traded unit |
FreeGoods |
0 |
Number (0 or 1) | No | 0=no; 1=free goods |
ExpiryDate |
2016-10-08 |
Date varchar (YYYY-MM-DD) | No | Expiry date |
BestBeforeDate |
2016-10-08 |
Date varchar (YYYY-MM-DD) | No | Best before date |
ReasonActionCode |
0 |
Text | No | Supplier internal reason/action code |
BatchNo |
0 |
Text | No | Batch number |
BatchCode |
F |
Text (1) | No | F=free, E=restricted, Q=quarantine, S=blocked |
VendorDispatchNo |
0 |
Text | No | Supplier internal dispatch number for this line |
VendorDispatchDate |
0 |
Text | No | Supplier internal dispatch date |
VendorDipatchPos |
7 |
Text | No | Position of goods on supplier's internal dispatch |
VendorOrderNo |
0 |
Text | No | Supplier's internal order number |
VendorOrderDate |
0 |
Text | No | Supplier's internal order date |
VendorOrderPos |
7 |
Text | No | Position on supplier's internal order |
CustomerOrderNo |
0 |
Text | No | Customer order number |
CustomerOrderDate |
0 |
Text | No | Customer order date |
CustomerOrderPos |
7 |
Text | No | Position on customer's order |
| PackageDetails | <PackageDetails> |
XML Tag | No | Package details |
PackageDetails/PackageType |
CT |
Text (3) | No | Package type (CT=carton, 201=pallet) |
PackageDetails/PackageTypeIdentCode |
50 |
Text (3) | No | 50=EAN-13/EAN-8 barcode, 52=UCC/EAN-128 barcode |
PackageDetails/NumberOfPackages |
108 |
Number (11,3) | No | Number of packages on the same pallet (marked with the SSCC below) |
PackageDetails/SSCC |
340017244206795132 |
Text (18) | No | SSCC — unique pallet code |
The SSCC must be exactly 18 digits (GS1 Serial Shipping Container Code format). Partners who scan the barcode at reception will reject advices with an invalid SSCC.
| XML Element | Example | Format | M | Description |
|---|---|---|---|---|
PackageDetails/PackageWeight |
100 |
Number | No | Weight of one package in KGM |
PackageDetails/PackageLenght |
1200 |
Number | No | Length of one package in mm |
PackageDetails/PackageHeight |
1600 |
Number | No | Height of one package in mm |
PackageDetails/PackageWidth |
800 |
Number | No | Width of one package in mm |
PackageDetails/PackageVolume |
1.4 |
Number | No | Volume of one package in cubic metres |
PackageDetails/MaxStackability |
1.4 |
Number | No | Maximum number of stacked packages |
DeliveryPackageType |
201 |
Text | No | EANCOM package type code: 201=ISO 1/1 Euro Pallet (80×120cm), 202=ISO 2 Pallet (100×120cm) |
Summary
| XML Element | Example | Format | M | Description |
|---|---|---|---|---|
Lines |
1 |
Number | Total number of lines in the advice |
XSD Schema
File: `Azuvio-CRMconnect-EDIconnect-DESADV-v2.0.xsd`
xmllint --schema Azuvio-CRMconnect-EDIconnect-DESADV-v2.0.xsd aviz-livrare.xml --noout
CRMconnect Field Mapping
| EDI Field | EDIfact Segment / XML Element | CRMconnect Field |
|---|---|---|
| Advice number | BGM+351 / DeliveryNumber |
Warehouse → Issue → Document Number |
| Advice date | DTM+137 / DocumentDate |
Warehouse → Issue → Date |
| Order reference | RFF+ON / OrderNumber |
Sales → Orders → Reference |
| SSCC | GIN+BJ / PackageDetails/SSCC |
Shipment → Package Label |
| Despatched quantity | QTY+12 / QuantityDelivery |
Issue Line → Quantity |
| Batch number | RFF+BT / BatchNo |
Stock → Batch |
| Expiry date | DTM+36 / ExpiryDate |
Stock → Expiry Date |
| Driver name | TDT / CarrierName |
Courier → Driver |
| License plate | TDT / TrailerNumber |
Courier → AWB/Vehicle |