---
id: object/codeunit/11346-be
type: object
title: Codeunit 11346 "IntrastatReportManagementBE" (BE)
summary: Codeunit 11346 "IntrastatReportManagementBE" (BE) in the BE country layer (Microsoft.Inventory.Intrastat). 3 public procedures, 2 events, 16 event subscribers. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - codeunit
  - be 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: 8bf6e340b6be0a67120126a6c62eac86ef838156ae88209dc3922d49ebf8f348
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/BE/IntrastatBE/app/src/IntrastatReportManagementBE.Codeunit.al
    title: src/Apps/BE/IntrastatBE/app/src/IntrastatReportManagementBE.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: 11346
name: IntrastatReportManagementBE
namespace: Microsoft.Inventory.Intrastat
app: IntrastatBE
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: BE
counts:
  fields: 0
  procedures: 24
  events: 2
  subscribers: 16
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
---

# Codeunit 11346 "IntrastatReportManagementBE" (BE)

> Codeunit 11346 "IntrastatReportManagementBE" (BE) in the BE country layer (Microsoft.Inventory.Intrastat). 3 public procedures, 2 events, 16 event subscribers. Introduced in BC29, still in BC30.

BE country layer · Microsoft.Inventory.Intrastat · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/BE/IntrastatBE/app/src/IntrastatReportManagementBE.Codeunit.al) · facts from BC29

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

## Properties

| Property | Value |
|---|---|
| Access | Internal |
| SingleInstance | true |

## Events published

- `OnBeforeGetPartnerIDForCountryBE(CountryRegionCode: Code[10]; VATRegistrationNo: Text[50]; IsPrivatePerson: Boolean; IsThirdPartyTrade: Boolean; var PartnerID: Text[50]; var IsHandled: Boolean)` (integration)
- `OnBeforeDefineFileNamesBE(var IntrastatReportHeader: Record "Intrastat Report Header"; var FileName: Text; var ReceptFileName: Text; var ShipmentFileName: Text; var ZipFileName: Text; var IsHandled: Boolean)` (integration)

## Event subscriptions

- OnBeforeInitSetup subscribes to Codeunit "IntrastatReportManagement" OnBeforeInitSetup
- OnBeforeInitCheckList subscribes to Codeunit "IntrastatReportManagement" OnBeforeInitCheckList
- OnBeforeGetCustomerPartnerIDFromItemEntry subscribes to Table "Intrastat Report Line" OnBeforeGetCustomerPartnerIDFromItemEntry
- OnBeforeGetVendorPartnerIDFromItemEntry subscribes to Table "Intrastat Report Line" OnBeforeGetVendorPartnerIDFromItemEntry
- OnBeforeGetCustomerPartnerIDFromJobEntry subscribes to Table "Intrastat Report Line" OnBeforeGetCustomerPartnerIDFromJobEntry
- OnBeforeGetVendorPartnerIDFromFAEntry subscribes to Table "Intrastat Report Line" OnBeforeGetVendorPartnerIDFromFAEntry
- OnAfterGetCountryOfOriginCode subscribes to Table "Intrastat Report Line" OnAfterGetCountryOfOriginCode
- OnCalculateTotalsOnBeforeSumTotals subscribes to Report "Intrastat Report Get Lines" OnCalculateTotalsOnBeforeSumTotals
- OnBeforeDefineFileNames subscribes to Codeunit "IntrastatReportManagement" OnBeforeDefineFileNames
- OnBeforeExportIntrastatHeader subscribes to Codeunit "IntrastatReportManagement" OnBeforeExportIntrastatHeader
- OnBeforeCreateXMLNodeWithoutAttributes subscribes to Codeunit "Export Generic XML" OnBeforeCreateXMLNodeWithoutAttributes
- OnBeforeCreateXMLAttribute subscribes to Codeunit "Export Generic XML" OnBeforeCreateXMLAttribute
- OnBeforeCreateXMLNodeWithAttributes subscribes to Codeunit "Export Generic XML" OnBeforeCreateXMLNodeWithAttributes
- OnBeforeExportDetails subscribes to Codeunit "Export Generic XML" OnBeforeExportDetails
- OnBeforeFinishAction subscribes to Page "Intrastat Report Setup Wizard" OnBeforeFinishAction
- OnBeforeCreateDefaultDataExchangeDef subscribes to Codeunit "IntrastatReportManagement" OnBeforeCreateDefaultDataExchangeDef

## Procedures

- `SetDataExchExportParameters(StatisticPeriod2: Code[10]; Nihil2: Boolean; ThirdPartyVatRegNo2: Text[30])`
- `GetDataExchExportParameters(var StatisticPeriod2: Code[10]; var Nihil2: Boolean; var ThirdPartyVatRegNo2: Text[30])`
- `CreateDefaultDataExchangeDef()`

Plus 3 local procedures.

## 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: "IntrastatReportManagementBE")`, 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.
