---
id: object/codeunit/13920-de
type: object
title: Codeunit 13920 "ZUGFeRD Format" (DE)
summary: Codeunit 13920 "ZUGFeRD Format" (DE) in the DE country layer (Microsoft.eServices.EDocument.Formats). 5 public procedures, 3 events, 3 event subscribers. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - codeunit
  - de layer
versions:
  introduced: "29"
  last_changed: null
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-10-11T00:31:51.816Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: d9ae8da4c1bc96ad03dd72d34c381b1dac6d2e8e644dd4541d6d6cf97e6b6ea8
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/DE/EDocumentDE/app/src/ZUGFeRD/ZUGFeRDFormat.Codeunit.al
    title: src/Apps/DE/EDocumentDE/app/src/ZUGFeRD/ZUGFeRDFormat.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations:
    - localization/de
  videos: []
  posts: []
  guidelines: []
  changes:
    - change/bcapps/8429
    - change/bcapps/9642
    - change/bcapps/9646
    - change/bcapps/9792
object_type: codeunit
object_id: 13920
name: ZUGFeRD Format
namespace: Microsoft.eServices.EDocument.Formats
app: EDocumentDE
extends: null
first_version: "29"
last_version: "30"
present_in:
  - "29"
  - "30"
changed_in: []
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
country: DE
counts:
  fields: 0
  procedures: 14
  events: 3
  subscribers: 3
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
---

# Codeunit 13920 "ZUGFeRD Format" (DE)

> Codeunit 13920 "ZUGFeRD Format" (DE) in the DE country layer (Microsoft.eServices.EDocument.Formats). 5 public procedures, 3 events, 3 event subscribers. Introduced in BC29, still in BC30.

DE country layer · Microsoft.eServices.EDocument.Formats · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/DE/EDocumentDE/app/src/ZUGFeRD/ZUGFeRDFormat.Codeunit.al) · facts from BC29

An object of the [DE localization](../../localizations/de.md), not part of W1.

## Events published

- `OnBuyerReferenceOnElseCase(var SourceDocumentHeader: RecordRef; EDocumentService: Record "E-Document Service")` (integration, obsolete 29.0)
- `OnBeforeCheck(var SourceDocumentHeader: RecordRef; EDocumentService: Record "E-Document Service"; EDocumentProcessingPhase: Enum Microsoft.eServices.EDocument."E-Document Processing Phase")` (integration)
- `OnAfterCheck(var SourceDocumentHeader: RecordRef; EDocumentService: Record "E-Document Service"; EDocumentProcessingPhase: Enum "E-Document Processing Phase")` (integration)

## Event subscriptions

- OnAfterValidateDocumentFormat subscribes to Table "E-Document Service" OnAfterValidateEvent (Document Format)
- HandleOnBeforeExportDataStorage subscribes to Table "E-Document Log" OnBeforeExportDataStorage
- HandleOnAfterGetDefaultFileExtension subscribes to Table "E-Document Service" OnAfterGetDefaultFileExtension

## Procedures

- `Check(var SourceDocumentHeader: RecordRef; EDocumentService: Record "E-Document Service"; EDocumentProcessingPhase: Enum "E-Document Processing Phase")`
- `Create(EDocumentService: Record "E-Document Service"; var EDocument: Record "E-Document"; var SourceDocumentHeader: RecordRef; var SourceDocumentLines: RecordRef; var TempBlob: Codeunit "Temp Blob")`
- `CreateBatch(EDocumentService: Record "E-Document Service"; var EDocuments: Record "E-Document"; var SourceDocumentHeaders: RecordRef; var SourceDocumentsLines: RecordRef; var TempBlob: Codeunit "Temp Blob")`
- `GetBasicInfoFromReceivedDocument(var EDocument: Record "E-Document"; var TempBlob: Codeunit "Temp Blob")`
- `GetCompleteInfoFromReceivedDocument(var EDocument: Record "E-Document"; var CreatedDocumentHeader: RecordRef; var CreatedDocumentLines: RecordRef; var TempBlob: Codeunit "Temp Blob")`

Plus 3 local procedures.

## Recent changes

- 2026-10-02 [#8429 E-Document DE: map Payment Method to PEPPOL payment means codes, add SEPA Direct Debit export support](../../changes/bcapps/8429.md) (main, BC30, feature)
- 2026-09-29 [#9642 [Bug]: E-Documents for Germany - FindEDocumentService always selects last matching service, ignoring which service triggered the export](../../changes/bcapps/9642.md) (main, BC30, fix)
- 2026-09-22 [#9646 [Bug]: [DE] XRechnung/ZUGFeRD — no posting-time error when SELLER CONTACT (BG-6) source data is incomplete, producing non-compliant e-invoices](../../changes/bcapps/9646.md) (main, BC30, fix)
- 2026-07-29 [#9792 Migrate ZUGFeRD, PEPPOL BIS 3.0 DE, Factur-X FR and Peppol BIS 3.0 FR to the V2 draft import pipeline](../../changes/bcapps/9792.md) (main, BC30, feature)

## Across versions

- Present in: BC29-30
- Changed (declaration) in: none

## Deprecations

- procedure OnBuyerReferenceOnElseCase: Pending 29.0 (#if not CLEAN29), "Buyer Reference is resolved automatically via priority chain: Document field > Customer E-Invoice Routing No. > Your Reference."

Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).

## Ask your agent

Procedure bodies are not stored here (D10). For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: `bcatlas_resolve_node(object_type: "codeunit", object_name: "ZUGFeRD Format")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.

A DE country object, not part of W1: the default corpus does not have it; `bcatlas_list_countries` shows which countries the atlas has.
