Codeunit 11042 "ZUGFeRD Export Context" (DE)
DE country layer · Microsoft.eServices.EDocument.Formats
Across versions
- BC23-29not present
- BC30present
DE country layer · Microsoft.eServices.EDocument.Formats · BC30 · source at f18567dc · facts from BC30
An object of the DE localization, not part of W1.
Properties
| Property | Value |
|---|---|
| Access | Public |
Events published
OnSetEDocumentService(NewEDocumentService: Record "E-Document Service")(internal)OnHasContext(var Result: Boolean)(internal)OnGetEDocumentService(var EDocumentService: Record "E-Document Service")(internal)
Event subscriptions
- SubOnSetEDocumentService subscribes to Codeunit “ZUGFeRD Export Context” OnSetEDocumentService
- SubOnHasContext subscribes to Codeunit “ZUGFeRD Export Context” OnHasContext
- SubOnGetEDocumentService subscribes to Codeunit “ZUGFeRD Export Context” OnGetEDocumentService
Procedures
Start(): Binds this instance as the active ZUGFeRD export context for the current call stack and resets any captured service. Pair with .Stop(): Unbinds this instance from the current session’s subscriber chain and clears the captured service so later operations in the same session do not see a stale value.SetEDocumentService(NewEDocumentService: Record "E-Document Service"): Publishes the triggering E-Document Service to the active bound context instance. Only meaningful between and ; when no instance is bound the publish has no observable effect.HasContext(): Boolean: Returns whether an instance is bound on the active session and call stack AND a non-blank E-Document Service was pushed into it. Report extensions gate their service read on this, so a plain print, a context that was started but never set, and a blank push all leave the legacy FindLast lookup in “Ex…GetEDocumentService(var EDocumentService: Record "E-Document Service"): Returns the E-Document Service pushed by the format via on the active bound instance, or a blank record when no context is bound.
Recent changes
- 2026-09-29 #9642 [Bug]: E-Documents for Germany - FindEDocumentService always selects last matching service, ignoring which service triggered the export (main, BC30, fix, added)
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: "ZUGFeRD Export Context"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.
A DE country object, not part of W1: the default corpus does not have it; bcatlas_list_countries shows which countries the atlas has.