---
id: object/codeunit/740
type: object
title: Codeunit 740 "VAT Report Mediator"
summary: Codeunit 740 "VAT Report Mediator" in Base Application (Microsoft.Finance.VAT.Reporting). 13 public procedures, 1 events. Present since at least BC23, still in BC30.
tier: official
language: en
tags:
  - codeunit
  - base application
versions:
  introduced: null
  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: 344fa0d9dddafbd1dd30a0fdaa21d0381aa8fe2b72902b2c46c8a67e7a1e6ccf
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Finance/VAT/Reporting/VATReportMediator.Codeunit.al
    title: src/Layers/W1/BaseApp/Finance/VAT/Reporting/VATReportMediator.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations:
    - localization/au
    - localization/de
    - localization/it
  videos: []
  posts: []
  guidelines: []
object_type: codeunit
object_id: 740
name: VAT Report Mediator
namespace: Microsoft.Finance.VAT.Reporting
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in: []
source_major: "29"
obsolete: null
countries:
  - au
  - de
  - it
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 16
  events: 1
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 2
  called_by: 1
  implements: 0
---

# Codeunit 740 "VAT Report Mediator"

> Codeunit 740 "VAT Report Mediator" in Base Application (Microsoft.Finance.VAT.Reporting). 13 public procedures, 1 events. Present since at least BC23, still in BC30.

Base Application · Microsoft.Finance.VAT.Reporting · BC23-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Finance/VAT/Reporting/VATReportMediator.Codeunit.al) · facts from BC29

## Events published

- `OnGetVATReportConfigurationOnAfterVATReportsConfigurationSetFilters(var VATReportsConfiguration: Record "VAT Reports Configuration"; VATReportHeader: Record "VAT Report Header")` (integration): Integration event raised after setting filters on VAT reports configuration. Allows customization of configuration filtering logic for specific scenarios.

## Procedures

- `GetLines(VATReportHeader: Record "VAT Report Header")`: Generates VAT statement lines for the report using configured suggest lines codeunit. Validates report is open and routes to appropriate line generation logic.
- `Generate(VATReportHeader: Record "VAT Report Header")`: Generates VAT report content using configured content codeunit. Creates formatted output for printing or electronic submission.
- `ShowGenerate(VATReportHeader: Record "VAT Report Header"): Boolean`: Determines if Generate action should be visible for the VAT report. Checks configuration for content codeunit without submission codeunit.
- `Export(VATReportHeader: Record "VAT Report Header")`: Exports VAT report using configured content and submission codeunits. Handles both content generation and electronic submission processes.
- `ShowExport(VATReportHeader: Record "VAT Report Header"): Boolean`: Determines if Export action should be visible for the VAT report. Checks configuration for submission codeunit availability.
- `ReceiveResponse(VATReportHeader: Record "VAT Report Header")`: Receives and processes responses from tax authority using configured response handler codeunit. Updates VAT report status based on submission response.
- `ShowReceiveResponse(VATReportHeader: Record "VAT Report Header"): Boolean`: Determines if Receive Response action should be visible for the VAT report. Checks report status and response handler configuration.
- `Release(VATReportHeader: Record "VAT Report Header")`: Releases VAT report from open to released status with validation. Delegates to VAT Report Release/Reopen codeunit for processing.
- `Reopen(VATReportHeader: Record "VAT Report Header")`: Reopens released VAT report back to open status for modifications. Delegates to VAT Report Release/Reopen codeunit for processing.
- `Print(VATReportHeader: Record "VAT Report Header")`: Prints VAT report based on current status with automatic release if needed. Routes to appropriate print method based on report status.
- `Submit(VATReportHeader: Record "VAT Report Header")`: Submits released VAT report to submitted status for tax authority processing. Delegates to VAT Report Release/Reopen codeunit for status management.
- `ShowSubmissionMessage(VATReportHeader: Record "VAT Report Header"): Boolean`: Determines if submission message should be displayed based on report status and attachments. Checks for existing submission attachments and configuration settings.
- `GetVATReportConfiguration(var VATReportsConfiguration: Record "VAT Reports Configuration"; VATReportHeader: Record "VAT Report Header")`: Retrieves VAT report configuration based on report type and version. Applies filters and finds matching configuration record for report processing.

Plus 2 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 741 "VAT Report Release/Reopen"](../codeunit/741.md) (4 calls: `PrintOpen → Release`, `Release → Release`, `Reopen → Reopen`, …)
- [Report 740 "VAT Report Print"](../report/740.md) (1 call: `PrintReleased → (object)`)

## Called by

- [Page 740 "VAT Report"](../page/740.md) (4 calls: `InitPageControllers → ShowExport`, `InitPageControllers → ShowGenerate`, `InitPageControllers → ShowReceiveResponse`, …)

## Across versions

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

## Countries that replace it

[AU](../../localizations/au.md), [DE](../../localizations/de.md), [IT](../../localizations/it.md)

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