---
id: object/codeunit/13698
type: object
title: Codeunit 13698 "Regnskab Basis Export"
summary: Codeunit 13698 "Regnskab Basis Export" in SAFTModificationDK (Microsoft.Finance.AuditFileExport). 3 public procedures, 1 events. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - codeunit
  - saftmodificationdk
versions:
  introduced: "29"
  last_changed: null
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-12-06T00:48:06.827Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: 4db92f37ada0269519c188137c8ad8216ec8397b1f7fe646556d488de39f5eaf
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/4e6a307ce8a2e8c5a28f8f0c4c2c7d561f4fe679/src/Apps/W1/SAFTModificationDK/app/src/RBAccountingFile/RegnskabBasisExport.Codeunit.al
    title: src/Apps/W1/SAFTModificationDK/app/src/RBAccountingFile/RegnskabBasisExport.Codeunit.al (releases/29.x)
    date: null
    commit: 4e6a307ce8a2e8c5a28f8f0c4c2c7d561f4fe679
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes:
    - change/bcapps/11849
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/LocalFunctionality/Denmark/how-to-use-regnskabbasis-export
      title: Export accounting data to Regnskab Basis in Denmark
      label: possibly related
      why: Regnskab Basis CSV export for Danish accounting data bookkeeping requirements.
      by: model
object_type: codeunit
object_id: 13698
name: Regnskab Basis Export
namespace: Microsoft.Finance.AuditFileExport
app: SAFTModificationDK
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: 14
  events: 1
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 4
  called_by: 0
  implements: 0
---

# Codeunit 13698 "Regnskab Basis Export"

> Codeunit 13698 "Regnskab Basis Export" in SAFTModificationDK (Microsoft.Finance.AuditFileExport). 3 public procedures, 1 events. Introduced in BC29, still in BC30.

SAFTModificationDK · Microsoft.Finance.AuditFileExport · BC29-30 · [source at 4e6a307c](https://github.com/microsoft/BCApps/blob/4e6a307ce8a2e8c5a28f8f0c4c2c7d561f4fe679/src/Apps/W1/SAFTModificationDK/app/src/RBAccountingFile/RegnskabBasisExport.Codeunit.al) · facts from BC29

## Events published

- `OnGetAmountForDateRangeOnCaseElse(var GLAccount: Record "G/L Account"; FromDate: Date; ToDate: Date; CalcMethod: Enum "Analysis Amount Type"; var Result: Decimal)` (integration)

## Procedures

- `Initialize(NewStartingDate: Date; NewEndingDate: Date; NewGLAccountMappingHeader: Record "G/L Account Mapping Header"; NewCSVSeparator: Char; AmtCalcMethodIncomeStatement: Enum "Analysis Amount Type"; AmtCalcMethodBalanceSheet: Enum "Analysis Amount Type")`: Initializes the codeunit with the starting and ending dates, the G/L Account Mapping Header and the CSV separator.
- `InitializeDefault(NewGLAccountMappingHeader: Record "G/L Account Mapping Header")`: Simpler initialization method that uses the default CSV separator, default dates and default amount calculation methods.
- `GenerateFileToBlob(var TempBlob: Codeunit "Temp Blob"): Boolean`: Generates the Regnskab Basis Accounting file to a blob.

Plus 10 local procedures.

## Triggers

OnRun

## Calls

From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an `Object::"Name"` argument. Interface dispatch and calls through events are not counted, so the list is not complete.

- [Codeunit 4100 "Temp Blob"](../codeunit/4100.md) (2 calls: `WriteAccountingFileToBlob → CreateOutStream`, `WriteBlobToFileAndDownload → CreateInStream`)
- [Codeunit 10 "Type Helper"](../codeunit/10.md) (1 call: `ComposeLine → CRLFSeparator`)
- [Codeunit 5260 "Audit Mapping Helper"](../codeunit/5260.md) (1 call: `GenerateTotalAmounts → VerifyMappingIsDone`)
- [Codeunit 8703 "Feature Telemetry"](../codeunit/8703.md) (1 call: `WriteBlobToFileAndDownload → LogUsage`)

## Recent changes

- 2026-11-12 [#11849 [Master] - Slice 611452: [AT][IC][RegF] Enable Danish SAF-T to be used in Austria and Iceland](../../changes/bcapps/11849.md) (main, BC30, feature, renamed)

## Across versions

- Present in: BC29-30
- Changed (declaration) in: none

## Possibly related

No source states these links: they share an object, a model read them, or a person found the same subject.

- [Export accounting data to Regnskab Basis in Denmark](https://learn.microsoft.com/dynamics365/business-central/LocalFunctionality/Denmark/how-to-use-regnskabbasis-export) — possibly related: Regnskab Basis CSV export for Danish accounting data bookkeeping requirements. (model-linked)

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). The call sections above are our own, per object, from the BC29 call graph. 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: "Regnskab Basis Export")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
