---
id: object/codeunit/6458
type: object
title: Codeunit 6458 "Serv. PEPPOL Management"
summary: Codeunit 6458 "Serv. PEPPOL Management" in Base Application (Microsoft.Sales.Peppol). 5 public procedures, 6 events, 8 event subscribers. Introduced in BC25, still in BC30, changed in BC26, BC28-29. Obsolete (Pending since 29.0).
tier: official
language: en
tags:
  - codeunit
  - base application
versions:
  introduced: "25"
  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: 936dacdbd490a9d725dd9abd1656d853fd8c60a94bd8e402cb5aed0ba85a1977
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Service/Sales/Peppol/ServPEPPOLManagement.Codeunit.al
    title: src/Layers/W1/BaseApp/Service/Sales/Peppol/ServPEPPOLManagement.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: codeunit
object_id: 6458
name: Serv. PEPPOL Management
namespace: Microsoft.Sales.Peppol
app: Base Application
extends: null
first_version: "25"
last_version: "30"
present_in:
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "26"
  - "28"
  - "29"
source_major: "29"
obsolete:
  state: Pending
  tag: "29.0"
  reason: Replaced by PEPPOL App
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 19
  events: 6
  subscribers: 8
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 1
  called_by: 0
  implements: 0
---

# Codeunit 6458 "Serv. PEPPOL Management"

> Codeunit 6458 "Serv. PEPPOL Management" in Base Application (Microsoft.Sales.Peppol). 5 public procedures, 6 events, 8 event subscribers. Introduced in BC25, still in BC30, changed in BC26, BC28-29. Obsolete (Pending since 29.0).

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

## Properties

| Property | Value |
|---|---|
| SingleInstance | true |
| ObsoleteState | Pending |
| ObsoleteTag | 29.0 |
| ObsoleteReason | Replaced by PEPPOL App |

## Events published

- `OnAfterFindNextServiceInvoiceRec(var ServiceInvoiceHeader: Record "Service Invoice Header"; var SalesHeader: Record "Sales Header"; Position: Integer; var Found: Boolean)` (integration)
- `OnAfterFindNextServiceInvoiceLineRec(var ServiceInvoiceLine: Record "Service Invoice Line"; var SalesLine: Record "Sales Line"; var Found: Boolean)` (integration)
- `OnAfterFindNextServiceCreditMemoRec(var ServiceCrMemoHeader: Record "Service Cr.Memo Header"; var SalesHeader: Record "Sales Header"; Position: Integer; var Found: Boolean)` (integration)
- `OnAfterFindNextServiceCrMemoLineRec(var ServiceCrMemoLine: Record "Service Cr.Memo Line"; var SalesLine: Record "Sales Line"; var Found: Boolean)` (integration)
- `OnBeforeFindServiceInvoiceLine(var SalesInvoiceLine: Record "Service Invoice Line")` (integration)
- `OnBeforeFindServiceCrMemoLine(var ServiceCrMemoLine: Record "Service Cr.Memo Line")` (integration)

## Event subscriptions

- CreditMemoPEPPOLBIS30_OnInitialize subscribes to XmlPort "Sales Cr.Memo - PEPPOL BIS 3.0" OnInitialize
- CreditMemoPEPPOLBIS30_OnFindNextCreditMemoRec subscribes to XmlPort "Sales Cr.Memo - PEPPOL BIS 3.0" OnFindNextCreditMemoRec
- CreditMemoPEPPOLBIS30_OnFindNextCreditMemoLineRec subscribes to XmlPort "Sales Cr.Memo - PEPPOL BIS 3.0" OnFindNextCreditMemoLineRec
- CreditMemoPEPPOLBIS30_OnGetTotals subscribes to XmlPort "Sales Cr.Memo - PEPPOL BIS 3.0" OnGetTotals
- InvoicePEPPOLBIS30_OnInitialize subscribes to XmlPort "Sales Invoice - PEPPOL BIS 3.0" OnInitialize
- InvoicePEPPOLBIS30_OnFindNextInvoiceRec subscribes to XmlPort "Sales Invoice - PEPPOL BIS 3.0" OnFindNextInvoiceRec
- InvoicePEPPOLBIS30_OnFindNextInvoiceLineRec subscribes to XmlPort "Sales Invoice - PEPPOL BIS 3.0" OnFindNextInvoiceLineRec
- InvoicePEPPOLBIS30_OnGetTotals subscribes to XmlPort "Sales Invoice - PEPPOL BIS 3.0" OnGetTotals

## Procedures

- `FindNextServiceInvoiceRec(var ServiceInvoiceHeader: Record "Service Invoice Header"; var SalesHeader: Record "Sales Header"; Position: Integer): Boolean`
- `FindNextServiceInvoiceLineRec(var ServiceInvoiceLine: Record Microsoft.Service.History."Service Invoice Line"; var SalesLine: Record "Sales Line"; Position: Integer): Boolean`
- `FindNextServiceCreditMemoRec(var ServiceCrMemoHeader: Record "Service Cr.Memo Header"; var SalesHeader: Record "Sales Header"; Position: Integer): Boolean`
- `MapServiceLineTypeToSalesLineType(ServiceLineType: Enum "Service Line Type"): Enum "Sales Line Type"`
- `FindNextServiceCreditMemoLineRec(var ServiceCrMemoLine: Record "Service Cr.Memo Line"; var SalesLine: Record "Sales Line"; Position: Integer): Boolean`

## 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) (14 calls: `CreditMemoPEPPOLBIS30_OnGetTotals → GetTaxCategories`, `CreditMemoPEPPOLBIS30_OnGetTotals → GetTotals`, `CreditMemoPEPPOLBIS30_OnGetTotals → TransferLineToSalesLine`, …)

## Across versions

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

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