#13208 [E-Documents] XRechnung: Events to override buyer, delivery and order reference values
New integration events allow partners to override buyer, delivery, and order reference values in XRechnung export before XML elements are created, eliminating the need to patch finished XML documents.
- 3files
- 1AL files
- 1objects
Pull request · merged into main (BC30) on 2026-12-04 by DanielGoehler (community contribution) · 3 files (+520 -28), 1 AL · feature · tier official · reviewed (checked by Opus)
What changed
- Adds five kinds of integration event, each for sales invoices and sales credit memos, to codeunit 13916 Export XRechnung Document
- Buyer, delivery and order reference values are passed by var before the elements are created
- Other events pass the delivery element or root element so subscribers can add elements such as DeliveryParty or DespatchDocumentReference
- Service documents reach the events through the converted sales header; without subscribers the exported XML is unchanged
- Four new tests cover overridden values and added elements
AL objects touched
- Codeunit 13916 “Export XRechnung Document”, EDocumentDE (DE layer): modified
Context
- Fixes: #13175 [DE][Codeunit][13916][Export XRechnung Document] Events to override buyer, delivery and order reference values before the XML elements are created (closed)
- Work items: AB#656549
- Labels: ADO: Sync, From Fork, Team: Integrations
- Systems: integration
Possibly related
No source states these links: they share an object, a model read them, or a person found the same subject.
- Electronic invoicing in Germany — possibly related: XRechnung format export events for overriding buyer, delivery, and order reference values (model-linked)
Source: metadata of a merged pull request in microsoft/BCApps (bcapps): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).