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.
GESMES D.02B

GESMES — EDIFACT Generic Statistical Message (D.02B)

The GESMES message is the generic carrier of statistical series between statistical offices, central banks and international bodies (ECB, Eurostat, BIS, IMF): it transports structured time-series with their dimensions, codes and values, without presupposing any business domain — a cross-domain vehicle that preceded SDMX. This page summarises the segment structure as published by UN/CEFACT for directory D.02B.

Purpose

The GESMES message is the generic carrier of statistical series between statistical offices, central banks and international bodies (ECB, Eurostat, BIS, IMF): it transports structured time-series with their dimensions, codes and values, without presupposing any business domain — a cross-domain vehicle that preceded SDMX.

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

Segment structure

The GESMES D.02B message has 88 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.
0010UNHMessage headerM1
0020BGMBeginning of messageC1
0030DTMDate/time/periodC×9
0040  SG1Group (×9999)C×9999
0050  FNTFootnoteM1
0060  FTXFree textC×9999
0070    SG2Group (×9)C×9
0080    NADName and addressM1
0090    IDEIdentityC1
0100      SG3Group (×5)C×5
0110      CTAContact informationM1
0120      COMCommunication contactC×5
0130        SG4Group (×99)C×99
0140        VLIValue list identificationM1
0150        DTMDate/time/periodC×9999
0160        FTXFree textC×9999
0170          SG5Group (×9)C×9
0180          IDEIdentityM1
0190          DTMDate/time/periodC×9
0200            SG6Group (×5)C×5
0210            GIRRelated identification numbersM1
0220            DTMDate/time/periodC×2
0230              SG7Group (×9999)C×9999
0240              CDVCode value definitionM1
0250              FTXFree textC×999
0260                SG8Group (×9)C×9
0270                IDEIdentityM1
0280                DTMDate/time/periodC×9
0290                  SG9Group (×999)C×999
0300                  STCStatistical conceptM1
0310                  FTXFree textC×5
0320                  IDEIdentityC×5
0330                    SG10Group (×9999)C×9999
0340                    ASIArray structure identificationM1
0350                    GEIProcessing informationC×5
0360                    FTXFree textC×9
0370                    IDEIdentityC×5
0380                      SG11Group (×999)C×999
0390                      SCDStructure component definitionM1
0400                      ATTAttributeC×99
0410                        SG12Group (×9999)C×9999
0420                        IDEIdentityM1
0430                        ATTAttributeC×99
0440                        DTMDate/time/periodC×2
0450                          SG13Group (×999)C×999
0460                          DSIData set identificationM1
0470                          STSStatusC×9
0480                          DTMDate/time/periodC×5
0490                          FTXFree textC×5
0500                          GIRRelated identification numbersC×2
0510                            SG14Group (×99)C×99
0520                            IDEIdentityM1
0530                            GEIProcessing informationC×5
0540                            DTMDate/time/periodC×5
0550                              SG15Group (×999)C×999
0560                              CDVCode value definitionM1
0570                              FTXFree textC×99
0580                                SG16Group (×999)C×999
0590                                SCDStructure component definitionM1
0600                                ATTAttributeC×9
0610                                DTMDate/time/periodC×9999
0620                                  SG17Group (×9999)C×9999
0630                                  CDVCode value definitionM1
0640                                  FTXFree textC×99
0650                                  ARRArray informationC×999999
0660                                    SG18Group (×5)C×5
0670                                    NADName and addressM1
0680                                    IDEIdentityC1
0690                                      SG19Group (×5)C×5
0700                                      CTAContact informationM1
0710                                      COMCommunication contactC×5
0720                                        SG20Group (×999)C×999
0730                                        FNSFootnote setM1
0740                                          SG21Group (×9999)C×9999
0750                                          RELRelationshipM1
0760                                            SG22Group (×9999)C×9999
0770                                            ARRArray informationM1
0780                                            FTXFree textC×9999
0790                                              SG23Group (×9999)C×9999
0800                                              IDEIdentityM1
0810                                              FTXFree textC×9999
0820                                                SG24Group (×9999)C×9999
0830                                                CDVCode value definitionM1
0840                                                FTXFree textC×9999
0850                                                  SG25Group (×9999)C×9999
0860                                                  FNTFootnoteM1
0870                                                  FTXFree textC×9999
0880UNTMessage 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.02B for the GESMES 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

  • GEI in the header section (status C, repeat ×5) — not present at the top of the corresponding D.96A section.

Segments removed vs D.96A

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

Max-repeat changes

  • ARR (header): repeat ×9999 in D.96A → ×999999 in D.02B.

Structural example

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

edifact gesmes-d02b-example.edi
UNB+UNOC:3+5410000000123:14+5410000000456:14+260514:1430+CTRL002001'
UNH+1+GESMES:D:02B:UN'
BGM+14+GESMES-2026-Q1-FR+9'
DTM+137:20260514:102'
DTM+9:20260331:102'
BUS++17'
RFF+SRS:EUROSTAT-DS-2026-CPI'
UNT+7+1'
UNZ+1+CTRL002001'

Common errors

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

← All EDIFACT versions