HANMOV — EDIFACT Cargo / Goods Handling and Movement Message (D.18B)
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.18B.
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.18B. 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.18B 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.
Header
| Pos. | Tag | Name | S | Rep. |
|---|---|---|---|---|
00010 | UNH | Message header | M | 1 |
00020 | BGM | Beginning of message | M | 1 |
00030 | DTM | Date/time/period | C | ×9 |
00040 | HAN | Handling instructions | C | ×9 |
00050 | FTX | Free text | C | ×9 |
00060 | CNT | Control total | C | ×9 |
00070 | CUX | Currencies | C | ×9 |
00080 | SG1 | Group (×9) | C | ×9 |
00090 | TCC | Charge/rate calculations | M | 1 |
00100 | LOC | Place/location identification | C | ×9 |
00110 | FTX | Free text | C | ×9 |
00120 | CUX | Currencies | C | ×9 |
00130 | SG2 | Group (×9) | C | ×9 |
00140 | RFF | Reference | M | 1 |
00150 | DTM | Date/time/period | C | ×9 |
00160 | SG3 | Group (×1) | C | 1 |
00170 | STS | Status | M | 1 |
00180 | DTM | Date/time/period | C | ×9 |
00190 | FTX | Free text | C | ×9 |
00200 | HAN | Handling instructions | C | ×9 |
00210 | MOA | Monetary amount | C | ×9 |
00220 | SG4 | Group (×9) | C | ×9 |
00230 | NAD | Name and address | M | 1 |
00240 | LOC | Place/location identification | C | ×9 |
00250 | DOC | Document/message details | C | ×9 |
00260 | SG5 | Group (×9) | C | ×9 |
00270 | RFF | Reference | M | 1 |
00280 | DTM | Date/time/period | C | ×9 |
00290 | SG6 | Group (×1) | C | 1 |
00300 | CTA | Contact information | M | 1 |
00310 | COM | Communication contact | C | ×9 |
00320 | SG7 | Group (×9) | C | ×9 |
00330 | TDT | Transport information | M | 1 |
00340 | SG8 | Group (×1) | C | 1 |
00350 | STS | Status | M | 1 |
00360 | LOC | Place/location identification | C | ×9 |
00370 | DTM | Date/time/period | C | ×9 |
00380 | SG9 | Group (×1) | C | 1 |
00390 | RFF | Reference | M | 1 |
00400 | DTM | Date/time/period | C | ×9 |
00410 | SG10 | Group (×1) | C | 1 |
00420 | DOC | Document/message details | M | 1 |
00430 | DTM | Date/time/period | C | ×9 |
00440 | SG11 | Group (×9) | C | ×9 |
00450 | TOD | Terms of delivery or transport | M | 1 |
00460 | LOC | Place/location identification | C | ×9 |
00470 | SG12 | Group (×99) | C | ×99 |
00480 | LIN | Line item | M | 1 |
00490 | SG13 | Group (×1) | C | 1 |
00500 | STS | Status | M | 1 |
00510 | PIA | Additional product id | C | ×9 |
00520 | IMD | Item description | C | ×99 |
00530 | HAN | Handling instructions | C | ×9 |
00540 | TCC | Charge/rate calculations | C | ×9 |
00550 | SG14 | Group (×9) | C | ×9 |
00560 | NAD | Name and address | M | 1 |
00570 | SG15 | Group (×9) | C | ×9 |
00580 | CTA | Contact information | M | 1 |
00590 | COM | Communication contact | C | ×9 |
00600 | MEA | Measurements | C | ×9 |
00610 | QTY | Quantity | C | ×9 |
00620 | GIN | Goods identity number | C | ×99 |
00630 | GIR | Related identification numbers | C | ×99 |
00640 | SG16 | Group (×1) | C | 1 |
00650 | DTM | Date/time/period | M | 1 |
00660 | QTY | Quantity | C | ×9 |
00670 | FTX | Free text | C | ×9 |
00680 | SG17 | Group (×1) | C | 1 |
00690 | RFF | Reference | M | 1 |
00700 | DTM | Date/time/period | C | ×9 |
00710 | LOC | Place/location identification | C | ×9 |
00720 | SG18 | Group (×1) | C | 1 |
00730 | PAC | Package | M | 1 |
00740 | MEA | Measurements | C | ×9 |
00750 | QTY | Quantity | C | ×9 |
00760 | SG19 | Group (×9) | C | ×9 |
00770 | PCI | Package identification | M | 1 |
00780 | GIN | Goods identity number | C | ×9 |
00790 | SG20 | Group (×9) | C | ×9 |
00800 | GID | Goods item details | M | 1 |
00810 | HAN | Handling instructions | C | ×9 |
00820 | CST | Customs status of goods | C | ×9 |
00830 | TMP | Temperature | C | ×9 |
00840 | RNG | Range details | C | ×9 |
00850 | LOC | Place/location identification | C | ×9 |
00860 | MOA | Monetary amount | C | ×9 |
00870 | PIA | Additional product id | C | ×9 |
00880 | FTX | Free text | C | ×9 |
00890 | NAD | Name and address | C | ×9 |
00900 | MEA | Measurements | C | ×9 |
00910 | DIM | Dimensions | C | ×9 |
00920 | RFF | Reference | C | ×9 |
00930 | PCI | Package identification | C | ×9 |
00940 | SG21 | Group (×9) | C | ×9 |
00950 | DOC | Document/message details | M | 1 |
00960 | DTM | Date/time/period | C | ×9 |
00970 | SGP | Split goods placement | C | ×9 |
00980 | TCC | Charge/rate calculations | C | ×9 |
00990 | SG22 | Group (×9) | C | ×9 |
01000 | DGS | Dangerous goods | M | 1 |
01010 | FTX | Free text | C | ×9 |
01020 | MEA | Measurements | C | ×9 |
01030 | SG23 | Group (×9) | C | ×9 |
01040 | EQD | Equipment details | M | 1 |
01050 | EQN | Number of units | C | ×9 |
01060 | SEL | Seal number | C | ×9 |
01070 | EQA | Attached equipment | C | ×99 |
01080 | RFF | Reference | C | ×9 |
01090 | UNT | Message trailer | M | 1 |
Detail
No segment in this section.
Summary
No segment in this section.
Changes vs D.96A
Top-level differences between D.96A and D.18B 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
STSin the header section (status M, repeat ×1) — not present at the top of the corresponding D.96A section.TODin 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.18B.TMP(header): repeat ×1 in D.96A → ×9 in D.18B.RNG(header): repeat ×1 in D.96A → ×9 in D.18B.EQN(header): repeat ×1 in D.96A → ×9 in D.18B.SEL(header): repeat ×1 in D.96A → ×9 in D.18B.
Structural example
Minimal example of an HANMOV D.18B message with mandatory segments only. The goal is to show the exact version declared in UNH (HANMOV:D:18B:UN) — not to replicate a full business case (see the HANMOV D.96A page for an annotated example).
UNB+UNOC:3+5410000000123:14+5410000000456:14+260514:1430+CTRL018001'
UNH+1+HANMOV:D:18B: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+CTRL018001' Common errors
- Misaligned UNH tokens — The
UNH+...+HANMOV:D:18B:UNtoken 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.18B, 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.
Related messages
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.20B.