Codeunit 10756 "SII Management" (ES)
ES country layer · Microsoft.EServices.EDocument
Across versions
- BC23-28not present
- BC29-30present
ES country layer · Microsoft.EServices.EDocument · BC29-30 · source at ea08af5e · facts from BC29
An object of the ES localization, not part of W1.
Events published
OnBeforeGetNoTaxableSalesAmount(var NoTaxableEntry: Record "No Taxable Entry"; SourceNo: Code[20]; DocumentType: Option; DocumentNo: Code[20]; PostingDate: Date; IsService: Boolean; UseNoTaxableType: Boolean; IsLocalRule: Boolean; var NoTaxableAmount: Decimal; var Result: Boolean; var IsHandled: Boolean)(integration)OnGetTaxPeriodOnElse(var TaxPeriod: Text; PostingDate: Date)(integration)
Event subscriptions
- OnSalesInvoicePageOpen subscribes to Page “Sales Invoice” OnOpenPageEvent
- OnPurchInvoicePageOpen subscribes to Page “Purchase Invoice” OnOpenPageEvent
- OnSalesCreditMemoPageOpen subscribes to Page “Sales Credit Memo” OnOpenPageEvent
- OnPurchCreditMemoPageOpen subscribes to Page “Purchase Credit Memo” OnOpenPageEvent
- HandleRegisterBusinessSetup subscribes to Codeunit “Guided Experience” OnRegisterManualSetup
Procedures
IsSIISetupEnabled(): BooleanIsShowAdvancedActionsEnabled(): Boolean(internal)OpenSIIVATSetup(SetupNotification: Notification)DeactivateSIISetupNotification(var SetupNotification: Notification)GetSIIStyle(SIIState: Option Pending,Incorrect,Accepted,"Accepted With Errors","Communication Error",Failed,"Not Supported"): TextGetSalesIDType(CustNo: Code[20]; CorrectionType: Option; CorrDocNo: Code[20]): IntegerGetPurchIDType(VendNo: Code[20]; CorrectionType: Option; CorrDocNo: Code[20]): IntegerGetIDType(CountryCode: Code[20]; VATRegNo: Code[20]; IsNotInAEAT: Boolean; IsIntraCommunity: Boolean): IntegerGetVendFromLedgEntryByGLSetup(VendorLedgerEntry: Record "Vendor Ledger Entry"): Code[20]GetCustFromLedgEntryByGLSetup(CustLedgerEntry: Record "Cust. Ledger Entry"): Code[20]GetNoTaxablePurchAmount(var NoTaxableAmount: Decimal; SourceNo: Code[20]; DocumentType: Option; DocumentNo: Code[20]; PostingDate: Date): BooleanGetNoTaxablePurchAmount(var NoTaxableAmount: Decimal; SourceNo: Code[20]; DocumentType: Option; DocumentNo: Code[20]; PostingDate: Date; IgnoreInSII: Boolean): BooleanGetNoTaxableSalesAmount(var NoTaxableAmount: Decimal; SourceNo: Code[20]; DocumentType: Option; DocumentNo: Code[20]; PostingDate: Date; IsService: Boolean; UseNoTaxableType: Boolean; IsLocalRule: Boolean): BooleanGetNoTaxableSalesAmount(var NoTaxableAmount: Decimal; SourceNo: Code[20]; DocumentType: Option; DocumentNo: Code[20]; PostingDate: Date; IsService: Boolean; UseNoTaxableType: Boolean; IsLocalRule: Boolean; IgnoreInSII: Boolean): BooleanGetBaseImponibleACosteRegimeCode(): TextSIIStateDrilldown(var SIIDocUploadState: Record "SII Doc. Upload State")IsVATEntryCashFlowBased(VATEntry: Record "VAT Entry"): BooleanIsDetailedLedgerCashFlowBased(DtldLedgerEntryRecRef: RecordRef): BooleanIsLedgerCashFlowBased(LedgerEntryRecRef: RecordRef): BooleanIsIntracommunity(CountryRegionCode: Code[10]): BooleanFindVatEntriesFromLedger(LedgerEntryRecRef: RecordRef; var VATEntry: Record "VAT Entry"): BooleanFindNoTaxableEntriesFromLedger(LedgerEntryRecRef: RecordRef; var NoTaxableEntry: Record "No Taxable Entry"): BooleanFindOriginalLedgerFromDetailedPaymentLedger(PaymentDetailedLedgerEntryRecRef: RecordRef; var SalesDocLedgerEntryRecRefOut: RecordRef)FindOriginalLedgerFromPaymentLedger(PaymentLedgerEntryRecRef: RecordRef; var SalesDocLedgerEntryRecRefOut: RecordRef)FindVatEntriesReferringToDocLedger(InvoiceDocLedgerEntryRecRef: RecordRef; var PaymentVATEntry: Record "VAT Entry"): BooleanFindDetailedPaymentApplicationLedgerFromLedger(PaymentDocLedgerEntryRecRef: RecordRef; var PaymentDetailedDocLedgerEntryRecRefOut: RecordRef; ApplicationDate: Date; DocNumber: Code[20]): BooleanFindDetailedLedgerFromVatEntry(var InvoiceDetailedDocLedgerEntryRecRefOut: RecordRef; InvoiceDocVATEntry: Record "VAT Entry"): BooleanFindLedgerFromVatEntry(var InvoiceDocLedgerEntryRecRefOut: RecordRef; InvoiceDocVATEntry: Record "VAT Entry")FindPaymentDetailedCustomerLedgerEntries(var PaymentDetailedCustLedgEntry: Record "Detailed Cust. Ledg. Entry"; CustLedgerEntry: Record "Cust. Ledger Entry"): BooleanFindPaymentDetailedVendorLedgerEntries(var PaymentDetailedVendorLedgEntry: Record "Detailed Vendor Ledg. Entry"; VendorLedgerEntry: Record "Vendor Ledger Entry"): BooleanNoTaxableEntriesExistPurchase(var NoTaxableEntry: Record "No Taxable Entry"; SourceNo: Code[20]; DocumentType: Option; DocumentNo: Code[20]; PostingDate: Date): BooleanNoTaxableEntriesExistPurchase(var NoTaxableEntry: Record "No Taxable Entry"; SourceNo: Code[20]; DocumentType: Option; DocumentNo: Code[20]; PostingDate: Date; IgnoreInSII: Boolean): BooleanNoTaxableEntriesExistSales(var NoTaxableEntry: Record "No Taxable Entry"; SourceNo: Code[20]; DocumentType: Option; DocumentNo: Code[20]; PostingDate: Date; IsService: Boolean; UseNoTaxableType: Boolean; IsLocalRule: Boolean): BooleanNoTaxableEntriesExistSales(var NoTaxableEntry: Record "No Taxable Entry"; SourceNo: Code[20]; DocumentType: Option; DocumentNo: Code[20]; PostingDate: Date; IsService: Boolean; UseNoTaxableType: Boolean; IsLocalRule: Boolean; IgnoreInSII: Boolean): BooleanDoesPaymentDetailedLedgerCloseInvoice(PaymentDetailedLedgerEntryRecRef: RecordRef; IsCustomerPayment: Boolean): BooleanDoesPaymentLedgerCloseInvoice(PaymentLedgerEntryRecRef: RecordRef; IsCustomerPayment: Boolean): BooleanCountryIsLocal(CountryCode: Code[20]): BooleanCountryAndVATRegNoAreLocal(CountryCode: Code[20]; VATRegNo: Code[20]): BooleanIsDomesticCustomer(Customer: Record Customer): BooleanCustomerIsIntraCommunity(CustomerNo: Code[20]): BooleanVendorIsIntraCommunity(VendorNo: Code[20]): BooleanCombineOperationDescription(OperationDescription1: Text[250]; OperationDescription2: Text[250]; var Result: Text[500])SplitOperationDescription(OperationDescription: Text[500]; var Part1: Text[250]; var Part2: Text[250])CharIsCapitalLetter(Char: Char): BooleanIsAllowedSalesInvType(InvType: Option): BooleanIsAllowedServInvType(InvType: Option): Boolean(obsolete 27.0: Moved to codeunit Serv. SII Management)Run347DeclarationToGenerateCollectionsInCash()UpdateSIIInfoInSalesDoc(var SalesHeader: Record "Sales Header")UpdateSIIInfoInServiceDoc(var ServiceHeader: Record Microsoft.Service.Document."Service Header")(obsolete 27.0: Moved to codeunit Serv. SII Management)GetSalesSpecialSchemeCode(BillToCustomerNo: Code[20]; VATCountryRegionCode: Code[10]): Enum "SII Sales Special Scheme Code"UpdateSIIInfoInPurchDoc(var PurchaseHeader: Record "Purchase Header")MarkAsAccepted(var SIIHistory: Record "SII History")MarkDocumentAsAccepted(DocumentSource: Enum "SII Doc. Upload State Document Source"; DocumentType: Enum "SII Doc. Upload State Document Type"; DocumentNo: Code[20]; var FeedbackMessage: Text): Boolean(internal)MarkAsNotAccepted(var SIIHistory: Record "SII History")CountryIsNorthernIreland(CountryCode: Code[20]): BooleanGetTaxPeriod(PostingDate: Date): Text
Plus 8 local procedures.
Triggers
OnRun
Recent changes
- 2026-09-08 #11152 [29.x]Mark as Accepted in posted documents for Spanish SII (releases/29.x, BC29, feature)
- 2026-08-28 #10735 [Slice-631381] Add Mark as Accepted in posted documents for Spanish SII (main, BC30, feature)
- 2026-07-23 #9643 Update SII subscribers SkipMissingPermissions (main, BC30, fix)
Deprecations
- procedure IsAllowedServInvType: Pending 27.0 (#if not CLEAN27), “Moved to codeunit Serv. SII Management”
- procedure UpdateSIIInfoInServiceDoc: Pending 27.0 (#if not CLEAN27), “Moved to codeunit Serv. SII Management”
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 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.