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.
BAPLIE D.21B

BAPLIE — EDIFACT Bay Plan / Stowage Plan (D.21B)

The BAPLIE message is the loading plan of a container vessel: it describes the physical position of each container (bay, row, tier), whether loaded, empty or planned, with its weight, IMDG class and contents. It is the central exchange between terminals and carriers. This page summarises the segment structure as published by UN/CEFACT for directory D.21B.

Purpose

The BAPLIE message is the loading plan of a container vessel: it describes the physical position of each container (bay, row, tier), whether loaded, empty or planned, with its weight, IMDG class and contents. It is the central exchange between terminals and carriers.

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 baplie_c.htm hosted on service.unece.org.

Segment structure

The BAPLIE D.21B message has 55 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
00040  SG1Group (×9)C×9
00050  RFFReferenceM1
00060  DTMDate/time/periodC×9
00070    SG2Group (×9)C×9
00080    NADName and addressM1
00090      SG3Group (×9)C×9
00100      CTAContact informationM1
00110      COMCommunication contactC×9
00120        SG4Group (×9)M×9
00130        TDTTransport informationM1
00140        RFFReferenceC×9
00150        FTXFree textC×9
00160          SG5Group (×9)C×9
00170          LOCPlace/location identificationM1
00180          DTMDate/time/periodC×9
00190UNSSection controlM1
00200  SG6Group (×99999)C×99999
00210  LOCPlace/location identificationM1
00220  ATTAttributeC×99
00230  FTXFree textC×9
00240  RFFReferenceC×9
00250    SG7Group (×9)C×9
00260    EQDEquipment detailsM1
00270    NADName and addressC×9
00280    MEAMeasurementsC×9
00290    HANHandling instructionsC×99
00300    ATTAttributeC×99
00310    DIMDimensionsC×9
00320    RFFReferenceC×9
00330    GDSNature of cargoC×99
00340    FTXFree textC×9
00350      SG8Group (×9)C×9
00360      LOCPlace/location identificationM1
00370      TSRTransport service requirementsC1
00380      TDTTransport informationC1
00390        SG9Group (×9)C×9
00400        TMPTemperatureM1
00410        RNGRange detailsC1
00420        DTMDate/time/periodC1
00430          SG10Group (×9)C×9
00440          EQAAttached equipmentM1
00450          NADName and addressC1
00460            SG11Group (×999)C×999
00470            DGSDangerous goodsM1
00480            ATTAttributeC×9
00490            MEAMeasurementsC×9
00500            FTXFree textC×9
00510              SG12Group (×9)C×9
00520              CTAContact informationM1
00530              COMCommunication contactC×9
00540              CNTControl totalM1
00550UNTMessage 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.21B for the BAPLIE 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

  • CTA in the header section (status M, repeat ×1) — not present at the top of the corresponding D.96A section.
  • COM in the header section (status C, repeat ×9) — not present at the top of the corresponding D.96A section.
  • UNS in the header section (status M, repeat ×1) — not present at the top of the corresponding D.96A section.
  • ATT in the header section (status C, repeat ×99) — not present at the top of the corresponding D.96A section.
  • HAN in the header section (status C, repeat ×99) — not present at the top of the corresponding D.96A section.
  • TSR in the header section (status C, repeat ×1) — not present at the top of the corresponding D.96A section.
  • CNT in the header section (status M, repeat ×1) — not present at the top of the corresponding D.96A section.

Segments removed vs D.96A

  • GID in the header section — present in D.96A but missing in D.21B at the same level.

Status changes (M ↔ C)

  • DTM (header): status M in D.96A → C in D.21B.
  • NAD (header): status C in D.96A → M in D.21B.
  • MEA (header): status M in D.96A → C in D.21B.
  • TMP (header): status C in D.96A → M in D.21B.
  • EQA (header): status C in D.96A → M in D.21B.

Max-repeat changes

  • DTM (header): repeat ×1 in D.96A → ×9 in D.21B.
  • NAD (header): repeat ×3 in D.96A → ×1 in D.21B.
  • FTX (header): repeat ×1 in D.96A → ×9 in D.21B.
  • LOC (header): repeat ×2 in D.96A → ×1 in D.21B.
  • GDS (header): repeat ×1 in D.96A → ×99 in D.21B.
  • EQA (header): repeat ×9 in D.96A → ×1 in D.21B.

Structural example

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

edifact baplie-d21b-example.edi
UNB+UNOC:3+5410000000123:14+5410000000456:14+260514:1430+CTRL021001'
UNH+1+BAPLIE:D:21B:UN'
BGM+244+BAPLIE-2026-MSC1234+9'
DTM+137:202605141430:203'
TDT+20+MSC1234W+1++MSC::ZZZ+++9301234:103:::MSC OSCAR'
LOC+5+FRLEH::6'
LOC+147+0010186::ZZZ'
EQD+CN+MSCU1234567+45G1+++5'
MEA+AAE+G+KGM:24500'
UNT+8+1'
UNZ+1+CTRL021001'

Common errors

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

← All EDIFACT versions