---
id: object/codeunit/2000040-be
type: object
title: Codeunit 2000040 "Coda Import Management" (BE)
summary: Codeunit 2000040 "Coda Import Management" (BE) in the BE country layer (Microsoft.Bank.CODA). 12 public procedures, 5 events. Introduced in BC28, still in BC30.
tier: official
language: en
tags:
  - codeunit
  - be layer
versions:
  introduced: "28"
  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: c37aafdd1de44c8e19fa356fcb569e6e0bcffc9fc9d80ffb7497a869a9268faf
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/BE/BaseApp/Local/BankMgt/Statement/CodaImportManagement.Codeunit.al
    title: src/Layers/BE/BaseApp/Local/BankMgt/Statement/CodaImportManagement.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations:
    - localization/be
  videos: []
  posts: []
  guidelines: []
object_type: codeunit
object_id: 2000040
name: Coda Import Management
namespace: Microsoft.Bank.CODA
app: Base Application
extends: null
first_version: "28"
last_version: "30"
present_in:
  - "28"
  - "29"
  - "30"
changed_in: []
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
country: BE
counts:
  fields: 0
  procedures: 23
  events: 5
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
---

# Codeunit 2000040 "Coda Import Management" (BE)

> Codeunit 2000040 "Coda Import Management" (BE) in the BE country layer (Microsoft.Bank.CODA). 12 public procedures, 5 events. Introduced in BC28, still in BC30.

BE country layer · Microsoft.Bank.CODA · BC28-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/BE/BaseApp/Local/BankMgt/Statement/CodaImportManagement.Codeunit.al) · facts from BC29

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

## Properties

| Property | Value |
|---|---|
| TableNo | CODA Statement Source Line |

## Events published

- `OnAfterInitCodaImport(var BankAcc: record "Bank Account"; var EnterpriseNo: Text[11]; var LineCounter: array[2] of Integer; var TotalDebit: array[2] of Decimal; var TotalCredit: array[2] of Decimal)` (integration)
- `OnBeforeCheckCodaHeader(var CodaStatementSourceLine: Record "CODA Statement Source Line"; var Result: Boolean; var IsHandled: Boolean)` (integration)
- `OnAfterParseHeaderRecord(var CODAStatementSourceLine: Record "CODA Statement Source Line")` (integration)
- `OnAfterCheckOldBalance(var CodaStatementSourceLine: Record "CODA Statement Source Line")` (integration)
- `OnBeforeCheckOldBalance(var CODAStatementSourceLine: Record "CODA Statement Source Line"; var OK: Boolean; var IsHandled: Boolean)` (integration)

## Procedures

- `InitCodaImport(BankAccNo: Code[20])`
- `CheckCodaHeader(var CodedBankStmtSrcLine: Record "CODA Statement Source Line"): Boolean`
- `CheckOldBalance(var CodedBankStmtSrcLine: Record "CODA Statement Source Line"): Boolean`
- `CheckNewBalance(var CodedBankStmtSrcLine: Record "CODA Statement Source Line"; AccountType2: Text[1]): Boolean`
- `CheckCodaTrailer(var CodedBankStmtSrcLine: Record "CODA Statement Source Line"): Boolean`
- `CheckCodaRecord(var CodedBankStmtSrcLine: Record "CODA Statement Source Line"): Boolean`
- `UpdateStatementNo(var CodedBankStmtSrcLine: Record "CODA Statement Source Line"; xStatementNo: Code[20]; StatementNo: Code[20]): Code[20]`
- `UpdateTotalAmount()`
- `UpdateLineCounter(var CodedBankStmtSrcLine: Record "CODA Statement Source Line")`
- `Success()`
- `SkipLine()`
- `DDMMYY2Date(DDMMYY: Text; AllowInvalidDate: Boolean): Date`

Plus 6 local procedures.

## Triggers

OnRun

## Across versions

- Present in: BC28-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: "Coda Import Management")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.

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