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.97A

GESMES — EDIFACT Generic Statistical Message (D.97A)

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.97A.

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.97A. The segments listed, their status (M / C), position and repetition factor are extracted from the official file gesmes_s.htm hosted on service.unece.org.

Segment structure

The GESMES D.97A message has 77 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        IDEIdentityC×9
0180          SG5Group (×5)C×5
0190          GIRRelated identification numbersM1
0200          DTMDate/time/periodC×2
0210            SG6Group (×9999)C×9999
0220            CDVCode value definitionM1
0230            FTXFree textC×999
0240            IDEIdentityC×5
0250              SG7Group (×999)C×999
0260              STCStatistical conceptM1
0270              FTXFree textC×5
0280              IDEIdentityC×5
0290                SG8Group (×9999)C×9999
0300                ASIArray structure identificationM1
0310                GISGeneral indicatorC×5
0320                FTXFree textC×9
0330                IDEIdentityC×5
0340                  SG9Group (×999)C×999
0350                  SCDStructure component definitionM1
0360                  ATTAttributeC×99
0370                    SG10Group (×9999)C×9999
0380                    IDEIdentityM1
0390                    ATTAttributeC×99
0400                    DTMDate/time/periodC×2
0410                      SG11Group (×999)C×999
0420                      DSIData set identificationM1
0430                      STSStatusC×9
0440                      DTMDate/time/periodC×5
0450                      FTXFree textC×5
0460                      GIRRelated identification numbersC×2
0470                      ARRArray informationC×9999
0480                        SG12Group (×99)C×99
0490                        IDEIdentityM1
0500                        GISGeneral indicatorC×5
0510                        DTMDate/time/periodC×5
0520                          SG13Group (×999)C×999
0530                          CDVCode value definitionM1
0540                          FTXFree textC×99
0550                            SG14Group (×999)C×999
0560                            SCDStructure component definitionM1
0570                            ATTAttributeC×9
0580                            DTMDate/time/periodC×9999
0590                              SG15Group (×9999)C×9999
0600                              CDVCode value definitionM1
0610                              FTXFree textC×99
0620                                SG16Group (×5)C×5
0630                                NADName and addressM1
0640                                IDEIdentityC1
0650                                  SG17Group (×5)C×5
0660                                  CTAContact informationM1
0670                                  COMCommunication contactC×5
0680                                    SG18Group (×5)C×5
0690                                    FNSFootnote setM1
0700                                      SG19Group (×9999)C×9999
0710                                      RELRelationshipM1
0720                                      ARRArray informationC1
0730                                      IDEIdentityC×99
0740                                        SG20Group (×9999)C×9999
0750                                        FNTFootnoteM1
0760                                        FTXFree textC×9999
0770UNTMessage 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.97A 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.

No top-level differences detected between D.96A and D.97A for this message. Differences are then limited to nested groups and code lists.

Structural example

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

edifact gesmes-d97a-example.edi
UNB+UNOC:3+5410000000123:14+5410000000456:14+260514:1430+CTRL097001'
UNH+1+GESMES:D:97A: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+CTRL097001'

Common errors

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

← All EDIFACT versions