---
id: object/codeunit/11039-de
type: object
title: Codeunit 11039 "E-Document XRechnung Handler" (DE)
summary: Codeunit 11039 "E-Document XRechnung Handler" (DE) in the DE country layer (Microsoft.eServices.EDocument.Formats). 3 public procedures. 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: ad7e899e3ce4d35057791abbd82cbff792f9f8da29643f5958fd8d3a007d77ea
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/DE/EDocumentDE/app/src/XRechnung/EDocumentXRechnungHandler.Codeunit.al
    title: src/Apps/DE/EDocumentDE/app/src/XRechnung/EDocumentXRechnungHandler.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/9792
    - change/bcapps/9784
    - change/bcapps/9690
object_type: codeunit
object_id: 11039
name: E-Document XRechnung Handler
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: 11
  events: 0
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
---

# Codeunit 11039 "E-Document XRechnung Handler" (DE)

> Codeunit 11039 "E-Document XRechnung Handler" (DE) in the DE country layer (Microsoft.eServices.EDocument.Formats). 3 public procedures. 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/XRechnung/EDocumentXRechnungHandler.Codeunit.al) · facts from BC29

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

## Properties

| Property | Value |
|---|---|
| Access | Internal |

## Procedures

- `ReadIntoDraft(EDocument: Record "E-Document"; TempBlob: Codeunit "Temp Blob"): Enum "E-Doc. Process Draft"` (internal): Reads an XRechnung format XML document and converts it into a draft purchase document. This procedure processes both Invoice and CreditNote document types and populates the E-Document Purchase Header with the extracted data.
- `View(EDocument: Record "E-Document"; TempBlob: Codeunit "Temp Blob")` (internal): Displays a readable view of the processed E-Document purchase information. This procedure opens a page showing the purchase header and lines in a user-friendly format for review.
- `ResetDraft(EDocument: Record "E-Document")`

Plus 8 local procedures.

## Recent changes

- 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)
- 2026-07-29 [#9784 [E-Document Formats] Fix defects in V2 draft migration for XRechnung, PINT A-NZ and Factura-E](../../changes/bcapps/9784.md) (main, BC30, fix)
- 2026-07-28 [#9690 Add XRechnung structured format reader for inbound e-documents](../../changes/bcapps/9690.md) (main, BC30, feature, added)

## Across versions

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

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: "E-Document XRechnung Handler")`, 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.
