codeunitIntegration & APIsofficial - Microsoftderived - from the source, no model text

Codeunit 11038 "E-Document DE Helper" (DE)

DE country layer · Microsoft.eServices.EDocument.Formats

Across versions

  1. BC23-28not present
  2. BC29-30present

DE country layer · Microsoft.eServices.EDocument.Formats · BC29-30 · source at ea08af5e · facts from BC29

An object of the DE localization, not part of W1.

Properties

Property Value
Access Public

Procedures

  • IsValidRoutingNo(RoutingNo: Text[50]): Boolean: Checks whether the given routing number (Leitweg-ID) is structurally valid.
  • HasRoutingNo(SourceDocumentHeader: RecordRef): Boolean: Determines whether the source document has a routing number (Leitweg-ID) available. First checks the document’s Buyer Reference field for a valid routing number, then falls back to the bill-to customer’s E-Invoice Routing No.
  • ValidateRoutingNo(RoutingNo: Text[50]): Validates the structure of a routing number (Leitweg-ID) and raises an error if it is invalid. Validates the overall length, segment count, coarse routing (Grobadressierung), optional fine routing (Feinadressierung), and check digit (Prüfziffer) using Mod 97-10.
  • GetBuyerReferenceValue(DocumentBuyerReference: Text[100]; BillToCustomerNo: Code[20]; YourReference: Text[35]): Text (internal): Resolves the Buyer Reference (BT-10) value using a priority chain. Priority 1: Document Buyer Reference field — accepted only if it is a structurally valid Leitweg-ID. Priority 2: Bill-to Customer E-Invoice Routing No. Priority 3a: Document Buyer Reference if explicitly set but not a valid Leitweg-I…
  • CheckBuyerReferenceMandatory(EDocumentService: Record "E-Document Service"; SourceDocumentHeader: RecordRef) (internal): Checks whether a Buyer Reference (BT-10) can be resolved for the given document and raises an error if not. Only runs when the E-Document Service has “Buyer Reference Mandatory” enabled and the document is a supported type. Uses GetBuyerReferenceValue to resolve the reference via the same priority c…
  • CheckSellerContactMandatory(SourceDocumentHeader: RecordRef) (internal): Checks that the seller contact (BG-6) can be fully supplied from the source that the export uses, so that BR-DE-2 (group present), BR-DE-5 (BT-41 name), BR-DE-6 (BT-42 telephone) and BR-DE-7 (BT-43 e-mail) are satisfied. When a salesperson is assigned to the document, the salesperson supplies all th…
  • IsCharge(SignedAmount: Decimal): Boolean (internal): Tells whether a signed amount is reported as a charge or as an allowance.
  • GetReportedAmount(SignedAmount: Decimal): Decimal (internal): Gets the amount to report for a signed allowance/charge amount. The e-document formats report allowances with a positive amount and distinguish them from charges through the charge indicator.

Plus 10 local procedures.

Recent changes

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: "E-Document DE Helper"), 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.

Evidence 1 sources