---
id: object/codeunit/13636-dk
type: object
title: Codeunit 13636 "OIOUBL-Export Sales Invoice" (DK)
summary: Codeunit 13636 "OIOUBL-Export Sales Invoice" (DK) in the DK country layer (Microsoft.EServices.EDocument). 5 public procedures, 8 events. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - codeunit
  - dk 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: b33a62c871054295d78edee256d0a5dc6db88c34cb1f35c2f7cdb8f0ec349172
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/DK/OIOUBL/app/src/SalesInvoice/OIOUBLExportSalesInvoice.Codeunit.al
    title: src/Apps/DK/OIOUBL/app/src/SalesInvoice/OIOUBLExportSalesInvoice.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations:
    - localization/dk
  videos: []
  posts: []
  guidelines: []
  changes:
    - change/bcapps/9749
object_type: codeunit
object_id: 13636
name: OIOUBL-Export Sales Invoice
namespace: Microsoft.EServices.EDocument
app: OIOUBL
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: DK
counts:
  fields: 0
  procedures: 16
  events: 8
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
---

# Codeunit 13636 "OIOUBL-Export Sales Invoice" (DK)

> Codeunit 13636 "OIOUBL-Export Sales Invoice" (DK) in the DK country layer (Microsoft.EServices.EDocument). 5 public procedures, 8 events. Introduced in BC29, still in BC30.

DK country layer · Microsoft.EServices.EDocument · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/DK/OIOUBL/app/src/SalesInvoice/OIOUBLExportSalesInvoice.Codeunit.al) · facts from BC29

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

## Properties

| Property | Value |
|---|---|
| TableNo | Record Export Buffer |
| Permissions | tabledata "Sales Invoice Header" = rm |

## Events published

- `OnCreateXMLOnBeforeXmlDocumentWriteToFileStream(var XMLdocOut: XmlDocument; SalesInvoiceHeader: Record "Sales Invoice Header"; DocNameSpace: Text[250]; DocNameSpace2: Text[250])` (integration)
- `OnCreateXMLOnAfterInsertAccountingCustomerParty(var XMLCurrNode: XmlElement; SalesInvoiceHeader: Record "Sales Invoice Header")` (integration)
- `OnCreateXMLOnBeforeInsertPaymentMeans(var XMLCurrNode: XmlElement; SalesInvoiceHeader: Record "Sales Invoice Header"; var IsHandled: Boolean)` (integration)
- `OnCreateXMLOnBeforeInsertAccountingSupplierParty(var XMLCurrNode: XmlElement; SalesInvoiceHeader: Record "Sales Invoice Header")` (integration)
- `OnCreateXMLOnAfterInsertInvoiceTypeCode(var XMLCurrNode: XmlElement; SalesInvoiceHeader: Record "Sales Invoice Header")` (integration)
- `OnCreateXMLOnAfterSalesInvLineSetFilters(var SalesInvoiceLine: Record "Sales Invoice Line"; SalesInvoiceHeader: Record "Sales Invoice Header")` (integration)
- `OnExportXMLOnAfterExportXMLFile(var SalesInvoiceHeader: Record "Sales Invoice Header"; var TempBlob: Codeunit "Temp Blob"; FileName: Text)` (integration)
- `OnExportXMLOnAfterInsertInvoiceLine(var InvoiceLineElement: XmlElement; SalesInvoiceHeader: Record "Sales Invoice Header"; SalesInvoiceLine: Record "Sales Invoice Line"; CurrencyCode: Code[10])` (integration)

## Procedures

- `ExportXML(SalesInvoiceHeader: Record "Sales Invoice Header")`
- `ReadCompanyInfo()`
- `ReadGLSetup()`
- `UpdateTaxAmtAndTaxableAmt(Amount: Decimal; AmountIncludingVAT: Decimal; var TaxableAmountParam: Decimal; var TaxAmountParam: Decimal)`
- `ExcludeVAT(var SalesInvLine: Record "Sales Invoice Line"; PricesInclVAT: Boolean)`

Plus 3 local procedures.

## Triggers

OnRun

## Recent changes

- 2026-08-10 [#9749 OIOUBL fixes after schematron update](../../changes/bcapps/9749.md) (main, BC30, fix)

## 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: "OIOUBL-Export Sales Invoice")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.

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