---
id: object/codeunit/1605
type: object
title: Codeunit 1605 "PEPPOL Management"
summary: Codeunit 1605 "PEPPOL Management" in Base Application (Microsoft.Sales.Peppol). 89 public procedures, 38 events. Present since at least BC23, still in BC30, changed in BC24-29. Obsolete (Pending since 29.0).
tier: official
language: en
tags:
  - codeunit
  - base application
versions:
  introduced: null
  last_changed: "29"
  deprecated: "29.0"
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-10-11T00:31:51.816Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: c8b0f156263416a7d4f6d75d7a2757dbaace573dfea72eba46b0dd8b39a4e0dd
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Sales/Peppol/PEPPOLManagement.Codeunit.al
    title: src/Layers/W1/BaseApp/Sales/Peppol/PEPPOLManagement.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations:
    - localization/be
    - localization/no
  videos: []
  posts: []
  guidelines: []
  changes:
    - change/bcapps/11023
object_type: codeunit
object_id: 1605
name: PEPPOL Management
namespace: Microsoft.Sales.Peppol
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
source_major: "29"
obsolete:
  state: Pending
  tag: "29.0"
  reason: Replaced by PEPPOL App
countries:
  - be
  - "no"
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 155
  events: 38
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 4
  called_by: 5
  implements: 0
---

# Codeunit 1605 "PEPPOL Management"

> Codeunit 1605 "PEPPOL Management" in Base Application (Microsoft.Sales.Peppol). 89 public procedures, 38 events. Present since at least BC23, still in BC30, changed in BC24-29. Obsolete (Pending since 29.0).

Base Application · Microsoft.Sales.Peppol · BC23-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Sales/Peppol/PEPPOLManagement.Codeunit.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| ObsoleteState | Pending |
| ObsoleteTag | 29.0 |
| ObsoleteReason | Replaced by PEPPOL App |

## Events published

- `OnAfterFindNextSalesInvoiceLineRec(var SalesInvoiceLine: Record "Sales Invoice Line"; var SalesLine: Record "Sales Line"; var Found: Boolean)` (integration): Raised after finding the next sales invoice line record during PEPPOL export iteration.
- `OnAfterFindNextSalesInvoiceRec(var SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesHeader: Record "Sales Header"; Position: Integer; var Found: Boolean)` (integration): Raised after finding the next sales invoice header record during PEPPOL export iteration.
- `OnAfterFindNextSalesCreditMemoRec(var SalesCrMemoHeader: Record "Sales Cr.Memo Header"; var SalesHeader: Record "Sales Header"; Position: Integer; var Found: Boolean)` (integration): Raised after finding the next sales credit memo header record during PEPPOL export iteration.
- `OnAfterFindNextSalesCrMemoLineRec(var SalesCrMemoLine: Record "Sales Cr.Memo Line"; var SalesLine: Record "Sales Line"; Position: Integer; var Found: Boolean)` (integration): Raised after finding the next sales credit memo line record during PEPPOL export iteration.
- `OnAfterGetAccountingCustomerPartyInfoByFormat(SalesHeader: Record "Sales Header"; var CustomerEndpointID: Text; var CustomerSchemeID: Text; var CustomerPartyIdentificationID: Text; var CustomerPartyIDSchemeID: Text; var CustomerName: Text; IsBISBilling: Boolean)` (integration): Raised after retrieving accounting customer party information for PEPPOL export.
- `OnAfterGetAccountingCustomerPartyLegalEntityByFormat(SalesHeader: Record "Sales Header"; var CustPartyLegalEntityRegName: Text; var CustPartyLegalEntityCompanyID: Text; var CustPartyLegalEntityIDSchemeID: Text; IsBISBilling: Boolean)` (integration): Raised after retrieving accounting customer party legal entity information for PEPPOL export.
- `OnAfterGetAccountingSupplierPartyContact(SalesHeader: Record "Sales Header"; var ContactID: Text; var ContactName: Text; var Telephone: Text; var Telefax: Text; var ElectronicMail: Text)` (integration): Raised after retrieving accounting supplier party contact information for PEPPOL export.
- `OnAfterGetAccountingCustomerPartyContact(SalesHeader: Record "Sales Header"; Customer: Record Customer; var CustContactID: Text; var CustContactName: Text; var CustContactTelephone: Text; var CustContactTelefax: Text; var CustContactElectronicMail: Text)` (integration): Raised after retrieving accounting customer party contact information for PEPPOL export.
- `OnAfterGetAdditionalDocRefInfo(var AdditionalDocumentReferenceID: Text; var AdditionalDocRefDocumentType: Text; var URI: Text; var MimeCode: Text; var EmbeddedDocumentBinaryObject: Text; SalesHeader: Record "Sales Header"; ProcessedDocType: Option Sale,Service; var DocumentAttachments: Record "Document Attachment"; var FileName: Text)` (integration): Raised after retrieving additional document reference information for PEPPOL export.
- `OnAfterGetGeneralInfo(SalesHeader: Record "Sales Header"; var ID: Text; var IssueDate: Text; var InvoiceTypeCode: Text; var Note: Text; var TaxPointDate: Text; var DocumentCurrencyCode: Text; var AccountingCost: Text)` (integration): Raised after retrieving general invoice information for PEPPOL BIS export.
- `OnAfterGetGeneralInfoProcedure(SalesHeader: Record "Sales Header"; var ID: Text; var IssueDate: Text; var InvoiceTypeCode: Text; var Note: Text; var TaxPointDate: Text; var DocumentCurrencyCode: Text; var AccountingCost: Text)` (integration): Raised after retrieving general invoice information for PEPPOL export.
- `OnAfterGetGLNDeliveryInfo(SalesHeader: Record "Sales Header"; var ActualDeliveryDate: Text; var DeliveryID: Text; var DeliveryIDSchemeID: Text)` (integration): Raised after retrieving GLN delivery information for PEPPOL export.
- `OnAfterGetDeliveryPartyName(SalesHeader: Record "Sales Header"; var DeliveryPartyNameValue: Text)` (integration): Raised after retrieving delivery party name for PEPPOL export.
- `OnAfterGetLegalMonetaryInfoWithInvRounding(SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary; var VATAmtLine: Record "VAT Amount Line"; var LineExtensionAmount: Text; var TaxExclusiveAmount: Text; var TaxInclusiveAmount: Text; var AllowanceTotalAmount: Text; var ChargeTotalAmount: Text; var PrepaidAmount: Text; var PayableRoundingAmount: Text; var PayableAmount: Text)` (integration): Raised after retrieving legal monetary information including invoice rounding for PEPPOL export.
- `OnAfterGetLineGeneralInfo(SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; var InvoiceLineID: Text; var InvoiceLineNote: Text; var InvoicedQuantity: Text; var InvoiceLineExtensionAmount: Text; var InvoiceLineAccountingCost: Text)` (integration): Raised after retrieving general line information for PEPPOL export.
- `OnAfterGetLinePriceInfo(SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; var InvoiceLinePriceAmount: Text; var BaseQuantity: Text; var UnitCode: Text)` (integration): Raised after retrieving line price information for PEPPOL export.
- `OnAfterGetOrderReferenceInfo(SalesHeader: Record "Sales Header"; var OrderReferenceID: Text)` (integration): Raised after retrieving order reference information for PEPPOL export.
- `OnAfterGetPaymentMeansInfo(SalesHeader: Record "Sales Header"; var PaymentMeansCode: Text; var PaymentMeansListID: Text; var PaymentDueDate: Text; var PaymentChannelCode: Text; var PaymentID: Text; var PrimaryAccountNumberID: Text; var NetworkID: Text)` (integration): Raised after retrieving payment means information for PEPPOL export.
- `OnAfterGetPaymentMeansPayeeFinancialAcc(CompanyInfo: Record "Company Information"; var PayeeFinancialAccountID: Text; var FinancialInstitutionBranchID: Text)` (integration): Raised after retrieving payee financial account information for PEPPOL export.
- `OnAfterGetPaymentMeansPayeeFinancialAccBIS(SalesHeader: Record "Sales Header"; var PayeeFinancialAccountID: Text; var FinancialInstitutionBranchID: Text)` (integration): Raised after retrieving payee financial account information for PEPPOL BIS export.
- `OnAfterGetTaxTotalInfo(SalesHeader: Record "Sales Header"; var VATAmtLine: Record "VAT Amount Line"; var TaxAmount: Text)` (integration): Raised after retrieving tax total information for PEPPOL export.
- `OnAfterGetTaxTotalInfoLCY(SalesHeader: Record "Sales Header"; var TaxAmount: Text; var TaxCurrencyID: Text; var TaxTotalCurrencyID: Text)` (integration): Raised after retrieving tax total information in local currency for PEPPOL export.
- `OnAfterGetTaxSubtotalInfo(VATAmtLine: Record "VAT Amount Line"; SalesHeader: Record "Sales Header"; var TaxableAmount: Text; var SubtotalTaxAmount: Text; var TransactionCurrencyTaxAmount: Text; var TaxTotalTaxCategoryID: Text; var schemeID: Text; var TaxCategoryPercent: Text; var TaxTotalTaxSchemeID: Text)` (integration): Raised after retrieving tax subtotal information for PEPPOL export.
- `OnGetTotalsOnBeforeInsertVATAmtLine(SalesLine: Record "Sales Line"; var VATAmtLine: Record "VAT Amount Line"; VATPostingSetup: Record "VAT Posting Setup"; var IsHandled: Boolean)` (integration): Raised before inserting a VAT amount line when calculating totals.
- `OnAfterGetLineItemInfo(SalesLine: Record "Sales Line"; var Description: Text; var Name: Text; var SellersItemIdentificationID: Text; var StandardItemIdentificationID: Text; var StdItemIdIDSchemeID: Text; var OriginCountryIdCode: Text; var OriginCountryIdCodeListID: Text)` (integration): Raised after retrieving line item information for PEPPOL export.
- `OnAfterGetContractDocRefInfo(SalesHeader: Record "Sales Header"; var ContractDocumentReferenceID: Text; var DocumentTypeCode: Text; var ContractRefDocTypeCodeListID: Text; var DocumentType: Text)` (integration): Raised after retrieving contract document reference information for PEPPOL export.
- `OnAfterGetAccountingSupplierPartyLegalEntityByFormat(var PartyLegalEntityRegName: Text; var PartyLegalEntityCompanyID: Text; var PartyLegalEntitySchemeID: Text; var SupplierRegAddrCityName: Text; var SupplierRegAddrCountryIdCode: Text; var SupplRegAddrCountryIdListId: Text; IsBISBilling: Boolean)` (integration): Raised after retrieving accounting supplier party legal entity information for PEPPOL export.
- `OnAfterRecRefTransferFieldsOnTransferHeaderToSalesHeader(FromRecord: Variant; var ToRecord: Variant)` (integration): Raised after transferring fields from a posted document header to a sales header record.
- `OnAfterRecRefTransferFieldsOnTransferLineToSalesLine(FromRecord: Variant; var ToRecord: Variant)` (integration): Raised after transferring fields from a posted document line to a sales line record.
- `OnAfterGetAccountingSupplierPartyInfoByFormat(var SupplierEndpointID: Text; var SupplierSchemeID: Text; var SupplierName: Text; IsBISBilling: Boolean)` (integration): Raised after retrieving accounting supplier party information for PEPPOL export.
- `OnAfterGetAccountingSupplierPartyPostalAddr(SalesHeader: Record "Sales Header"; CompanyInformation: Record "Company Information"; var StreetName: Text; var SupplierAdditionalStreetName: Text; var CityName: Text; var PostalZone: Text; var CountrySubentity: Text; var IdentificationCode: Text; var ListID: Text)` (integration): Raised after retrieving the accounting supplier party postal address for PEPPOL export.
- `OnAfterGetAccountingSupplierPartyIdentificationID(SalesHeader: Record "Sales Header"; var PartyIdentificationID: Text)` (integration): Raised after retrieving accounting supplier party identification ID for PEPPOL export.
- `OnAfterGetBuyerReference(SalesHeader: Record "Sales Header"; var BuyerReference: Text)` (integration): Raised after retrieving buyer reference for PEPPOL export.
- `OnBeforeGeneratePDFAttachmentAsAdditionalDocRef(SalesHeader: Record "Sales Header"; var AdditionalDocumentReferenceID: Text; var AdditionalDocRefDocumentType: Text; var URI: Text; var MimeCode: Text; var Filename: Text; var EmbeddedDocumentBinaryObject: Text; var IsHandled: Boolean)` (integration): Raised before generating a PDF attachment as an additional document reference.
- `OnAfterRecRefTransferHeaderToSalesInvoiceHeader(FromRecord: Variant; var ToRecord: Variant)` (integration): Raised after transferring fields from a posted document header to a sales invoice header record.
- `OnAfterRecRefTransferHeaderToSalesCrMemoHeader(FromRecord: Variant; var ToRecord: Variant)` (integration): Raised after transferring fields from a posted document header to a sales credit memo header record.
- `OnAfterRecRefTransferFieldsOnTransferLineToSalesInvoiceLine(FromRecord: Variant; var ToRecord: Variant)` (integration): Raised after transferring fields from a posted document line to a sales invoice line record.
- `OnAfterRecRefTransferFieldsOnTransferLineToSalesCrMemoLine(FromRecord: Variant; var ToRecord: Variant)` (integration): Raised after transferring fields from a posted document line to a sales credit memo line record.

## Procedures

- `GetGeneralInfo(SalesHeader: Record "Sales Header"; var ID: Text; var IssueDate: Text; var InvoiceTypeCode: Text; var InvoiceTypeCodeListID: Text; var Note: Text; var TaxPointDate: Text; var DocumentCurrencyCode: Text; var DocumentCurrencyCodeListID: Text; var TaxCurrencyCode: Text; var TaxCurrencyCodeListID: Text; var AccountingCost: Text)`: Retrieves general invoice information from a sales header for PEPPOL export.
- `GetGeneralInfoBIS(SalesHeader: Record "Sales Header"; var ID: Text; var IssueDate: Text; var InvoiceTypeCode: Text; var Note: Text; var TaxPointDate: Text; var DocumentCurrencyCode: Text; var AccountingCost: Text)`: Retrieves general invoice information from a sales header for PEPPOL BIS export.
- `GetInvoicePeriodInfo(var StartDate: Text; var EndDate: Text)`: Retrieves the invoice period start and end dates.
- `GetOrderReferenceInfo(SalesHeader: Record "Sales Header"; var OrderReferenceID: Text)`: Retrieves the order reference information from a sales header.
- `GetOrderReferenceInfoBIS(SalesHeader: Record "Sales Header"; var OrderReferenceID: Text)`: Retrieves the order reference information from a sales header for BIS format, using document number as fallback.
- `GetContractDocRefInfo(SalesHeader: Record "Sales Header"; var ContractDocumentReferenceID: Text; var DocumentTypeCode: Text; var ContractRefDocTypeCodeListID: Text; var DocumentType: Text)`: Retrieves the contract document reference information from a sales header.
- `GetAdditionalDocRefInfo(AttachmentNumber: Integer; var DocumentAttachments: Record "Document Attachment"; Salesheader: Record "Sales Header"; var AdditionalDocumentReferenceID: Text; var AdditionalDocRefDocumentType: Text; var URI: Text; var Filename: Text; var MimeCode: Text; var EmbeddedDocumentBinaryObject: Text; NewProcessedDocType: Option Sale,Service)`: Retrieves document attachment information for PEPPOL export including Base64 encoded content.
- `GetAdditionalDocRefInfo(Salesheader: Record "Sales Header"; var AdditionalDocumentReferenceID: Text; var AdditionalDocRefDocumentType: Text; var URI: Text; var MimeCode: Text; var EmbeddedDocumentBinaryObject: Text; NewProcessedDocType: Option Sale,Service)`: Retrieves additional document reference information for PEPPOL export.
- `GetBuyerReference(SalesHeader: Record "Sales Header"): Text`: Retrieves the buyer reference from a sales header.
- `GeneratePDFAttachmentAsAdditionalDocRef(SalesHeader: Record "Sales Header"; var AdditionalDocumentReferenceID: Text; var AdditionalDocRefDocumentType: Text; var URI: Text; var Filename: Text; var MimeCode: Text; var EmbeddedDocumentBinaryObject: Text)`: Generates a PDF attachment from report set in Report Selections.
- `GetAccountingSupplierPartyInfo(var SupplierEndpointID: Text; var SupplierSchemeID: Text; var SupplierName: Text)`: Retrieves the accounting supplier party information for PEPPOL export.
- `GetAccountingSupplierPartyInfoBIS(var SupplierEndpointID: Text; var SupplierSchemeID: Text; var SupplierName: Text)`: Retrieves the accounting supplier party information for PEPPOL BIS export.
- `GetAccountingSupplierPartyPostalAddr(SalesHeader: Record "Sales Header"; var StreetName: Text; var SupplierAdditionalStreetName: Text; var CityName: Text; var PostalZone: Text; var CountrySubentity: Text; var IdentificationCode: Text; var ListID: Text)`: Retrieves the supplier postal address information for PEPPOL export.
- `GetAccountingSupplierPartyTaxScheme(var CompanyID: Text; var CompanyIDSchemeID: Text; var TaxSchemeID: Text)`: Retrieves the supplier tax scheme information for PEPPOL export.
- `GetAccountingSupplierPartyTaxSchemeBIS(var VATAmtLine: Record "VAT Amount Line"; var CompanyID: Text; var CompanyIDSchemeID: Text; var TaxSchemeID: Text)`: Retrieves the supplier tax scheme information for PEPPOL BIS export, excluding outside scope VAT.
- `GetAccountingSupplierPartyLegalEntity(var PartyLegalEntityRegName: Text; var PartyLegalEntityCompanyID: Text; var PartyLegalEntitySchemeID: Text; var SupplierRegAddrCityName: Text; var SupplierRegAddrCountryIdCode: Text; var SupplRegAddrCountryIdListId: Text)`: Retrieves the supplier legal entity information for PEPPOL export.
- `GetAccountingSupplierPartyLegalEntityBIS(var PartyLegalEntityRegName: Text; var PartyLegalEntityCompanyID: Text; var PartyLegalEntitySchemeID: Text; var SupplierRegAddrCityName: Text; var SupplierRegAddrCountryIdCode: Text; var SupplRegAddrCountryIdListId: Text)`: Retrieves the supplier legal entity information for PEPPOL BIS export.
- `GetAccountingSupplierPartyContact(SalesHeader: Record "Sales Header"; var ContactID: Text; var ContactName: Text; var Telephone: Text; var Telefax: Text; var ElectronicMail: Text)`: Retrieves the supplier party contact information from the salesperson assigned to the document.
- `GetAccountingSupplierPartyIdentificationID(SalesHeader: Record "Sales Header"; var PartyIdentificationID: Text)`: Retrieves the supplier party identification ID.
- `GetAccountingCustomerPartyInfo(SalesHeader: Record "Sales Header"; var CustomerEndpointID: Text; var CustomerSchemeID: Text; var CustomerPartyIdentificationID: Text; var CustomerPartyIDSchemeID: Text; var CustomerName: Text)`: Retrieves the accounting customer party information for PEPPOL export.
- `GetAccountingCustomerPartyInfoBIS(SalesHeader: Record "Sales Header"; var CustomerEndpointID: Text; var CustomerSchemeID: Text; var CustomerPartyIdentificationID: Text; var CustomerPartyIDSchemeID: Text; var CustomerName: Text)`: Retrieves the accounting customer party information for PEPPOL BIS export.
- `GetAccountingCustomerPartyPostalAddr(SalesHeader: Record "Sales Header"; var CustomerStreetName: Text; var CustomerAdditionalStreetName: Text; var CustomerCityName: Text; var CustomerPostalZone: Text; var CustomerCountrySubentity: Text; var CustomerIdentificationCode: Text; var CustomerListID: Text)`: Retrieves the customer postal address information from the bill-to address.
- `GetAccountingCustomerPartyTaxScheme(SalesHeader: Record "Sales Header"; var CustPartyTaxSchemeCompanyID: Text; var CustPartyTaxSchemeCompIDSchID: Text; var CustTaxSchemeID: Text)`: Retrieves the customer tax scheme information for PEPPOL export.
- `GetAccountingCustomerPartyTaxSchemeBIS(SalesHeader: Record "Sales Header"; var CustPartyTaxSchemeCompanyID: Text; var CustPartyTaxSchemeCompIDSchID: Text; var CustTaxSchemeID: Text)`: Retrieves the customer tax scheme information for PEPPOL BIS export.
- `GetAccountingCustomerPartyTaxSchemeBIS30(SalesHeader: Record "Sales Header"; var CustPartyTaxSchemeCompanyID: Text; var CustPartyTaxSchemeCompIDSchID: Text; var CustTaxSchemeID: Text; var TempVATAmountLine: Record "VAT Amount Line" temporary)`: Gets the accounting customer party tax scheme fields values
- `GetAccountingCustomerPartyLegalEntity(SalesHeader: Record "Sales Header"; var CustPartyLegalEntityRegName: Text; var CustPartyLegalEntityCompanyID: Text; var CustPartyLegalEntityIDSchemeID: Text)`: Retrieves the customer legal entity information for PEPPOL export.
- `GetAccountingCustomerPartyLegalEntityBIS(SalesHeader: Record "Sales Header"; var CustPartyLegalEntityRegName: Text; var CustPartyLegalEntityCompanyID: Text; var CustPartyLegalEntityIDSchemeID: Text)`: Retrieves the customer legal entity information for PEPPOL BIS export.
- `GetAccountingCustomerPartyContact(SalesHeader: Record "Sales Header"; var CustContactID: Text; var CustContactName: Text; var CustContactTelephone: Text; var CustContactTelefax: Text; var CustContactElectronicMail: Text)`: Retrieves the customer party contact information for PEPPOL export.
- `GetPayeePartyInfo(var PayeePartyID: Text; var PayeePartyIDSchemeID: Text; var PayeePartyNameName: Text; var PayeePartyLegalEntityCompanyID: Text; var PayeePartyLegalCompIDSchemeID: Text)`: Retrieves the payee party information for PEPPOL export.
- `GetTaxRepresentativePartyInfo(var TaxRepPartyNameName: Text; var PayeePartyTaxSchemeCompanyID: Text; var PayeePartyTaxSchCompIDSchemeID: Text; var PayeePartyTaxSchemeTaxSchemeID: Text)`: Retrieves the tax representative party information for PEPPOL export.
- `GetDeliveryInfo(var ActualDeliveryDate: Text; var DeliveryID: Text; var DeliveryIDSchemeID: Text)`: Retrieves the delivery information for PEPPOL export.
- `GetGLNDeliveryInfo(SalesHeader: Record "Sales Header"; var ActualDeliveryDate: Text; var DeliveryID: Text; var DeliveryIDSchemeID: Text)`: Retrieves the delivery information with GLN for PEPPOL export.
- `GetGLNForHeader(SalesHeader: Record "Sales Header"): Code[13]`: Retrieves the GLN for the sales header from ship-to address or customer.
- `GetDeliveryAddress(SalesHeader: Record "Sales Header"; var DeliveryStreetName: Text; var DeliveryAdditionalStreetName: Text; var DeliveryCityName: Text; var DeliveryPostalZone: Text; var DeliveryCountrySubentity: Text; var DeliveryCountryIdCode: Text; var DeliveryCountryListID: Text)`: Retrieves the delivery address information from the ship-to address.
- `GetPaymentMeansInfo(SalesHeader: Record "Sales Header"; var PaymentMeansCode: Text; var PaymentMeansListID: Text; var PaymentDueDate: Text; var PaymentChannelCode: Text; var PaymentID: Text; var PrimaryAccountNumberID: Text; var NetworkID: Text)`: Retrieves the payment means information for PEPPOL export.
- `GetPaymentMeansPayeeFinancialAcc(var PayeeFinancialAccountID: Text; var PaymentMeansSchemeID: Text; var FinancialInstitutionBranchID: Text; var FinancialInstitutionID: Text; var FinancialInstitutionSchemeID: Text; var FinancialInstitutionName: Text)`: Retrieves the payee financial account information for PEPPOL export.
- `GetPaymentMeansPayeeFinancialAccBIS(SalesHeader: Record "Sales Header"; var PayeeFinancialAccountID: Text; var FinancialInstitutionBranchID: Text)`: Retrieves the payee financial account information for PEPPOL BIS export.
- `GetPaymentMeansFinancialInstitutionAddr(var FinancialInstitutionStreetName: Text; var AdditionalStreetName: Text; var FinancialInstitutionCityName: Text; var FinancialInstitutionPostalZone: Text; var FinancialInstCountrySubentity: Text; var FinancialInstCountryIdCode: Text; var FinancialInstCountryListID: Text)`: Retrieves the financial institution address information for PEPPOL export.
- `GetPaymentTermsInfo(SalesHeader: Record "Sales Header"; var PaymentTermsNote: Text)`: Retrieves the payment terms information for PEPPOL export.
- `GetAllowanceChargeInfo(VATAmtLine: Record "VAT Amount Line"; SalesHeader: Record "Sales Header"; var ChargeIndicator: Text; var AllowanceChargeReasonCode: Text; var AllowanceChargeListID: Text; var AllowanceChargeReason: Text; var Amount: Text; var AllowanceChargeCurrencyID: Text; var TaxCategoryID: Text; var TaxCategorySchemeID: Text; var Percent: Text; var AllowanceChargeTaxSchemeID: Text)`: Retrieves the allowance charge information for invoice discount.
- `GetAllowanceChargeInfoPaymentDiscount(VATAmtLine: Record "VAT Amount Line"; SalesHeader: Record "Sales Header"; var ChargeIndicator: Text; var AllowanceChargeReasonCode: Text; var AllowanceChargeListID: Text; var AllowanceChargeReason: Text; var Amount: Text; var AllowanceChargeCurrencyID: Text; var TaxCategoryID: Text; var TaxCategorySchemeID: Text; var Percent: Text; var AllowanceChargeTaxSchemeID: Text)`: Retrieves the allowance charge information for payment discount.
- `GetAllowanceChargeInfoBIS(VATAmtLine: Record "VAT Amount Line"; SalesHeader: Record "Sales Header"; var ChargeIndicator: Text; var AllowanceChargeReasonCode: Text; var AllowanceChargeListID: Text; var AllowanceChargeReason: Text; var Amount: Text; var AllowanceChargeCurrencyID: Text; var TaxCategoryID: Text; var TaxCategorySchemeID: Text; var Percent: Text; var AllowanceChargeTaxSchemeID: Text)`: Retrieves the allowance charge information for PEPPOL BIS export, clearing percent for outside scope VAT.
- `GetTaxExchangeRateInfo(SalesHeader: Record "Sales Header"; var SourceCurrencyCode: Text; var SourceCurrencyCodeListID: Text; var TargetCurrencyCode: Text; var TargetCurrencyCodeListID: Text; var CalculationRate: Text; var MathematicOperatorCode: Text; var Date: Text)`: Retrieves the tax exchange rate information when document currency differs from local currency.
- `GetTaxTotalInfo(SalesHeader: Record "Sales Header"; var VATAmtLine: Record "VAT Amount Line"; var TaxAmount: Text; var TaxTotalCurrencyID: Text)`: Retrieves the tax total information from VAT amount lines.
- `GetTaxSubtotalInfo(VATAmtLine: Record "VAT Amount Line"; SalesHeader: Record "Sales Header"; var TaxableAmount: Text; var TaxAmountCurrencyID: Text; var SubtotalTaxAmount: Text; var TaxSubtotalCurrencyID: Text; var TransactionCurrencyTaxAmount: Text; var TransCurrTaxAmtCurrencyID: Text; var TaxTotalTaxCategoryID: Text; var schemeID: Text; var TaxCategoryPercent: Text; var TaxTotalTaxSchemeID: Text)`: Retrieves the tax subtotal information for a VAT amount line.
- `GetTaxTotalInfoLCY(SalesHeader: Record "Sales Header"; var TaxAmount: Text; var TaxCurrencyID: Text; var TaxTotalCurrencyID: Text)`: Retrieves the tax total information in local currency when document uses foreign currency.
- `GetLegalMonetaryInfo(SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary; var VATAmtLine: Record "VAT Amount Line"; var LineExtensionAmount: Text; var LegalMonetaryTotalCurrencyID: Text; var TaxExclusiveAmount: Text; var TaxExclusiveAmountCurrencyID: Text; var TaxInclusiveAmount: Text; var TaxInclusiveAmountCurrencyID: Text; var AllowanceTotalAmount: Text; var AllowanceTotalAmountCurrencyID: Text; var ChargeTotalAmount: Text; var ChargeTotalAmountCurrencyID: Text; var PrepaidAmount: Text; var PrepaidCurrencyID: Text; var PayableRoundingAmount: Text; var PayableRndingAmountCurrencyID: Text; var PayableAmount: Text; var PayableAmountCurrencyID: Text)`: Retrieves the legal monetary totals including line extension, tax amounts, and payable amount.
- `GetLegalMonetaryDocAmounts(SalesHeader: Record "Sales Header"; var VATAmtLine: Record "VAT Amount Line"; var LineExtensionAmount: Text; var LegalMonetaryTotalCurrencyID: Text; var TaxExclusiveAmount: Text; var TaxExclusiveAmountCurrencyID: Text; var TaxInclusiveAmount: Text; var TaxInclusiveAmountCurrencyID: Text; var AllowanceTotalAmount: Text; var AllowanceTotalAmountCurrencyID: Text; var ChargeTotalAmount: Text; var ChargeTotalAmountCurrencyID: Text)`: Retrieves the document-level monetary amounts for legal monetary totals.
- `GetLineGeneralInfo(SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; var InvoiceLineID: Text; var InvoiceLineNote: Text; var InvoicedQuantity: Text; var InvoiceLineExtensionAmount: Text; var LineExtensionAmountCurrencyID: Text; var InvoiceLineAccountingCost: Text)`: Retrieves the general line information for PEPPOL export.
- `GetLineUnitCodeInfo(SalesLine: Record "Sales Line"; var unitCode: Text; var unitCodeListID: Text)`: Retrieves the unit of measure code information for a sales line.
- `GetLineInvoicePeriodInfo(var InvLineInvoicePeriodStartDate: Text; var InvLineInvoicePeriodEndDate: Text)`: Retrieves the invoice period information for a line.
- `GetLineOrderLineRefInfo()`: Placeholder for line order reference information retrieval.
- `GetLineDeliveryInfo(var InvoiceLineActualDeliveryDate: Text; var InvoiceLineDeliveryID: Text; var InvoiceLineDeliveryIDSchemeID: Text)`: Retrieves the line delivery information.
- `GetLineDeliveryPostalAddr(var InvoiceLineDeliveryStreetName: Text; var InvLineDeliveryAddStreetName: Text; var InvoiceLineDeliveryCityName: Text; var InvoiceLineDeliveryPostalZone: Text; var InvLnDeliveryCountrySubentity: Text; var InvLnDeliveryCountryIdCode: Text; var InvLineDeliveryCountryListID: Text)`: Retrieves the line delivery postal address information.
- `GetDeliveryPartyName(SalesHeader: Record "Sales Header"; var DeliveryPartyName: Text)`: Retrieves the delivery party name.
- `GetLineAllowanceChargeInfo(SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; var InvLnAllowanceChargeIndicator: Text; var InvLnAllowanceChargeReason: Text; var InvLnAllowanceChargeAmount: Text; var InvLnAllowanceChargeAmtCurrID: Text)`: Retrieves the line allowance charge information for line discount.
- `GetLineTaxTotal(SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; var InvoiceLineTaxAmount: Text; var currencyID: Text)`: Retrieves the line tax total amount.
- `GetLineItemInfo(SalesLine: Record "Sales Line"; var Description: Text; var Name: Text; var SellersItemIdentificationID: Text; var StandardItemIdentificationID: Text; var StdItemIdIDSchemeID: Text; var OriginCountryIdCode: Text; var OriginCountryIdCodeListID: Text)`: Retrieves the item information for a sales line.
- `GetLineItemCommodityClassficationInfo(var CommodityCode: Text; var CommodityCodeListID: Text; var ItemClassificationCode: Text; var ItemClassificationCodeListID: Text)`: Retrieves the item commodity classification information.
- `GetLineItemClassfiedTaxCategory(SalesLine: Record "Sales Line"; var ClassifiedTaxCategoryID: Text; var ItemSchemeID: Text; var InvoiceLineTaxPercent: Text; var ClassifiedTaxCategorySchemeID: Text)`: Retrieves the classified tax category information for a sales line.
- `GetLineItemClassfiedTaxCategoryBIS(SalesLine: Record "Sales Line"; var ClassifiedTaxCategoryID: Text; var ItemSchemeID: Text; var InvoiceLineTaxPercent: Text; var ClassifiedTaxCategorySchemeID: Text)`: Retrieves the classified tax category information for PEPPOL BIS, clearing percent for outside scope VAT.
- `GetLineAdditionalItemPropertyInfo(SalesLine: Record "Sales Line"; var AdditionalItemPropertyName: Text; var AdditionalItemPropertyValue: Text)`: Retrieves the additional item property information from item variant.
- `GetLinePriceInfo(SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; var InvoiceLinePriceAmount: Text; var InvLinePriceAmountCurrencyID: Text; var BaseQuantity: Text; var UnitCode: Text)`: Retrieves the line price information.
- `GetLinePriceAllowanceChargeInfo(var PriceChargeIndicator: Text; var PriceAllowanceChargeAmount: Text; var PriceAllowanceAmountCurrencyID: Text; var PriceAllowanceChargeBaseAmount: Text; var PriceAllowChargeBaseAmtCurrID: Text)`: Retrieves the line price allowance charge information.
- `GetCrMemoBillingReferenceInfo(SalesCrMemoHeader: Record "Sales Cr.Memo Header"; var InvoiceDocRefID: Text; var InvoiceDocRefIssueDate: Text)`: Retrieves the billing reference information for a credit memo.
- `GetTotals(SalesLine: Record "Sales Line"; var VATAmtLine: Record "VAT Amount Line")`: Calculates and accumulates VAT totals from a sales line into the VAT amount line buffer.
- `GetTaxCategories(SalesLine: Record "Sales Line"; var VATProductPostingGroupCategory: Record "VAT Product Posting Group")`: Retrieves and accumulates tax categories from sales lines into a buffer.
- `GetInvoiceRoundingLine(var TempSalesLine: Record "Sales Line" temporary; SalesLine: Record "Sales Line")`: Retrieves the invoice rounding line if it exists.
- `GetTaxExemptionReason(var VATProductPostingGroupCategory: Record "VAT Product Posting Group"; var TaxExemptionReasonTxt: Text; TaxCategoryID: Text)`: Retrieves the tax exemption reason for specific tax categories.
- `GetPeppolTelemetryTok(): Text`: Returns the PEPPOL telemetry token for feature usage tracking.
- `GetUoMforPieceINUNECERec20ListID(): Code[10]`: Returns the unit of measure code for piece in UNECE Rec 20 list (EA).
- `GetVATScheme(CountryRegionCode: Code[10]): Text`: Retrieves the VAT scheme for a country/region.
- `IsZeroVatCategory(TaxCategory: Code[10]): Boolean`: Check if the VAT category is one of the categories with 0% VAT
- `IsStandardVATCategory(TaxCategory: Code[10]): Boolean`: Check if the VAT category is standard rated
- `IsOutsideScopeVATCategory(TaxCategory: Code[10]): Boolean`: Check if the VAT category is outside the scope of VAT
- `FormatVATRegistrationNo(VATRegistrationNo: Text; CountryCode: Code[10]; IsBISBilling: Boolean; IsPartyTaxScheme: Boolean): Text` (internal)
- `InitializeXMLExport(var OutFile: File; var XmlServerPath: Text)`: Initializes the XML export by creating a temporary file for output.
- `IsRoundingLine(SalesLine: Record "Sales Line"; CustomerNo: Code[20]): Boolean`: Checks if a sales line is an invoice rounding line.
- `TransferHeaderToSalesHeader(FromRecord: Variant; var ToSalesHeader: Record "Sales Header")`: Transfers fields from a posted document header to a sales header record.
- `TransferLineToSalesLine(FromRecord: Variant; var ToSalesLine: Record "Sales Line")`: Transfers fields from a posted document line to a sales line record.
- `TransferHeaderToSalesInvoiceHeader(FromRecord: Variant; var ToSalesInvoiceHeader: Record "Sales Invoice Header")`: Transfers fields from a source record to a sales invoice header record.
- `TransferHeaderToSalesCrMemoHeader(FromRecord: Variant; var ToSalesCrMemoHeader: Record "Sales Cr.Memo Header")`: Transfers fields from a source record to a sales credit memo header record.
- `TransferLineToSalesInvoiceLine(FromRecord: Variant; var ToSalesInvoiceLine: Record "Sales Invoice Line")`: Transfers fields from a source record to a sales invoice line record.
- `TransferLineToSalesCrMemoLine(FromRecord: Variant; var ToSalesCrMemoLine: Record "Sales Cr.Memo Line")`: Transfers fields from a source record to a sales credit memo line record.
- `RecRefTransferFields(FromRecord: Variant; var ToRecord: Variant)`: Transfers matching fields between two records using RecordRef.
- `FindNextSalesInvoiceRec(var SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesHeader: Record "Sales Header"; Position: Integer): Boolean`: Finds the next sales invoice record and transfers its fields to a sales header.
- `FindNextSalesInvoiceLineRec(var SalesInvoiceLine: Record "Sales Invoice Line"; var SalesLine: Record "Sales Line"; Position: Integer): Boolean`: Finds the next sales invoice line record and transfers its fields to a sales line.
- `FindNextSalesCreditMemoRec(var SalesCrMemoHeader: Record "Sales Cr.Memo Header"; var SalesHeader: Record "Sales Header"; Position: Integer): Boolean`: Finds the next sales credit memo record and transfers its fields to a sales header.
- `FindNextSalesCreditMemoLineRec(var SalesCrMemoLine: Record "Sales Cr.Memo Line"; var SalesLine: Record "Sales Line"; Position: Integer): Boolean`: Finds the next sales credit memo line record and transfers its fields to a sales line.

Plus 28 local procedures.

## Triggers

OnRun

## Calls

From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an `Object::"Name"` argument. Interface dispatch and calls through events are not counted, so the list is not complete.

- [Codeunit 4100 "Temp Blob"](../codeunit/4100.md) (4 calls: `GeneratePDFAsTempBlob → HasValue`, `GeneratePDFAttachmentAsAdditionalDocRef → CreateInStream`, `GetAdditionalDocRefInfo → CreateInStream`, …)
- [Codeunit 4110 "Base64 Convert"](../codeunit/4110.md) (2 calls: `GeneratePDFAttachmentAsAdditionalDocRef → ToBase64`, `GetAdditionalDocRefInfo → ToBase64`)
- [Codeunit 419 "File Management"](../codeunit/419.md) (1 call: `InitializeXMLExport → ServerTempFileName`)
- [Codeunit 8703 "Feature Telemetry"](../codeunit/8703.md) (1 call: `GetGeneralInfo → LogUptake`)

## Called by

- [Codeunit 6458 "Serv. PEPPOL Management"](../codeunit/6458.md) (14 calls: `CreditMemoPEPPOLBIS30_OnGetTotals → GetTaxCategories`, `CreditMemoPEPPOLBIS30_OnGetTotals → GetTotals`, `CreditMemoPEPPOLBIS30_OnGetTotals → TransferLineToSalesLine`, …)
- [Codeunit 1621 "PEPPOL Service Validation"](../codeunit/1621.md) (6 calls: `CheckServiceCreditMemo → TransferHeaderToSalesHeader`, `CheckServiceCreditMemo → TransferLineToSalesLine`, `CheckServiceHeader → TransferHeaderToSalesHeader`, …)
- [XMLport 1610 "Sales Invoice - PEPPOL BIS 3.0"](../xmlport/1610.md) (5 calls: `FindNextInvoiceLineRec → FindNextSalesInvoiceLineRec`, `FindNextInvoiceRec → FindNextSalesInvoiceRec`, `GetTotals → GetTaxCategories`, …)
- [XMLport 1611 "Sales Cr.Memo - PEPPOL BIS 3.0"](../xmlport/1611.md) (5 calls: `FindNextCreditMemoLineRec → FindNextSalesCreditMemoLineRec`, `FindNextCreditMemoRec → FindNextSalesCreditMemoRec`, `GetTotals → GetTaxCategories`, …)
- [Codeunit 1620 "PEPPOL Validation"](../codeunit/1620.md) (4 calls: `CheckSalesDocumentLine → GetLineUnitCodeInfo`, `CheckTaxCategory → IsOutsideScopeVATCategory`, `CheckTaxCategory → IsStandardVATCategory`, …)

## Recent changes

- 2026-09-10 [#11023 BE's PEPPOL "escompte" compensation](../../changes/bcapps/11023.md) (main, BC30, fix)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: BC24-29
- Obsolete: Pending since 29.0, "Replaced by PEPPOL App"

## Countries that replace it

[BE](../../localizations/be.md), [NO](../../localizations/no.md)

## Deprecations

- object: Pending 29.0 (#if not CLEAN29), "Replaced by PEPPOL App"

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). The call sections above are our own, per object, from the BC29 call graph. 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: "PEPPOL Management")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
