---
id: object/codeunit/1620
type: object
title: Codeunit 1620 "PEPPOL Validation"
summary: Codeunit 1620 "PEPPOL Validation" in Base Application (Microsoft.Sales.Peppol). 6 public procedures, 9 events. Present since at least BC23, still in BC30, changed in BC25-29. Obsolete (Pending since 29.0).
tier: official
language: en
tags:
  - codeunit
  - base application
versions:
  introduced: null
  last_changed: "29"
  deprecated: "29.0"
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-10-11T00:31:51.816Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: ec9b15c4822722b9502322189d21da5d7ea04db0b7d6ace44ea2b25fc2ec2c95
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Sales/Peppol/PEPPOLValidation.Codeunit.al
    title: src/Layers/W1/BaseApp/Sales/Peppol/PEPPOLValidation.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: 1620
name: PEPPOL Validation
namespace: Microsoft.Sales.Peppol
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
source_major: "29"
obsolete:
  state: Pending
  tag: "29.0"
  reason: Replaced by PEPPOL App
countries:
  - "no"
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 23
  events: 9
  subscribers: 0
relations:
  out: 1
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 3
  called_by: 3
  implements: 0
---

# Codeunit 1620 "PEPPOL Validation"

> Codeunit 1620 "PEPPOL Validation" in Base Application (Microsoft.Sales.Peppol). 6 public procedures, 9 events. Present since at least BC23, still in BC30, changed in BC25-29. Obsolete (Pending since 29.0).

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

## Properties

| Property | Value |
|---|---|
| TableNo | Sales Header |
| ObsoleteState | Pending |
| ObsoleteTag | 29.0 |
| ObsoleteReason | Replaced by PEPPOL App |

## Events published

- `OnAfterCheckSalesDocument(SalesHeader: Record "Sales Header"; CompanyInfo: Record "Company Information")` (integration): Raised after validating a sales document header against PEPPOL requirements.
- `OnBeforeCheckShipToAddress(SalesHeader: Record "Sales Header"; var IsHandled: Boolean)` (integration): Raised before validating the ship-to address of a sales document.
- `OnBeforeOnRun(SalesHeader: Record "Sales Header"; var IsHandled: Boolean)` (integration): Raised before running the PEPPOL validation codeunit.
- `OnCheckSalesDocumentLineOnBeforeCheckEmptyDescription(SalesLine: Record "Sales Line"; var IsHandled: Boolean)` (integration): Raised before checking if a sales line has an empty description.
- `OnBeforeCheckSalesDocument(var SalesHeader: Record "Sales Header"; var CompanyInformation: Record "Company Information"; var IsHandled: Boolean)` (integration): Raised before validating a sales document header against PEPPOL requirements.
- `OnBeforeCheckSalesDocumentLine(var SalesLine: Record "Sales Line"; var IsHandled: Boolean)` (integration): Raised before validating a sales document line against PEPPOL requirements.
- `OnCheckSalesDocumentOnBeforeCheckCompanyVATRegNo(SalesHeader: Record "Sales Header"; CompanyInformation: Record "Company Information"; var IsHandled: Boolean)` (integration): Raised before checking the company VAT registration number during sales document validation.
- `OnCheckSalesDocumentOnBeforeCheckCustomerVATRegNo(SalesHeader: Record "Sales Header"; Customer: Record Customer; var IsHandled: Boolean)` (integration): Raised before checking the customer VAT registration number during sales document validation.
- `OnCheckSalesDocumentOnBeforeCheckYourReference(SalesHeader: Record "Sales Header"; var IsHandled: Boolean)` (integration): Raised before checking the Your Reference field during sales document validation.

## Procedures

- `CheckSalesDocument(SalesHeader: Record "Sales Header")`: Validates a sales document header against PEPPOL requirements including company information, customer data, and required fields.
- `CheckSalesDocumentLines(SalesHeader: Record "Sales Header")`: Validates all lines of a sales document against PEPPOL requirements.
- `CheckSalesDocumentLine(SalesLine: Record "Sales Line")`: Validates a single sales document line against PEPPOL requirements including unit of measure codes, descriptions, and VAT settings.
- `CheckSalesInvoice(SalesInvoiceHeader: Record "Sales Invoice Header")`: Validates a posted sales invoice and all its lines against PEPPOL requirements.
- `CheckSalesCreditMemo(SalesCrMemoHeader: Record "Sales Cr.Memo Header")`: Validates a posted sales credit memo and all its lines against PEPPOL requirements.
- `CheckSalesLineTypeAndDescription(SalesLine: Record "Sales Line"): Boolean`: Checks if a sales line has a type set but is missing a description.

Plus 8 local procedures.

## Triggers

OnRun

## Relations

- runs on [Table 36 "Sales Header"](../table/36.md)

## 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 1605 "PEPPOL Management"](../codeunit/1605.md) (4 calls: `CheckSalesDocumentLine → GetLineUnitCodeInfo`, `CheckTaxCategory → IsOutsideScopeVATCategory`, `CheckTaxCategory → IsStandardVATCategory`, …)
- [Codeunit 2675 "Allocation Account Mgt."](../codeunit/2675.md) (1 call: `CheckAllocationAccountExpandedLines → GenerateAllocationLines`)
- [Codeunit 27 "Confirm Management"](../codeunit/27.md) (1 call: `CheckSalesDocumentLine → GetResponseOrDefault`)

## Called by

- [Codeunit 1621 "PEPPOL Service Validation"](../codeunit/1621.md) (6 calls: `CheckServiceCreditMemo → CheckSalesDocument`, `CheckServiceCreditMemo → CheckSalesDocumentLine`, `CheckServiceHeader → CheckSalesDocument`, …)
- [Codeunit 1610 "Exp. Sales Inv. PEPPOL BIS3.0"](../codeunit/1610.md) (1 call: `OnRun → CheckSalesInvoice`)
- [Codeunit 1611 "Exp. Sales CrM. PEPPOL BIS3.0"](../codeunit/1611.md) (1 call: `OnRun → CheckSalesCreditMemo`)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: BC25-29
- Obsolete: Pending since 29.0, "Replaced by PEPPOL App"

## Countries that replace it

[NO](../../localizations/no.md)

## Deprecations

- object: Pending 29.0 (#if not CLEAN29), "Replaced by PEPPOL App"

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