---
id: object/codeunit/6152
type: object
title: Codeunit 6152 "E-Doc. Data Exchange Impl."
summary: Codeunit 6152 "E-Doc. Data Exchange Impl." in EDocument (Microsoft.eServices.EDocument.IO.Peppol). 8 public procedures, 2 events, 1 event subscribers. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - codeunit
  - edocument
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: 7d26a52bbccca40ba7b55fdbe7c2337fa8066a5c2dec150893eecd4a5f8fcbdc
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/EDocument/app/src/DataExchange/EDocDataExchangeImpl.Codeunit.al
    title: src/Apps/W1/EDocument/app/src/DataExchange/EDocDataExchangeImpl.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes:
    - change/bcapps/9014
object_type: codeunit
object_id: 6152
name: E-Doc. Data Exchange Impl.
namespace: Microsoft.eServices.EDocument.IO.Peppol
app: EDocument
extends: null
first_version: "29"
last_version: "30"
present_in:
  - "29"
  - "30"
changed_in: []
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 23
  events: 2
  subscribers: 1
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 2
  calls: 0
  called_by: 0
  implements: 0
---

# Codeunit 6152 "E-Doc. Data Exchange Impl."

> Codeunit 6152 "E-Doc. Data Exchange Impl." in EDocument (Microsoft.eServices.EDocument.IO.Peppol). 8 public procedures, 2 events, 1 event subscribers. Introduced in BC29, still in BC30.

EDocument · Microsoft.eServices.EDocument.IO.Peppol · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/EDocument/app/src/DataExchange/EDocDataExchangeImpl.Codeunit.al) · facts from BC29

## Events published

- `OnAfterDataExchangeInsert(var DataExch: Record "Data Exch."; EDocumentFormat: Record "E-Document Service"; var EDocument: Record "E-Document"; var SourceDocumentHeader: RecordRef; var SourceDocumentLines: RecordRef)` (integration)
  - subscribers: [Codeunit 6162 "E-Doc. DED PEPPOL Subscribers"](../codeunit/6162.md) OnAfterDataExchangeInsert
- `OnBeforeDataExchangeExport(var DataExch: Record "Data Exch."; EDocumentFormat: Record "E-Document Service"; var EDocument: Record "E-Document"; var SourceDocumentHeader: RecordRef; var SourceDocumentLines: RecordRef)` (integration)
  - subscribers: [Codeunit 6162 "E-Doc. DED PEPPOL Subscribers"](../codeunit/6162.md) OnBeforeDataExchangeExport

## Event subscriptions

- OnBeforeCheckRecRefCount subscribes to Codeunit "Export Mapping" OnBeforeCheckRecRefCount

## Procedures

- `Check(var SourceDocumentHeader: RecordRef; EDocumentService: Record "E-Document Service"; EDocumentProcessingPhase: Enum "E-Document Processing Phase")`
- `Create(EDocumentFormat: Record "E-Document Service"; var EDocument: Record "E-Document"; var SourceDocumentHeader: RecordRef; var SourceDocumentLines: RecordRef; var TempBlob: Codeunit "Temp Blob")`
- `CreateBatch(EDocService: Record "E-Document Service"; var EDocument: 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")`
- `ExtractHeaderFields(var xmlDoc: XmlDocument; var EDocument: Record "E-Document")`
- `AddFieldToFieldBuffer(var TempFieldBuffer: Record "Field Buffer" temporary; FieldID: Integer)`
- `GetDataExchangePath(EDocument: Record "E-Document"; FieldNumber: Integer): Text`

Plus 12 local procedures.

## Recent changes

- 2026-07-14 [#9014 [E-Document] Remove Access = Internal from E-Doc. Data Exchange Impl. codeunit](../../changes/bcapps/9014.md) (main, BC30, feature)

## 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-Doc. Data Exchange Impl.")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
