---
id: object/codeunit/10288-mx
type: object
title: Codeunit 10288 "Serv-Documents Mgt. NA" (MX)
summary: Codeunit 10288 "Serv-Documents Mgt. NA" (MX) in the MX country layer (Microsoft.Service.Posting). 2 public procedures, 5 events, 13 event subscribers. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - codeunit
  - mx layer
versions:
  introduced: "29"
  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: 07775982630d577ad377cd85e3203b1dcaf2aa36bc74a9001e237a4c000ca96b
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/NA/BaseApp/Service/Local/Posting/ServDocumentsMgtNA.Codeunit.al
    title: src/Layers/NA/BaseApp/Service/Local/Posting/ServDocumentsMgtNA.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations:
    - localization/mx
  videos: []
  posts: []
  guidelines: []
object_type: codeunit
object_id: 10288
name: Serv-Documents Mgt. NA
namespace: Microsoft.Service.Posting
app: Base Application
extends: null
first_version: "29"
last_version: "30"
present_in:
  - "29"
  - "30"
changed_in: []
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
country: MX
counts:
  fields: 0
  procedures: 25
  events: 5
  subscribers: 13
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
---

# Codeunit 10288 "Serv-Documents Mgt. NA" (MX)

> Codeunit 10288 "Serv-Documents Mgt. NA" (MX) in the MX country layer (Microsoft.Service.Posting). 2 public procedures, 5 events, 13 event subscribers. Introduced in BC29, still in BC30.

MX country layer · Microsoft.Service.Posting · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/NA/BaseApp/Service/Local/Posting/ServDocumentsMgtNA.Codeunit.al) · facts from BC29

An object of the [MX localization](../../localizations/mx.md), not part of W1.

## Properties

| Property | Value |
|---|---|
| SingleInstance | true |
| Permissions | TableData "Service Header" = rimd, TableData "Service Line" = rimd |

## Events published

- `OnBeforeCalculateSalesTax(var SalesTaxCalculationOverridden: Boolean; var ServiceHeader: Record "Service Header"; var TempServiceLine: Record "Service Line" temporary; var TempSalesTaxAmountLine: Record "Sales Tax Amount Line" temporary; var IsHandled: Boolean; Ship: Boolean; Consume: Boolean; Invoice: Boolean)` (integration)
- `OnPostDocumentLinesOnBeforeSalesTaxLineToSalesTaxCalc(ServiceLine: Record "Service Line" temporary; ServiceHeader: Record "Service Header" temporary)` (integration)
- `OnPostSalesTaxToGLOnBeforeGenJnlPostLineRunWithCheck(var GenJnlLine: Record "Gen. Journal Line"; ServiceHeader: Record "Service Header"; var TempSalesTaxAmtLine: Record "Sales Tax Amount Line" temporary)` (integration)
- `OnFinalize(var ServiceHeader: Record "Service Header"; var ServiceInvoiceHeader: Record "Service Invoice Header"; var ServiceInvoiceLine: Record "Service Invoice Line"; var ServiceCrMemoHeader: Record "Service Cr.Memo Header"; var ServiceCrMemoLine: Record "Service Cr.Memo Line"; IsInvoice: Boolean)` (integration)
- `OnCheckAndSetPostingConstants(var ServiceHeader: Record "Service Header")` (integration)

## Event subscriptions

- OnAfterInitialize subscribes to Codeunit "Serv-Documents Mgt." OnAfterInitialize
- OnBeforePostDocumentLines subscribes to Codeunit "Serv-Documents Mgt." OnBeforePostDocumentLines
- OnPostSalesTaxLines subscribes to Codeunit "Serv-Posting Journals Mgt." OnPostSalesTaxLines
- OnPrepareLineOnAfterGetGenPostingSetup subscribes to Codeunit "Service Post Invoice Events" OnPrepareLineOnAfterGetGenPostingSetup
- OnPostDocumentLinesOnAfterCheckCloseCondition subscribes to Codeunit "Serv-Documents Mgt." OnPostDocumentLinesOnAfterCheckCloseCondition
- OnFinalizeOnAfterFinalizeDocuments subscribes to Codeunit "Serv-Documents Mgt." OnFinalizeOnAfterFinalizeDocuments
- OnCheckAndSetPostingConstantsOnBeforeCalcPassedInvoice subscribes to Codeunit "Serv-Documents Mgt." OnCheckAndSetPostingConstantsOnBeforeCalcPassedInvoice
- OnDivideAmountOnSalesTaxCalculation subscribes to Codeunit "Serv-Amounts Mgt." OnDivideAmountOnSalesTaxCalculation
- OnDivideAmountOnAfterGetTempVATAmountLine subscribes to Codeunit "Serv-Amounts Mgt." OnDivideAmountOnAfterGetTempVATAmountLine
- OnPostDocumentLinesOnAfterReverseAmount subscribes to Codeunit "Serv-Documents Mgt." OnPostDocumentLinesOnAfterReverseAmount
- OnAfterPostServiceDoc subscribes to Codeunit "Service-Post" OnAfterPostServiceDoc
- ServicePostOnAfterInitialize subscribes to Codeunit "Service-Post" OnAfterInitialize
- OnAfterFinalizePostingOnBeforeCommit subscribes to Codeunit "Service-Post" OnAfterFinalizePostingOnBeforeCommit

## Procedures

- `GetUseExternalTaxEngine(): Boolean`
- `SetTempServiceLineForSalesTax(var TempServiceLineForSalesTax2: Record "Service Line" temporary)` (internal)

Plus 5 local procedures.

## Across versions

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

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). 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-Documents Mgt. NA")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.

A MX country object, not part of W1: the default corpus does not have it; `bcatlas_list_countries` shows which countries the atlas has.
