---
id: object/codeunit/10601-no
type: object
title: Codeunit 10601 "DocumentTools" (NO)
summary: Codeunit 10601 "DocumentTools" (NO) in the NO country layer (Microsoft.Utilities). 10 public procedures, 1 events, 3 event subscribers. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - codeunit
  - no 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: 1fe02a9ad0125c519f100a77dd6f893ff6f52ca4022c6f30f838dd294f57a0e6
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/NO/BaseApp/Local/Utilities/DocumentTools.Codeunit.al
    title: src/Layers/NO/BaseApp/Local/Utilities/DocumentTools.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations:
    - localization/no
  videos: []
  posts: []
  guidelines: []
object_type: codeunit
object_id: 10601
name: DocumentTools
namespace: Microsoft.Utilities
app: Base Application
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: "NO"
counts:
  fields: 0
  procedures: 14
  events: 1
  subscribers: 3
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
---

# Codeunit 10601 "DocumentTools" (NO)

> Codeunit 10601 "DocumentTools" (NO) in the NO country layer (Microsoft.Utilities). 10 public procedures, 1 events, 3 event subscribers. Introduced in BC29, still in BC30.

NO country layer · Microsoft.Utilities · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/NO/BaseApp/Local/Utilities/DocumentTools.Codeunit.al) · facts from BC29

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

## Events published

- `OnBeforeIsNorgeSEPACT(GenJournalLine: Record "Gen. Journal Line"; var Result: Boolean; var IsHandled: Boolean)` (integration)

## Event subscriptions

- OnDeleteGenJnlLine subscribes to Table "Gen. Journal Line" OnAfterDeleteEvent
- SuggestVendorPaymentUpdateRemittance subscribes to Report "Suggest Vendor Payments" OnBeforeUpdateGnlJnlLineDimensionsFromVendorPaymentBuffer
- UpdatePaymentExportDataOnMappingGenJnl subscribes to Codeunit "Exp. Pre-Mapping Gen. Jnl." OnBeforeInsertPaymentExoprtData

## Procedures

- `SetupGiro(PrintGiro: Boolean; DocumentType: Integer; DocumentNo: Code[20]; CustomerNo: Code[20]; GiroAmount: Decimal; GiroCurrencyCode: Code[10]; var GiroAmountKr: Text[20]; var GiroAmountkre: Text[2]; var CheckDigit: Text[1]; var GiroKID: Text[25]; var KIDError: Boolean)`
- `GenerateGiroKID(DocumentType: Integer; DocumentNo: Code[20]; CustomerNo: Code[20]; var GiroKID: Text[25]; var KIDError: Boolean)`
- `KIDTextOK(KIDText: Text[30]; MaxLength: Integer; var KIDError: Boolean): Boolean`
- `Modulus10(KIDText: Text[25]): Text[1]`
- `TestKIDSetup(SRSetup: Record "Sales & Receivables Setup")`
- `GetEInvoiceExportPaymentID(EInvoiceExportHeader: Record "E-Invoice Export Header"): Code[30]` (obsolete 29.0: The procedure will be removed in a future release.)
- `GetEInvoicePEPPOLPaymentID(SalesHeader: Record "Sales Header"): Code[30]`
- `GetEHFDocumentPaymentID(SalesHeader: Record "Sales Header"; DocumentType: Integer): Code[30]`
- `GetKundeID(var KundeTxt: Text; var KundeID: Text[25]; DocumentType: Integer; DocumentNo: Code[20]; CustomerNo: Code[20])`
- `IsNorgeSEPACT(GenJournalLine: Record "Gen. Journal Line"): Boolean`

## Triggers

OnRun

## Across versions

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

## Deprecations

- procedure GetEInvoiceExportPaymentID: Pending 29.0 (#if not CLEAN29), "The procedure will be removed in a future release."

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: "DocumentTools")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.

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