---
id: object/codeunit/7000126-es
type: object
title: Codeunit 7000126 "SII Purchase Subscribers" (ES)
summary: Codeunit 7000126 "SII Purchase Subscribers" (ES) in the ES country layer (Microsoft.EServices.EDocument). 9 event subscribers. Introduced in BC30.
tier: official
language: en
tags:
  - codeunit
  - es layer
versions:
  introduced: "30"
  last_changed: null
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-10-07T23:32:29.863Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: 6759370a8332daa8c085708b0e349e62ac318a4215aa3863a523c3e29957f5d0
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/f18567dc08e2bd162bf192e1da4d714b57eb099f/src/Layers/ES/BaseApp/Local/SII/Purchases/Document/SIIPurchaseSubscribers.Codeunit.al
    title: src/Layers/ES/BaseApp/Local/SII/Purchases/Document/SIIPurchaseSubscribers.Codeunit.al (main)
    date: null
    commit: f18567dc08e2bd162bf192e1da4d714b57eb099f
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations:
    - localization/es
  videos: []
  posts: []
  guidelines: []
  changes:
    - change/bcapps/9643
    - change/bcapps/9434
object_type: codeunit
object_id: 7000126
name: SII Purchase Subscribers
namespace: Microsoft.EServices.EDocument
app: Base Application
extends: null
first_version: "30"
last_version: "30"
present_in:
  - "30"
changed_in: []
source_major: "30"
obsolete: null
countries: []
ms_search_form_ids: []
country: ES
counts:
  fields: 0
  procedures: 14
  events: 0
  subscribers: 9
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
---

# Codeunit 7000126 "SII Purchase Subscribers" (ES)

> Codeunit 7000126 "SII Purchase Subscribers" (ES) in the ES country layer (Microsoft.EServices.EDocument). 9 event subscribers. Introduced in BC30.

ES country layer · Microsoft.EServices.EDocument · BC30 · [source at f18567dc](https://github.com/microsoft/BCApps/blob/f18567dc08e2bd162bf192e1da4d714b57eb099f/src/Layers/ES/BaseApp/Local/SII/Purchases/Document/SIIPurchaseSubscribers.Codeunit.al) · facts from BC30

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

## Event subscriptions

- PurchHeaderOnAfterValidatePayToVendorNo subscribes to Table "Purchase Header" OnAfterValidateEvent (Pay-to Vendor No.)
- PurchHeaderOnAfterInitRecord subscribes to Table "Purchase Header" OnAfterInitRecord
- PurchLineOnAfterValidateVATProdPostingGroup subscribes to Table "Purchase Line" OnAfterValidateEvent (VAT Prod. Posting Group)
- PurchHeaderOnAfterValidateVendorInvoiceNo subscribes to Table "Purchase Header" OnAfterValidateEvent (Vendor Invoice No.)
- PurchHeaderOnAfterValidateVendorCrMemoNo subscribes to Table "Purchase Header" OnAfterValidateEvent (Vendor Cr. Memo No.)
- OnAfterCopyVendLedgerEntryFromGenJnlLine subscribes to Table "Vendor Ledger Entry" OnAfterCopyVendLedgerEntryFromGenJnlLine
- PurchCrMemoHeaderOnAfterRecordChanged subscribes to Page "Posted Purch. Cr.Memo - Update" OnAfterRecordChanged
- OnBeforePurchInvHeaderModify subscribes to Codeunit "Purch. Inv. Header - Edit" OnBeforePurchInvHeaderModify
- OnRunOnAfterPurchInvHeaderEdit subscribes to Codeunit "Purch. Inv. Header - Edit" OnRunOnAfterPurchInvHeaderEdit

## Procedures

5 local procedures, no public ones.

## Recent changes

- 2026-07-23 [#9643 Update SII subscribers SkipMissingPermissions](../../changes/bcapps/9643.md) (main, BC30, fix)
- 2026-07-17 [#9434 [Main]-"Factura Duplicada" error message appears under SII History if you use the same Vendor Invoice No. for the same Vendor (VAT Registration No.) in different documents in the Spanish version.](../../changes/bcapps/9434.md) (main, BC30, fix)

## Across versions

- Present in: BC30
- 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: "SII Purchase Subscribers")`, 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.
