---
id: object/codeunit/10789-es
type: object
title: Codeunit 10789 "Service Posting Subscr. ES" (ES)
summary: Codeunit 10789 "Service Posting Subscr. ES" (ES) in the ES country layer (Microsoft.Service.Posting). 1 events, 15 event subscribers. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - codeunit
  - es 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: 900d8b2e14555c1916bd9e811213c6c1421916c92e2a86808b8bf544f9e3f29c
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/ES/BaseApp/Service/Local/Posting/ServicePostingSubscrES.Codeunit.al
    title: src/Layers/ES/BaseApp/Service/Local/Posting/ServicePostingSubscrES.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations:
    - localization/es
  videos: []
  posts: []
  guidelines: []
  changes:
    - change/bcapps/12290
    - change/bcapps/10514
    - change/bcapps/10056
object_type: codeunit
object_id: 10789
name: Service Posting Subscr. ES
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: ES
counts:
  fields: 0
  procedures: 18
  events: 1
  subscribers: 15
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
---

# Codeunit 10789 "Service Posting Subscr. ES" (ES)

> Codeunit 10789 "Service Posting Subscr. ES" (ES) in the ES country layer (Microsoft.Service.Posting). 1 events, 15 event subscribers. Introduced in BC29, still in BC30.

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

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

## Events published

- `OnCreateBillsOnBeforeSplitServiceInv(ServiceHeader: Record "Service Header"; var CustLedgerEntry: Record "Cust. Ledger Entry"; var TotalServiceLine: Record "Service Line")` (integration)

## Event subscriptions

- OnAfterPostWithLines subscribes to Codeunit "Service-Post" OnAfterPostWithLines
- OnCheckAndSetConstantsOnBeforeSetPostingOptions subscribes to Codeunit "Service-Post" OnCheckAndSetConstantsOnBeforeSetPostingOptions
- OnValidatePostingAndDocumentDateOnAfterValidateDocumentDate subscribes to Codeunit "Service-Post" OnValidatePostingAndDocumentDateOnAfterValidateDocumentDate
- OnPostDocumentLinesOnAfterPostSalesAndVAT subscribes to Codeunit "Serv-Documents Mgt." OnPostDocumentLinesOnAfterPostSalesAndVAT
- OnAfterGetAndCheckCustomer subscribes to Codeunit "Serv-Documents Mgt." OnAfterGetAndCheckCustomer
- OnFinalizeInvoiceDocumentOnBeforeServiceInvoiceHeaderInsert subscribes to Codeunit "Serv-Documents Mgt." OnFinalizeInvoiceDocumentOnBeforeServiceInvoiceHeaderInsert
- OnFinalizeCrMemoDocumentOnBeforeServiceCreditMemoHeaderInsert subscribes to Codeunit "Serv-Documents Mgt." OnFinalizeCrMemoDocumentOnBeforeServiceCreditMemoHeaderInsert
- OnGetAndCheckCustomerOnAfterCheckBlocked subscribes to Codeunit "Serv-Documents Mgt." OnGetAndCheckCustomerOnAfterCheckBlocked
- OnBeforeValidatePaymentTerms subscribes to Table "Service Header" OnBeforeValidatePaymentTerms
- OnSumServiceLine2OnAfterSetVATPercentFromServLine subscribes to Codeunit "Serv-Amounts Mgt." OnSumServiceLine2OnAfterSetVATPercentFromServLine
- OnDivideAmountOnSetVATPercentFromVATAmountLine subscribes to Codeunit "Serv-Amounts Mgt." OnDivideAmountOnSetVATPercentFromVATAmountLine
- OnDivideAmountOnAfterCalcRemainderVATAmount subscribes to Codeunit "Serv-Amounts Mgt." OnDivideAmountOnAfterCalcRemainderVATAmount
- OnDivideAmountOnAfterCalcServiceLineAmountIncludingVAT subscribes to Codeunit "Serv-Amounts Mgt." OnDivideAmountOnAfterCalcServiceLineAmountIncludingVAT
- OnDivideAmountOnAfterSetVATAmountLineRemainderToZero subscribes to Codeunit "Serv-Amounts Mgt." OnDivideAmountOnAfterSetVATAmountLineRemainderToZero
- OnDivideAmountOnAfterCalcVATAmountLineRemainder subscribes to Codeunit "Serv-Amounts Mgt." OnDivideAmountOnAfterCalcVATAmountLineRemainder

## Procedures

2 local procedures, no public ones.

## Recent changes

- 2026-10-06 [#12290 Remove CLEAN27 from Service Management](../../changes/bcapps/12290.md) (main, BC30, refactor)
- 2026-08-31 [#10514 Ruleset hardening: promote AS0022, AA0087, AW0003, AA0203, AL0717 to Error](../../changes/bcapps/10514.md) (main, BC30, other)
- 2026-08-11 [#10056 [Master]- Cartera: Service Credit Memo cannot be posted - settlement check ignores Applies-to Doc. No. and Application Method.](../../changes/bcapps/10056.md) (main, BC30, fix)

## 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: "Service Posting Subscr. ES")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.

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