---
title: "Codeunit 6468 Serv. Doc. Exchange Mgt., extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/6468-serv-doc-exchange-mgt/points/
object: https://jonas-paprotka.de/ref/codeunit/6468-serv-doc-exchange-mgt/
app: "Base Application"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/6468-serv-doc-exchange-mgt/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 6468 Serv. Doc. Exchange Mgt., extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/6468-serv-doc-exchange-mgt/points/

16 procedures and triggers with a step in src/Layers/W1/BaseApp/Service/EServices/EDocument/ServDocExchangeMgt.Codeunit.al, in source order, read from the text, not from a run.

## OnBeforeUpdateDocumentRecord

[Line 21](https://jonas-paprotka.de/ref/codeunit/6468-serv-doc-exchange-mgt/source/#L21), local.

- [26](https://jonas-paprotka.de/ref/codeunit/6468-serv-doc-exchange-mgt/source/#L26) calls `SetServiceInvoiceDocSent`
- [31](https://jonas-paprotka.de/ref/codeunit/6468-serv-doc-exchange-mgt/source/#L31) calls `SetServiceCrMemoDocSent`

## SetServiceInvoiceDocSent

[Line 37](https://jonas-paprotka.de/ref/codeunit/6468-serv-doc-exchange-mgt/source/#L37), local.

- [43](https://jonas-paprotka.de/ref/codeunit/6468-serv-doc-exchange-mgt/source/#L43) validates [Table 5992 Service Invoice Header](https://jonas-paprotka.de/ref/table/5992-service-invoice-header/) `Document Exchange Identifier`
- [45](https://jonas-paprotka.de/ref/codeunit/6468-serv-doc-exchange-mgt/source/#L45) validates [Table 5992 Service Invoice Header](https://jonas-paprotka.de/ref/table/5992-service-invoice-header/) `Doc. Exch. Original Identifier`
- [47](https://jonas-paprotka.de/ref/codeunit/6468-serv-doc-exchange-mgt/source/#L47) validates [Table 5992 Service Invoice Header](https://jonas-paprotka.de/ref/table/5992-service-invoice-header/) `Document Exchange Status`
- [48](https://jonas-paprotka.de/ref/codeunit/6468-serv-doc-exchange-mgt/source/#L48) writes [Table 5992 Service Invoice Header](https://jonas-paprotka.de/ref/table/5992-service-invoice-header/) Modify(true)

## SetServiceCrMemoDocSent

[Line 51](https://jonas-paprotka.de/ref/codeunit/6468-serv-doc-exchange-mgt/source/#L51), local.

- [57](https://jonas-paprotka.de/ref/codeunit/6468-serv-doc-exchange-mgt/source/#L57) validates [Table 5994 Service Cr.Memo Header](https://jonas-paprotka.de/ref/table/5994-service-cr-memo-header/) `Document Exchange Identifier`
- [59](https://jonas-paprotka.de/ref/codeunit/6468-serv-doc-exchange-mgt/source/#L59) validates [Table 5994 Service Cr.Memo Header](https://jonas-paprotka.de/ref/table/5994-service-cr-memo-header/) `Doc. Exch. Original Identifier`
- [61](https://jonas-paprotka.de/ref/codeunit/6468-serv-doc-exchange-mgt/source/#L61) validates [Table 5994 Service Cr.Memo Header](https://jonas-paprotka.de/ref/table/5994-service-cr-memo-header/) `Document Exchange Status`
- [62](https://jonas-paprotka.de/ref/codeunit/6468-serv-doc-exchange-mgt/source/#L62) writes [Table 5994 Service Cr.Memo Header](https://jonas-paprotka.de/ref/table/5994-service-cr-memo-header/) Modify(true)

## CheckAndUpdateDocExchServiceInvoiceStatus

[Line 66](https://jonas-paprotka.de/ref/codeunit/6468-serv-doc-exchange-mgt/source/#L66), internal.

- [70](https://jonas-paprotka.de/ref/codeunit/6468-serv-doc-exchange-mgt/source/#L70) calls `MapDocExchStatusToServiceInvStatus`
- [71](https://jonas-paprotka.de/ref/codeunit/6468-serv-doc-exchange-mgt/source/#L71) calls [Codeunit 1410 Doc. Exch. Service Mgt.](https://jonas-paprotka.de/ref/codeunit/1410-doc-exch-service-mgt/) `GetDocumentStatus`
- [73](https://jonas-paprotka.de/ref/codeunit/6468-serv-doc-exchange-mgt/source/#L73) validates [Table 5992 Service Invoice Header](https://jonas-paprotka.de/ref/table/5992-service-invoice-header/) `Document Exchange Status`
- [74](https://jonas-paprotka.de/ref/codeunit/6468-serv-doc-exchange-mgt/source/#L74) writes [Table 5992 Service Invoice Header](https://jonas-paprotka.de/ref/table/5992-service-invoice-header/) Modify(true)

## CheckAndUpdateDocExchServiceCrMemoStatus

[Line 79](https://jonas-paprotka.de/ref/codeunit/6468-serv-doc-exchange-mgt/source/#L79), internal.

- [83](https://jonas-paprotka.de/ref/codeunit/6468-serv-doc-exchange-mgt/source/#L83) calls `MapDocExchStatusToServiceCMStatus`
- [84](https://jonas-paprotka.de/ref/codeunit/6468-serv-doc-exchange-mgt/source/#L84) calls [Codeunit 1410 Doc. Exch. Service Mgt.](https://jonas-paprotka.de/ref/codeunit/1410-doc-exch-service-mgt/) `GetDocumentStatus`
- [86](https://jonas-paprotka.de/ref/codeunit/6468-serv-doc-exchange-mgt/source/#L86) validates [Table 5994 Service Cr.Memo Header](https://jonas-paprotka.de/ref/table/5994-service-cr-memo-header/) `Document Exchange Status`
- [87](https://jonas-paprotka.de/ref/codeunit/6468-serv-doc-exchange-mgt/source/#L87) writes [Table 5994 Service Cr.Memo Header](https://jonas-paprotka.de/ref/table/5994-service-cr-memo-header/) Modify(true)

## OnAfterCheckPostedDocs

[Line 120](https://jonas-paprotka.de/ref/codeunit/6468-serv-doc-exchange-mgt/source/#L120), local.

- [122](https://jonas-paprotka.de/ref/codeunit/6468-serv-doc-exchange-mgt/source/#L122) calls `CheckPostedServiceInvoices`
- [123](https://jonas-paprotka.de/ref/codeunit/6468-serv-doc-exchange-mgt/source/#L123) calls `CheckPostedServiceCrMemos`

## CheckPostedServiceInvoices

[Line 126](https://jonas-paprotka.de/ref/codeunit/6468-serv-doc-exchange-mgt/source/#L126), local.

- [137](https://jonas-paprotka.de/ref/codeunit/6468-serv-doc-exchange-mgt/source/#L137) calls `CheckAndUpdateDocExchServiceInvoiceStatus`

## CheckPostedServiceCrMemos

[Line 142](https://jonas-paprotka.de/ref/codeunit/6468-serv-doc-exchange-mgt/source/#L142), local.

- [153](https://jonas-paprotka.de/ref/codeunit/6468-serv-doc-exchange-mgt/source/#L153) calls `CheckAndUpdateDocExchServiceCrMemoStatus`

## OnBeforeCheckAndUpdateDocExchStatus

[Line 159](https://jonas-paprotka.de/ref/codeunit/6468-serv-doc-exchange-mgt/source/#L159), local.

- [168](https://jonas-paprotka.de/ref/codeunit/6468-serv-doc-exchange-mgt/source/#L168) calls `CheckAndUpdateDocExchServiceInvoiceStatus`
- [174](https://jonas-paprotka.de/ref/codeunit/6468-serv-doc-exchange-mgt/source/#L174) calls `CheckAndUpdateDocExchServiceCrMemoStatus`

## OnBeforeGetPostSalesURL

[Line 220](https://jonas-paprotka.de/ref/codeunit/6468-serv-doc-exchange-mgt/source/#L220), local.

- [224](https://jonas-paprotka.de/ref/codeunit/6468-serv-doc-exchange-mgt/source/#L224) calls [Codeunit 1410 Doc. Exch. Service Mgt.](https://jonas-paprotka.de/ref/codeunit/1410-doc-exch-service-mgt/) `GetPostSalesInvURL`
- [226](https://jonas-paprotka.de/ref/codeunit/6468-serv-doc-exchange-mgt/source/#L226) calls [Codeunit 1410 Doc. Exch. Service Mgt.](https://jonas-paprotka.de/ref/codeunit/1410-doc-exch-service-mgt/) `GetPostSalesCrMemoURL`

## OnBeforeSetFiltersFromMainRecord

[Line 231](https://jonas-paprotka.de/ref/codeunit/6468-serv-doc-exchange-mgt/source/#L231), local.

- [240](https://jonas-paprotka.de/ref/codeunit/6468-serv-doc-exchange-mgt/source/#L240) calls `GetServiceIncomingDocumentType`

## OnBeforeCreateNewSalesPurchIncomingDoc

[Line 248](https://jonas-paprotka.de/ref/codeunit/6468-serv-doc-exchange-mgt/source/#L248), local.

- [268](https://jonas-paprotka.de/ref/codeunit/6468-serv-doc-exchange-mgt/source/#L268) calls [Codeunit 134 Import Attachment - Inc. Doc.](https://jonas-paprotka.de/ref/codeunit/134-import-attachment-inc-doc/) `CreateIncomingDocumentExtended`
- [270](https://jonas-paprotka.de/ref/codeunit/6468-serv-doc-exchange-mgt/source/#L270) writes [Table 5900 Service Header](https://jonas-paprotka.de/ref/table/5900-service-header/) Modify

## OnAfterClearRelatedRecords

[Line 307](https://jonas-paprotka.de/ref/codeunit/6468-serv-doc-exchange-mgt/source/#L307), local.

- [316](https://jonas-paprotka.de/ref/codeunit/6468-serv-doc-exchange-mgt/source/#L316) writes [Table 5900 Service Header](https://jonas-paprotka.de/ref/table/5900-service-header/) ModifyAll

## SetServiceDoc

[Line 321](https://jonas-paprotka.de/ref/codeunit/6468-serv-doc-exchange-mgt/source/#L321).

- [326](https://jonas-paprotka.de/ref/codeunit/6468-serv-doc-exchange-mgt/source/#L326) calls [Table 130 Incoming Document](https://jonas-paprotka.de/ref/table/130-incoming-document/) `TestReadyForProcessing`
- [327](https://jonas-paprotka.de/ref/codeunit/6468-serv-doc-exchange-mgt/source/#L327) calls [Table 130 Incoming Document](https://jonas-paprotka.de/ref/table/130-incoming-document/) `TestIfAlreadyExists`
- [334](https://jonas-paprotka.de/ref/codeunit/6468-serv-doc-exchange-mgt/source/#L334) writes [Table 130 Incoming Document](https://jonas-paprotka.de/ref/table/130-incoming-document/) Modify
- [335](https://jonas-paprotka.de/ref/codeunit/6468-serv-doc-exchange-mgt/source/#L335) calls [Table 130 Incoming Document](https://jonas-paprotka.de/ref/table/130-incoming-document/) `DocLinkExists`
- [336](https://jonas-paprotka.de/ref/codeunit/6468-serv-doc-exchange-mgt/source/#L336) calls [Table 130 Incoming Document](https://jonas-paprotka.de/ref/table/130-incoming-document/) `GetURL`

## OnAfterGetRelatedRecordCaption

[Line 379](https://jonas-paprotka.de/ref/codeunit/6468-serv-doc-exchange-mgt/source/#L379), local.

- [385](https://jonas-paprotka.de/ref/codeunit/6468-serv-doc-exchange-mgt/source/#L385) calls [Table 130 Incoming Document](https://jonas-paprotka.de/ref/table/130-incoming-document/) `GetRecordCaption`

## GetServiceIncomingDocumentType

[Line 424](https://jonas-paprotka.de/ref/codeunit/6468-serv-doc-exchange-mgt/source/#L424).

- [439](https://jonas-paprotka.de/ref/codeunit/6468-serv-doc-exchange-mgt/source/#L439) raises `OnGetServiceIncomingDocumentType`, IsHandled

## Source

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

JOP-AL, 2026-11-20.
