---
title: "Codeunit 11002 Intrastat - Export Mgt. DACH"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/11002-intrastat-export-mgt-dach/
type: codeunit
id: 11002
name: "Intrastat - Export Mgt. DACH"
app: "Base Application"
versions: "17-24"
build: 24.5.23489.36097
countries: "DE"
obsolete: "Pending 22.0"
checked: 2026-11-20
changed: 2026-09-28
subject: "Microsoft Dynamics 365 Business Central"
license: "Metadata from Microsoft's symbol packages. AL source MIT, Copyright (c) Microsoft Corporation. Selection and wording © 2026 JOP-AL. https://jonas-paprotka.de/licenses/"
---

# Codeunit 11002 Intrastat - Export Mgt. DACH

JOP-AL, https://jonas-paprotka.de/ref/codeunit/11002-intrastat-export-mgt-dach/

| | |
| --- | --- |
| App | Base Application |
| Versions | 17-24 |
| Minors | DE 17.0-24.5, [every minor](https://jonas-paprotka.de/ref/codeunit/11002-intrastat-export-mgt-dach/editions.json) |
| Obsolete | Pending, tag 22.0, obsolete since 23: Intrastat related functionalities are moving to Intrastat extension. |
| Source file | Intrastat/IntrastatExportMgtDACH.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| Initialize | (CreationDateTime: DateTime) | - | public | 17-24 | - | - |
| SaveAndCloseFile | (ASCIIFileBodyText: Text; var XMLDocument: DotNet XmlDocument; var ServerFileName: Text; FormatType: Option ASCII,XML) | - | public | 17-22 | - | - |
| DownloadFile | (ZipFileName: Text; ServerFileReceipts: Text; ServerFileShipments: Text; FormatType: Option ASCII,XML; StatisticsPeriod: Text) | - | public | 17-22 | - | - |
| WriteASCII | (var ASCIIFileBodyText: Text; IntrastatJnlLine: Record "Intrastat Jnl. Line"; CurrencyIdentifier: Code[10]; LinePrefix: Text; DummyValue1: Text; DummyValue2: Text; DummyValue3: Text; DummyValue4: Text) | - | public | 17-22 | - | - |
| WriteXMLHeader | (var XMLDocument: DotNet XmlDocument; var XMLNode: DotNet XmlNode; NewTestIndicator: Boolean; NewStartDate: Date) | - | public | 17-24 | - | - |
| WriteXMLDeclaration | (RootXMLNode: DotNet XmlNode; var DeclarationXMLNode: DotNet XmlNode; ExportType: Option; CurrencyCode: Code[10]) | - | public | 17-24 | - | - |
| WriteXMLDeclarationTotals | (DeclarationXMLNode: DotNet XmlNode; IntrastatJnlLine: Record "Intrastat Jnl. Line") | - | public | 17-24 | - | - |
| WriteXMLItem | (IntrastatJnlLine: Record "Intrastat Jnl. Line"; XMLNode: DotNet XmlNode) | - | public | 17-24 | - | - |
| GetOriginCountryCode | (CountryRegionCode: Code[10]) | Code[10] | public | 17-24 | - | - |
| DownloadFile | (ZipFileName: Text; ServerFileShipments: Text; StatisticsPeriod: Text) | - | public | 19-22 | Pending 20.0 | Replaced by codeunit 352 Intrastat File Writer |
| GetXMLFileName | () | Text | public | 19-24 | - | - |

## Source

Symbols: Microsoft.BaseApplication.DE.symbols.437dbf0e-84ff-417a-965d-ed2bb9650972, https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json, highest build per major on 2026-11-20.

JOP-AL, 2026-11-20.
