DOCADV — EDIFACT Document/Message Advice Message (D.97A)
The DOCADV message is the advice sent by a trade partner regarding a previously received document: it indicates its status (accepted, accepted with reservations, rejected), the discrepancies detected, the related references and the actions required. It is one of the three EDIFACT business-feedback channels alongside APERAK and CONTRL. This page summarises the segment structure as published by UN/CEFACT for directory D.97A.
Purpose
The DOCADV message is the advice sent by a trade partner regarding a previously received document: it indicates its status (accepted, accepted with reservations, rejected), the discrepancies detected, the related references and the actions required. It is one of the three EDIFACT business-feedback channels alongside APERAK and CONTRL.
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 docadv_s.htm hosted on service.unece.org.
Segment structure
The DOCADV D.97A message has 80 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. |
|---|---|---|---|---|
0010 | UNH | Message header | M | 1 |
0020 | BGM | Beginning of message | M | 1 |
0030 | RFF | Reference | M | 1 |
0040 | BUS | Business function | M | 1 |
0050 | INP | Parties to instruction | M | ×5 |
0060 | DTM | Date/time/period | M | ×3 |
0070 | FTX | Free text | C | ×9 |
0080 | SG1 | Group (×9) | M | ×9 |
0090 | FII | Financial institution information | M | 1 |
0100 | RFF | Reference | C | ×2 |
0110 | CTA | Contact information | C | 1 |
0120 | COM | Communication contact | C | ×5 |
0130 | SG2 | Group (×9) | M | ×9 |
0140 | NAD | Name and address | M | 1 |
0150 | RFF | Reference | C | 1 |
0160 | CTA | Contact information | C | 1 |
0170 | COM | Communication contact | C | ×5 |
0180 | SG3 | Group (×1) | M | 1 |
0190 | DTM | Date/time/period | M | 1 |
0200 | LOC | Place/location identification | C | 1 |
0210 | SG4 | Group (×5) | M | ×5 |
0220 | MOA | Monetary amount | M | 1 |
0230 | SG5 | Group (×1) | C | 1 |
0240 | ALC | Allowance or charge | M | 1 |
0250 | PCD | Percentage details | C | ×2 |
0260 | SG6 | Group (×3) | M | ×3 |
0270 | LOC | Place/location identification | M | 1 |
0280 | DTM | Date/time/period | C | 1 |
0290 | SG7 | Group (×1) | M | 1 |
0300 | PAI | Payment instructions | M | 1 |
0310 | LOC | Place/location identification | C | 1 |
0320 | SG8 | Group (×5) | M | ×5 |
0330 | PAT | Payment terms basis | M | 1 |
0340 | FII | Financial institution information | C | 1 |
0350 | DTM | Date/time/period | C | 1 |
0360 | MOA | Monetary amount | C | 1 |
0370 | PCD | Percentage details | C | 1 |
0380 | FTX | Free text | C | 1 |
0390 | SG9 | Group (×1) | C | 1 |
0400 | TOD | Terms of delivery or transport | M | 1 |
0410 | LOC | Place/location identification | C | 1 |
0420 | SG10 | Group (×1) | C | 1 |
0430 | TSR | Transport service requirements | M | 1 |
0440 | LOC | Place/location identification | C | ×5 |
0450 | SG11 | Group (×5) | C | ×5 |
0460 | INP | Parties to instruction | M | 1 |
0470 | FTX | Free text | C | 1 |
0480 | DTM | Date/time/period | C | ×2 |
0490 | SG12 | Group (×5) | C | ×5 |
0500 | FCA | Financial charges allocation | M | 1 |
0510 | MOA | Monetary amount | C | ×2 |
0520 | SG13 | Group (×20) | C | ×20 |
0530 | ALC | Allowance or charge | M | 1 |
0540 | PCD | Percentage details | C | ×3 |
0550 | MOA | Monetary amount | C | ×3 |
0560 | DTM | Date/time/period | C | 1 |
0570 | SG14 | Group (×5) | C | ×5 |
0580 | TAX | Duty/tax/fee details | M | 1 |
0590 | MOA | Monetary amount | C | ×2 |
0600 | DTM | Date/time/period | C | 1 |
0610 | SG15 | Group (×9) | M | ×9 |
0620 | RFF | Reference | M | 1 |
0630 | DTM | Date/time/period | C | 1 |
0640 | FTX | Free text | C | 1 |
0650 | SG16 | Group (×20) | M | ×20 |
0660 | DOC | Document/message details | M | 1 |
0670 | MOA | Monetary amount | C | 1 |
0680 | PCD | Percentage details | C | 1 |
0690 | LOC | Place/location identification | C | 1 |
0700 | FTX | Free text | C | 1 |
0710 | SG17 | Group (×9) | C | ×9 |
0720 | ALI | Additional information | M | 1 |
0730 | SG18 | Group (×3) | C | ×3 |
0740 | NAD | Name and address | M | 1 |
0750 | CTA | Contact information | C | 1 |
0760 | COM | Communication contact | C | ×5 |
0770 | SG19 | Group (×1) | C | 1 |
0780 | AUT | Authentication result | M | 1 |
0790 | DTM | Date/time/period | C | 1 |
0800 | 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.97A for the DOCADV 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 DOCADV D.97A message with mandatory segments only. The goal is to show the exact version declared in UNH (DOCADV:D:97A:UN) — not to replicate a full business case (see the DOCADV D.96A page for an annotated example).
UNB+UNOC:3+5410000000123:14+5410000000456:14+260514:1430+CTRL097001'
UNH+1+DOCADV:D:97A:UN'
BGM+700+DOCADV-2026-0099+9'
RFF+ON:ORDER789'
BUS++17'
INP+27'
FCA+1'
DTM+137:20260514:102'
NAD+MS+5410000000123::9'
NAD+MR+5410000000456::9'
DOC+380+INV-2026-7811'
UNT+11+1'
UNZ+1+CTRL097001' Common errors
- Misaligned UNH tokens — The
UNH+...+DOCADV:D:97A: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.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.
Related messages
Other versions of this message available on ediverse.io: DOCADV D.96A, DOCADV D.01B, DOCADV D.10A, DOCADV D.16B, DOCADV D.21B, DOCADV D.24A, DOCADV D.99B, DOCADV D.00B, DOCADV D.02B, DOCADV D.05A, DOCADV D.08A, DOCADV D.13B, DOCADV D.18B, DOCADV D.20B.
X12 functional equivalent: X12 824.