---
id: object/codeunit/13618-dk
type: object
title: Codeunit 13618 "Elec. VAT Decl. Xml" (DK)
summary: Codeunit 13618 "Elec. VAT Decl. Xml" (DK) in the DK country layer (Microsoft.Finance.VAT.Reporting). 22 public procedures. 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: 24085fdc232999edb0325c5e717682b2dbda1ab4ee61276032ad77ffb93f780d
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/DK/ElectronicVATDeclarationDK/app/src/Engine/XML/ElecVATDeclXml.Codeunit.al
    title: src/Apps/DK/ElectronicVATDeclarationDK/app/src/Engine/XML/ElecVATDeclXml.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/9543
object_type: codeunit
object_id: 13618
name: Elec. VAT Decl. Xml
namespace: Microsoft.Finance.VAT.Reporting
app: ElectronicVATDeclarationDK
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: 29
  events: 0
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
---

# Codeunit 13618 "Elec. VAT Decl. Xml" (DK)

> Codeunit 13618 "Elec. VAT Decl. Xml" (DK) in the DK country layer (Microsoft.Finance.VAT.Reporting). 22 public procedures. Introduced in BC29, still in BC30.

DK country layer · Microsoft.Finance.VAT.Reporting · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/DK/ElectronicVATDeclarationDK/app/src/Engine/XML/ElecVATDeclXml.Codeunit.al) · facts from BC29

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

## Properties

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

## Procedures

- `PrepareRequest(ElecVATDeclRequestType: Enum "Elec. VAT Decl. Request Type"; ElecVATDeclParameters: Record "Elec. VAT Decl. Parameters"; var SignedDocument: XmlDocument; var TransactionID: Code[100])`
- `XmlDocumentOuterXmlToStream(DataXmlDocument: XmlDocument; var DataOutStream: OutStream)`
- `GetDeeplinkNodeFromResponseText(ResponseText: Text): XmlNode`
- `GetResponseTransactionNodeFromResponseText(ResponseText: Text): XmlNode`
- `GetVATReturnStatusNodeFromResponseText(ResponseText: Text): XmlNode`
- `TryGetDueDateNodesFromResponseText(ResponseText: Text): XmlNodeList`
- `TryGetPeriodNodesFromResponseText(ResponseText: Text): XmlNodeList`
- `TryGetDueDateNodeFromPeriodNode(PeriodNode: XmlNode; var DueDateNode: XmlNode): Boolean`
- `TryGetFrequencyNodeFromPeriodNode(PeriodNode: XmlNode; var FrequencyNode: XmlNode): Boolean`
- `TryGetErrorNodeFromResponseText(ResponseText: Text; var ErrorNode: XmlNode): Boolean`
- `GetSoapNamespace(): Text`
- `GetWsseNamespace(): Text`
- `GetX509TokenType(): Text`
- `GetSkatNamespace1(): Text`
- `GetSkatNamespace2(): Text`
- `GetSkatNamespace3(): Text`
- `GetSkatNamespace4(): Text`
- `GetTimeStamp(AddedHours: Integer): Text`
- `GetTransactionID(): Code[100]`
- `GetCompanyID(): Text`
- `Date_AsXMLText(DateToConvert: Date): Text`
- `GetBodyIdTok(): Text`

Plus 7 local procedures.

## Recent changes

- 2026-08-02 [#9543 Support VAT return reporting frequencies in Denmark](../../changes/bcapps/9543.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: "Elec. VAT Decl. Xml")`, 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.
