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.
HANMOV D.20B

HANMOV — EDIFACT Cargo / Goods Handling and Movement Message (D.20B)

The HANMOV message describes the cargo handling and movement operations within a logistics site — terminal, warehouse, port or airport hub: lifting orders, internal moves, inter-terminal transfers. It bridges WMS / TOS systems with their operational resources. This page summarises the segment structure as published by UN/CEFACT for directory D.20B.

Purpose

The HANMOV message describes the cargo handling and movement operations within a logistics site — terminal, warehouse, port or airport hub: lifting orders, internal moves, inter-terminal transfers. It bridges WMS / TOS systems with their operational resources.

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

Segment structure

The HANMOV D.20B message has 109 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/periodC×9
00040HANHandling instructionsC×9
00050FTXFree textC×9
00060CNTControl totalC×9
00070CUXCurrenciesC×9
00080  SG1Group (×9)C×9
00090  TCCCharge/rate calculationsM1
00100  LOCPlace/location identificationC×9
00110  FTXFree textC×9
00120  CUXCurrenciesC×9
00130    SG2Group (×9)C×9
00140    RFFReferenceM1
00150    DTMDate/time/periodC×9
00160      SG3Group (×1)C1
00170      STSStatusM1
00180      DTMDate/time/periodC×9
00190      FTXFree textC×9
00200      HANHandling instructionsC×9
00210      MOAMonetary amountC×9
00220        SG4Group (×9)C×9
00230        NADName and addressM1
00240        LOCPlace/location identificationC×9
00250        DOCDocument/message detailsC×9
00260          SG5Group (×9)C×9
00270          RFFReferenceM1
00280          DTMDate/time/periodC×9
00290            SG6Group (×1)C1
00300            CTAContact informationM1
00310            COMCommunication contactC×9
00320              SG7Group (×9)C×9
00330              TDTTransport informationM1
00340                SG8Group (×1)C1
00350                STSStatusM1
00360                LOCPlace/location identificationC×9
00370                DTMDate/time/periodC×9
00380                  SG9Group (×1)C1
00390                  RFFReferenceM1
00400                  DTMDate/time/periodC×9
00410                    SG10Group (×1)C1
00420                    DOCDocument/message detailsM1
00430                    DTMDate/time/periodC×9
00440                      SG11Group (×9)C×9
00450                      TODTerms of delivery or transportM1
00460                      LOCPlace/location identificationC×9
00470                        SG12Group (×99)C×99
00480                        LINLine itemM1
00490                          SG13Group (×1)C1
00500                          STSStatusM1
00510                          PIAAdditional product idC×9
00520                          IMDItem descriptionC×99
00530                          HANHandling instructionsC×9
00540                          TCCCharge/rate calculationsC×9
00550                            SG14Group (×9)C×9
00560                            NADName and addressM1
00570                              SG15Group (×9)C×9
00580                              CTAContact informationM1
00590                              COMCommunication contactC×9
00600                              MEAMeasurementsC×9
00610                              QTYQuantityC×9
00620                              GINGoods identity numberC×99
00630                              GIRRelated identification numbersC×99
00640                                SG16Group (×1)C1
00650                                DTMDate/time/periodM1
00660                                QTYQuantityC×9
00670                                FTXFree textC×9
00680                                  SG17Group (×1)C1
00690                                  RFFReferenceM1
00700                                  DTMDate/time/periodC×9
00710                                  LOCPlace/location identificationC×9
00720                                    SG18Group (×1)C1
00730                                    PACPackageM1
00740                                    MEAMeasurementsC×9
00750                                    QTYQuantityC×9
00760                                      SG19Group (×9)C×9
00770                                      PCIPackage identificationM1
00780                                      GINGoods identity numberC×9
00790                                        SG20Group (×9)C×9
00800                                        GIDGoods item detailsM1
00810                                        HANHandling instructionsC×9
00820                                        CSTCustoms status of goodsC×9
00830                                        TMPTemperatureC×9
00840                                        RNGRange detailsC×9
00850                                        LOCPlace/location identificationC×9
00860                                        MOAMonetary amountC×9
00870                                        PIAAdditional product idC×9
00880                                        FTXFree textC×9
00890                                        NADName and addressC×9
00900                                        MEAMeasurementsC×9
00910                                        DIMDimensionsC×9
00920                                        RFFReferenceC×9
00930                                        PCIPackage identificationC×9
00940                                          SG21Group (×9)C×9
00950                                          DOCDocument/message detailsM1
00960                                          DTMDate/time/periodC×9
00970                                          SGPSplit goods placementC×9
00980                                          TCCCharge/rate calculationsC×9
00990                                            SG22Group (×9)C×9
01000                                            DGSDangerous goodsM1
01010                                            FTXFree textC×9
01020                                            MEAMeasurementsC×9
01030                                              SG23Group (×9)C×9
01040                                              EQDEquipment detailsM1
01050                                              EQNNumber of unitsC×9
01060                                              SELSeal numberC×9
01070                                              EQAAttached equipmentC×99
01080                                              RFFReferenceC×9
01090UNTMessage trailerM1

Detail

No segment in this section.

Summary

No segment in this section.

Changes vs D.96A

Top-level differences between D.96A and D.20B for the HANMOV message (segments directly inside header / detail / summary, ignoring nested groups). The comparison is indicative: a given tag may have evolved inside nested groups without showing up in this synthesis.

Segments added vs D.96A

  • STS in the header section (status M, repeat ×1) — not present at the top of the corresponding D.96A section.
  • TOD in the header section (status M, repeat ×1) — not present at the top of the corresponding D.96A section.

Max-repeat changes

  • CST (header): repeat ×1 in D.96A → ×9 in D.20B.
  • TMP (header): repeat ×1 in D.96A → ×9 in D.20B.
  • RNG (header): repeat ×1 in D.96A → ×9 in D.20B.
  • EQN (header): repeat ×1 in D.96A → ×9 in D.20B.
  • SEL (header): repeat ×1 in D.96A → ×9 in D.20B.

Structural example

Minimal example of an HANMOV D.20B message with mandatory segments only. The goal is to show the exact version declared in UNH (HANMOV:D:20B:UN) — not to replicate a full business case (see the HANMOV D.96A page for an annotated example).

edifact hanmov-d20b-example.edi
UNB+UNOC:3+5410000000123:14+5410000000456:14+260514:1430+CTRL020001'
UNH+1+HANMOV:D:20B:UN'
BGM+266+HANMOV-2026-1004+9'
DTM+137:202605141430:203'
HAN+L:::Lifting and inland transfer'
FTX+AAI+++Move 24 containers from yard Block A to rail siding R2'
LOC+5+FRLEH::6'
LOC+11+FRTGV::6'
UNT+8+1'
UNZ+1+CTRL020001'

Common errors

  • Misaligned UNH tokens — The UNH+...+HANMOV:D:20B: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.20B, 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: HANMOV D.96A, HANMOV D.01B, HANMOV D.10A, HANMOV D.16B, HANMOV D.21B, HANMOV D.24A, HANMOV D.97A, HANMOV D.99B, HANMOV D.00B, HANMOV D.02B, HANMOV D.05A, HANMOV D.08A, HANMOV D.13B, HANMOV D.18B.

← All EDIFACT versions