---
id: object/codeunit/10759-es
type: object
title: Codeunit 10759 "Serv. SII Management" (ES)
summary: Codeunit 10759 "Serv. SII Management" (ES) in the ES country layer (Microsoft.EServices.EDocument). 5 public procedures, 1 events, 9 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: 6493a5d8ba6319eb49b9a86410ae0295c41095de2c88482f5de94a7cbcfccc87
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/ES/BaseApp/Service/Local/EService/EDocument/ServSIIManagement.Codeunit.al
    title: src/Layers/ES/BaseApp/Service/Local/EService/EDocument/ServSIIManagement.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations:
    - localization/es
  videos: []
  posts: []
  guidelines: []
object_type: codeunit
object_id: 10759
name: Serv. SII Management
namespace: Microsoft.EServices.EDocument
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: 15
  events: 1
  subscribers: 9
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
---

# Codeunit 10759 "Serv. SII Management" (ES)

> Codeunit 10759 "Serv. SII Management" (ES) in the ES country layer (Microsoft.EServices.EDocument). 5 public procedures, 1 events, 9 event subscribers. Introduced in BC29, still in BC30.

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

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

## Events published

- `OnBeforeOnAfterPostServiceDoc(var ServiceHeader: Record Microsoft.Service.Document."Service Header"; var IsHandled: Boolean)` (integration)

## Event subscriptions

- OnUpdateFieldsForServiceInvoice subscribes to Table "SII Doc. Upload State" OnUpdateFieldsForServiceInvoice
- OnUpdateFieldsForServiceCreditMemo subscribes to Table "SII Doc. Upload State" OnUpdateFieldsForServiceCreditMemo
- OnAfterIsCreditmemoRemovalOnGetCorrectionType subscribes to Table "SII Doc. Upload State" OnAfterIsCreditmemoRemovalOnGetCorrectionType
- OnGetSIISalesDocRecFromRec subscribes to Codeunit "SII Scheme Code Mgt." OnGetSIISalesDocRecFromRec
- OnBeforePostWithLines subscribes to Codeunit "Service-Post" OnBeforePostWithLines
- OnAfterServInvHeaderInsert subscribes to Codeunit "Serv-Documents Mgt." OnAfterServInvHeaderInsert
- OnAfterServCrMemoHeaderInsert subscribes to Codeunit "Serv-Documents Mgt." OnAfterServCrMemoHeaderInsert
- OnGetCorrectionInfoFromDocument subscribes to Codeunit "SII XML Creator" OnGetCorrectionInfoFromDocument
- OnGetOperationDesacriptionFromDocument subscribes to Codeunit "SII XML Creator" OnGetOperationDescriptionFromDocument

## Procedures

- `OnAfterPostServiceDoc(var ServiceHeader: Record "Service Header")`
- `IsAllowedServInvType(InvType: Option): Boolean`
- `UpdateSIIInfoInServiceDoc(var ServiceHeader: Record "Service Header")`
- `UpdateServiceSpecialSchemeCodeInSalesHeader(ServiceHeader: Record "Service Header"; xServiceHeader: Record "Service Header")`
- `UpdatePurchSpecialSchemeCodeInServiceine(var ServiceLine: Record "Service Line")`

## 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. SII Management")`, 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.
