---
title: "Codeunit 4812 Intrastat Report Doc. Compl., extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/4812-intrastat-report-doc-compl/points/
object: https://jonas-paprotka.de/ref/codeunit/4812-intrastat-report-doc-compl/
app: "Intrastat Core"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/4812-intrastat-report-doc-compl/source/
checked: 2026-11-20
changed: 2026-10-05
subject: "Microsoft Dynamics 365 Business Central"
license: "Metadata from Microsoft's symbol packages. AL source MIT, Copyright (c) Microsoft Corporation. Selection and wording © 2026 JOP-AL. https://jonas-paprotka.de/licenses/"
---

# Codeunit 4812 Intrastat Report Doc. Compl., extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/4812-intrastat-report-doc-compl/points/

10 procedures and triggers with a step in src/Apps/W1/Intrastat/app/src/Processing/IntrastatReportDocCompl.Codeunit.al, in source order, read from the text, not from a run.

## DefaultSalesDocuments

[Line 24](https://jonas-paprotka.de/ref/codeunit/4812-intrastat-report-doc-compl/source/#L24), local.

- [42](https://jonas-paprotka.de/ref/codeunit/4812-intrastat-report-doc-compl/source/#L42) raises `OnAfterDefaultSalesDocuments`

## DefaultPurchaseDocuments

[Line 46](https://jonas-paprotka.de/ref/codeunit/4812-intrastat-report-doc-compl/source/#L46), local.

- [64](https://jonas-paprotka.de/ref/codeunit/4812-intrastat-report-doc-compl/source/#L64) raises `OnAfterDefaultPurchaseDocuments`

## DefaultServiceDocuments

[Line 68](https://jonas-paprotka.de/ref/codeunit/4812-intrastat-report-doc-compl/source/#L68), local.

- [86](https://jonas-paprotka.de/ref/codeunit/4812-intrastat-report-doc-compl/source/#L86) raises `OnAfterDefaultServiceDocuments`

## CheckIntrastatMandatoryFieldsOnAfterCheckSalesDocSalesDocumentTest

[Line 90](https://jonas-paprotka.de/ref/codeunit/4812-intrastat-report-doc-compl/source/#L90), local.

- [103](https://jonas-paprotka.de/ref/codeunit/4812-intrastat-report-doc-compl/source/#L103) calls [Table 36 Sales Header](https://jonas-paprotka.de/ref/table/36-sales-header/) `IsIntrastatTransaction`
- [103](https://jonas-paprotka.de/ref/codeunit/4812-intrastat-report-doc-compl/source/#L103) calls [Table 36 Sales Header](https://jonas-paprotka.de/ref/table/36-sales-header/) `ShipOrReceiveInventoriableTypeItems`
- [106](https://jonas-paprotka.de/ref/codeunit/4812-intrastat-report-doc-compl/source/#L106) calls `AddError`
- [109](https://jonas-paprotka.de/ref/codeunit/4812-intrastat-report-doc-compl/source/#L109) calls `AddError`
- [112](https://jonas-paprotka.de/ref/codeunit/4812-intrastat-report-doc-compl/source/#L112) calls `AddError`
- [115](https://jonas-paprotka.de/ref/codeunit/4812-intrastat-report-doc-compl/source/#L115) calls `AddError`

## CheckIntrastatMandatoryFieldsOnAfterCheckServiceDocServiceDocumentTest

[Line 120](https://jonas-paprotka.de/ref/codeunit/4812-intrastat-report-doc-compl/source/#L120), local.

- [130](https://jonas-paprotka.de/ref/codeunit/4812-intrastat-report-doc-compl/source/#L130) calls [Table 5900 Service Header](https://jonas-paprotka.de/ref/table/5900-service-header/) `IsIntrastatTransaction`
- [130](https://jonas-paprotka.de/ref/codeunit/4812-intrastat-report-doc-compl/source/#L130) calls [Table 5900 Service Header](https://jonas-paprotka.de/ref/table/5900-service-header/) `ShipOrReceiveInventoriableTypeItems`
- [133](https://jonas-paprotka.de/ref/codeunit/4812-intrastat-report-doc-compl/source/#L133) calls `AddError`
- [136](https://jonas-paprotka.de/ref/codeunit/4812-intrastat-report-doc-compl/source/#L136) calls `AddError`
- [139](https://jonas-paprotka.de/ref/codeunit/4812-intrastat-report-doc-compl/source/#L139) calls `AddError`
- [142](https://jonas-paprotka.de/ref/codeunit/4812-intrastat-report-doc-compl/source/#L142) calls `AddError`

## CheckIntrastatMandatoryFieldsOnAfterCheckPurchaseDocPurchaseDocumentTest

[Line 147](https://jonas-paprotka.de/ref/codeunit/4812-intrastat-report-doc-compl/source/#L147), local.

- [160](https://jonas-paprotka.de/ref/codeunit/4812-intrastat-report-doc-compl/source/#L160) calls [Table 38 Purchase Header](https://jonas-paprotka.de/ref/table/38-purchase-header/) `IsIntrastatTransaction`
- [160](https://jonas-paprotka.de/ref/codeunit/4812-intrastat-report-doc-compl/source/#L160) calls [Table 38 Purchase Header](https://jonas-paprotka.de/ref/table/38-purchase-header/) `ShipOrReceiveInventoriableTypeItems`
- [163](https://jonas-paprotka.de/ref/codeunit/4812-intrastat-report-doc-compl/source/#L163) calls `AddError`
- [166](https://jonas-paprotka.de/ref/codeunit/4812-intrastat-report-doc-compl/source/#L166) calls `AddError`
- [169](https://jonas-paprotka.de/ref/codeunit/4812-intrastat-report-doc-compl/source/#L169) calls `AddError`
- [172](https://jonas-paprotka.de/ref/codeunit/4812-intrastat-report-doc-compl/source/#L172) calls `AddError`

## CheckIntrastatMandatoryFieldsOnAfterCheckBeforePost

[Line 177](https://jonas-paprotka.de/ref/codeunit/4812-intrastat-report-doc-compl/source/#L177), local.

- [179](https://jonas-paprotka.de/ref/codeunit/4812-intrastat-report-doc-compl/source/#L179) calls [Table 5740 Transfer Header](https://jonas-paprotka.de/ref/table/5740-transfer-header/) `CheckIntrastatMandatoryFields`

## CheckIntrastatMandatoryFieldsOnAfterCheckSalesDocSalesPost

[Line 183](https://jonas-paprotka.de/ref/codeunit/4812-intrastat-report-doc-compl/source/#L183), local.

- [185](https://jonas-paprotka.de/ref/codeunit/4812-intrastat-report-doc-compl/source/#L185) calls [Table 36 Sales Header](https://jonas-paprotka.de/ref/table/36-sales-header/) `CheckIntrastatMandatoryFields`

## OnInitializeOnAfterCheckAndSetPostingConstants

[Line 189](https://jonas-paprotka.de/ref/codeunit/4812-intrastat-report-doc-compl/source/#L189), local.

- [192](https://jonas-paprotka.de/ref/codeunit/4812-intrastat-report-doc-compl/source/#L192) calls [Table 5900 Service Header](https://jonas-paprotka.de/ref/table/5900-service-header/) `CheckIntrastatMandatoryFields`

## CheckIntrastatMandatoryFieldsOnAfterCheckSalesDocPurchPost

[Line 196](https://jonas-paprotka.de/ref/codeunit/4812-intrastat-report-doc-compl/source/#L196), local.

- [198](https://jonas-paprotka.de/ref/codeunit/4812-intrastat-report-doc-compl/source/#L198) calls [Table 38 Purchase Header](https://jonas-paprotka.de/ref/table/38-purchase-header/) `CheckIntrastatMandatoryFields`

## Source

AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at 4303e5e584d3aa5d9e98cbc615525a5396ad6ed7.

JOP-AL, 2026-11-20.
