---
title: "Codeunit 6246 E-Doc. Item Charge Mapping"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/6246-e-doc-item-charge-mapping/
type: codeunit
id: 6246
name: "E-Doc. Item Charge Mapping"
app: "E-Document Core"
namespace: Microsoft.eServices.EDocument
versions: "29"
build: 29.0.54011.55644
countries: "W1, DE, US"
source: "https://jonas-paprotka.de/ref/codeunit/6246-e-doc-item-charge-mapping/source/"
checked: 2026-11-20
changed: 2026-10-05
subject: "Microsoft Dynamics 365 Business Central"
license: "Metadata from Microsoft's symbol packages. AL source MIT, Copyright (c) Microsoft Corporation. Selection and wording © 2026 JOP-AL. https://jonas-paprotka.de/licenses/"
---

# Codeunit 6246 E-Doc. Item Charge Mapping

JOP-AL, https://jonas-paprotka.de/ref/codeunit/6246-e-doc-item-charge-mapping/

| | |
| --- | --- |
| App | E-Document Core |
| Namespace | Microsoft.eServices.EDocument |
| Versions | 29 |
| Minors | W1 29.0; DE 29.0; US 29.0, [every minor](https://jonas-paprotka.de/ref/codeunit/6246-e-doc-item-charge-mapping/editions.json) |
| Source file | src/Processing/EDocItemChargeMapping.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| GetItemChargeStructure | (EDocumentService: Record "E-Document Service"; SalesInvoiceHeader: Record "Sales Invoice Header"; SalesInvoiceLine: Record "Sales Invoice Line"; var TargetSalesInvoiceLine: Record "Sales Invoice Line") | Enum Item Charge E-Doc. Structure | public | 29 | - | - |
| GetItemChargeStructure | (EDocumentService: Record "E-Document Service"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; SalesCrMemoLine: Record "Sales Cr.Memo Line"; var TargetSalesCrMemoLine: Record "Sales Cr.Memo Line") | Enum Item Charge E-Doc. Structure | public | 29 | - | - |
| GetFallbackQuantity | () | Decimal | public | 29 | - | - |
| GetFallbackQuantity | (NetAmount: Decimal) | Decimal | public | 29 | - | - |
| GetFallbackUnitPrice | (NetAmount: Decimal) | Decimal | public | 29 | - | - |
| GetFallbackUnitOfMeasureCode | (ItemChargeNo: Code[20]) | Code[10] | public | 29 | - | - |
| GetItemChargeReason | (ItemChargeNo: Code[20]; var ReasonCode: Code[10]; var ReasonText: Text[100]) | - | public | 29 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnAfterGetItemChargeStructure | (EDocumentService: Record "E-Document Service"; SalesInvoiceHeader: Record "Sales Invoice Header"; SalesInvoiceLine: Record "Sales Invoice Line"; var Structure: Enum "Item Charge E-Doc. Structure"; var TargetSalesInvoiceLine: Record "Sales Invoice Line") | 29 | - | - |
| Integration event | OnAfterGetSalesCrMemoItemChargeStructure | (EDocumentService: Record "E-Document Service"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; SalesCrMemoLine: Record "Sales Cr.Memo Line"; var Structure: Enum "Item Charge E-Doc. Structure"; var TargetSalesCrMemoLine: Record "Sales Cr.Memo Line") | 29 | - | - |

## Source

Symbols: Microsoft.E-DocumentCore.symbols.e1d97edc-c239-46b4-8d84-6368bdf67c8b, https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json, highest build per major on 2026-11-20.
AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at 4303e5e584d3aa5d9e98cbc615525a5396ad6ed7.

JOP-AL, 2026-11-20.
