---
id: object/codeunit/12140-it
type: object
title: Codeunit 12140 "Serv. Document Mgt. IT" (IT)
summary: Codeunit 12140 "Serv. Document Mgt. IT" (IT) in the IT country layer (Microsoft.Service.Document). 43 event subscribers. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - codeunit
  - it 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: 22d894bba0bfc935a71f03a73b11c1ac9c27c26fc4587f400c884ae410c654c3
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/IT/BaseApp/Service/Local/Document/ServDocumentMgtIT.Codeunit.al
    title: src/Layers/IT/BaseApp/Service/Local/Document/ServDocumentMgtIT.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations:
    - localization/it
  videos: []
  posts: []
  guidelines: []
object_type: codeunit
object_id: 12140
name: Serv. Document Mgt. IT
namespace: Microsoft.Service.Document
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: IT
counts:
  fields: 0
  procedures: 44
  events: 0
  subscribers: 43
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
---

# Codeunit 12140 "Serv. Document Mgt. IT" (IT)

> Codeunit 12140 "Serv. Document Mgt. IT" (IT) in the IT country layer (Microsoft.Service.Document). 43 event subscribers. Introduced in BC29, still in BC30.

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

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

## Event subscriptions

- DocumentDateOnBeforeValidateEvent subscribes to Table "Service Header" OnBeforeValidateEvent (Document Date)
- OnValidateDocumentDateOnAfterValidateVATReportingDate subscribes to Table "Service Header" OnValidateDocumentDateOnAfterValidateVATReportingDate
- VATBusPostingGroupOnBeforeValidateEvent subscribes to Table "Service Header" OnBeforeValidateEvent (VAT Bus. Posting Group)
- VATBusPostingGroupOnAfterValidateEvent subscribes to Table "Service Header" OnAfterValidateEvent (VAT Bus. Posting Group)
- OperationOccurredDateOnBeforeValidateEvent subscribes to Table "Service Header" OnBeforeValidateEvent (Operation Occurred Date)
- ShipmentMethodCodeOnAfterValidateEvent subscribes to Table "Service Header" OnAfterValidateEvent (Shipment Method Code)
- ShipmentAgentCodeOnAfterValidateEvent subscribes to Table "Service Header" OnAfterValidateEvent (Shipping Agent Code)
- ShiptoCodeOnBeforeValidateEvent subscribes to Table "Service Header" OnBeforeValidateEvent (Ship-to Code)
- OnAfterValidateBillToCustomerNo subscribes to Table "Service Header" OnAfterValidateBillToCustomerNo
- OnAfterInitPostingDate subscribes to Table "Service Header" OnAfterInitPostingDate
- OnUpdateCurrencyFactorOnAfterSetCurrencyDate subscribes to Table "Service Header" OnUpdateCurrencyFactorOnAfterSetCurrencyDate
- OnDeleteOnBeforeShowPostedDocsToPrint subscribes to Table "Service Header" OnDeleteOnBeforeShowPostedDocsToPrint
- OnAfterCopyBillToCustomerFields subscribes to Table "Service Header" OnAfterCopyBillToCustomerFields
- OnBeforeOnDelete subscribes to Table "Service Header" OnBeforeOnDelete
- OnAfterOnInsert subscribes to Table "Service Header" OnAfterOnInsert
- OnBeforeConfirmRecreateServLines subscribes to Table "Service Header" OnBeforeConfirmRecreateServLines
- OnAfterCopyAppliestoFieldsFromCustLedgerEntry subscribes to Table "Service Header" OnAfterCopyAppliestoFieldsFromCustLedgerEntry
- OnValidatePostingDateOnAfterCheckPostingDate subscribes to Table "Service Header" OnValidatePostingDateOnAfterCheckPostingDate
- OnValidatePostingDateOnAfterValidateVATReportingDate subscribes to Table "Service Header" OnValidatePostingDateOnAfterValidateVATReportingDate
- OnValidatePostingDateOnAfterUpdatePostingDateOnLines subscribes to Table "Service Header" OnValidatePostingDateOnAfterUpdatePostingDateOnLines
- OnBeforeValidatePaymentTerms subscribes to Table "Service Header" OnBeforeValidatePaymentTerms
- OnAfterInitRecord subscribes to Table "Service Header" OnAfterInitRecord
- OnAfterCopyCustomerFields subscribes to Table "Service Header" OnAfterCopyCustomerFields
- OnAfterUpdateServLinesByFieldNo subscribes to Table "Service Header" OnAfterUpdateServLinesByFieldNo
- OnAfterValidateEventCustomerNo subscribes to Table "Service Line" OnAfterValidateEvent (Customer No.)
- OnAfterValidateEventUnitPrice subscribes to Table "Service Line" OnAfterValidateEvent (Unit Price)
- OnAfterValidateEventInvDiscountAmount subscribes to Table "Service Line" OnAfterValidateEvent (Inv. Discount Amount)
- OnAfterValidateEventContractNo subscribes to Table "Service Line" OnAfterValidateEvent (Contract No.)
- OnValidateQuantityOnBeforeResetAmounts subscribes to Table "Service Line" OnValidateQuantityOnBeforeResetAmounts
- OnValidateNoOnAfterCopyFields subscribes to Table "Service Line" OnValidateNoOnAfterCopyFields
- OnAfterValidateEventVATProdPostingGroup subscribes to Table "Service Line" OnValidateVATProdPostingGroupOnAfterCopyFields
- OnAfterOnDelete subscribes to Table "Service Line" OnAfterOnDelete
- OnInitHeaderDefaultsOnAfterAssignLocationCode subscribes to Table "Service Line" OnInitHeaderDefaultsOnAfterAssignLocationCode
- OnAfterClearFields subscribes to Table "Service Line" OnAfterClearFields
- OnInsertVATAmountOnBeforeInsert subscribes to Table "Service Line" OnInsertVATAmountOnBeforeInsert
- ServiceContract_OnCreateServHeaderOnAfterCopyFromCustomer subscribes to Codeunit "ServContractManagement" OnCreateServHeaderOnAfterCopyFromCustomer
- ServiceContract_OnCreateOrGetCreditHeaderOnAfterCopyFromCustomer subscribes to Codeunit "ServContractManagement" OnCreateOrGetCreditHeaderOnAfterCopyFromCustomer
- ServiceContract_OnBeforeServHeaderModify subscribes to Codeunit "ServContractManagement" OnBeforeServHeaderModify
- ServiceInvoiceHeaderOnBeforeOnDelete subscribes to Table "Service Invoice Header" OnBeforeOnDelete
- OnCalculateInvoiceDiscountOnAfterSetServiceLineFilters subscribes to Codeunit "Service-Calc. Discount" OnCalculateInvoiceDiscountOnAfterSetServiceLineFilters
- ServiceCreditMemosOnAfterValidateReplacePostingDate subscribes to Report "Batch Post Service Cr. Memos" OnAfterValidateReplacePostingDate
- ServiceInvoicesOnAfterValidateReplacePostingDate subscribes to Report "Batch Post Service Invoices" OnAfterValidateReplacePostingDate
- ServiceOrdersOnAfterValidateReplacePostingDate subscribes to Report "Batch Post Service Orders" OnAfterValidateReplacePostingDate

## Procedures

1 local procedures, no public ones.

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

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