---
title: "Codeunit 6196 E-Doc. PO Matching"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/6196-e-doc-po-matching/
type: codeunit
id: 6196
name: "E-Doc. PO Matching"
app: "E-Document Core"
namespace: Microsoft.eServices.EDocument.Processing.Import.Purchase
versions: "27-29"
build: 29.0.54011.55644
countries: "W1, DE, US"
source: "https://jonas-paprotka.de/ref/codeunit/6196-e-doc-po-matching/source/?v=28 https://jonas-paprotka.de/ref/codeunit/6196-e-doc-po-matching/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 6196 E-Doc. PO Matching

JOP-AL, https://jonas-paprotka.de/ref/codeunit/6196-e-doc-po-matching/

| | |
| --- | --- |
| App | E-Document Core |
| Namespace | Microsoft.eServices.EDocument.Processing.Import.Purchase |
| Versions | 27-29 |
| Minors | W1 27.3-29.0; DE 27.3-29.0; US 27.3-29.0, [every minor](https://jonas-paprotka.de/ref/codeunit/6196-e-doc-po-matching/editions.json) |
| Access | Internal |
| Source file | src/Processing/Import/Purchase/PurchaseOrderMatching/EDocPOMatching.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| LoadAvailablePOLinesForEDocumentLine | (EDocumentPurchaseLine: Record "E-Document Purchase Line"; var TempPurchaseLine: Record "Purchase Line" temporary) | - | public | 27-29 | - | - |
| LoadPOLinesMatchedToEDocumentLine | (EDocumentPurchaseLine: Record "E-Document Purchase Line"; var TempPurchaseLine: Record "Purchase Line" temporary) | - | public | 27-29 | - | - |
| LoadPOsMatchedToEDocumentLine | (EDocumentPurchaseLine: Record "E-Document Purchase Line"; var TempPurchaseHeader: Record "Purchase Header" temporary) | - | public | 27-29 | - | - |
| LoadAvailableReceiptLinesForEDocumentLine | (EDocumentPurchaseLine: Record "E-Document Purchase Line"; var TempPurchaseReceiptLine: Record "Purch. Rcpt. Line" temporary) | - | public | 27-29 | - | - |
| LoadReceiptsMatchedToEDocumentLine | (EDocumentPurchaseLine: Record "E-Document Purchase Line"; var TempPurchaseReceiptHeader: Record "Purch. Rcpt. Header" temporary) | - | public | 27-29 | - | - |
| LoadReceiptLinesMatchedToEDocumentLine | (EDocumentPurchaseLine: Record "E-Document Purchase Line"; var TempPurchaseReceiptLine: Record "Purch. Rcpt. Line" temporary) | - | public | 27-29 | - | - |
| CalculatePOMatchWarnings | (EDocumentPurchaseHeader: Record "E-Document Purchase Header"; var POMatchWarnings: Record "E-Doc PO Match Warning" temporary) | - | public | 27-29 | - | - |
| IsPOMatchConsistent | (EDocumentPurchaseHeader: Record "E-Document Purchase Header") | Boolean | public | 27-29 | - | - |
| IsEDocumentLineMatchedToAnyPOLine | (EDocumentPurchaseLine: Record "E-Document Purchase Line") | Boolean | public | 27-29 | - | - |
| IsEDocumentMatchedToAnyPOLine | (EDocumentPurchaseHeader: Record "E-Document Purchase Header") | Boolean | public | 27-29 | - | - |
| IsPOLineMatchedToEDocumentLine | (PurchaseLine: Record "Purchase Line"; EDocumentPurchaseLine: Record "E-Document Purchase Line") | Boolean | public | 27-29 | - | - |
| IsEDocumentLineMatchedToAnyReceiptLine | (EDocumentPurchaseLine: Record "E-Document Purchase Line") | Boolean | public | 27-29 | - | - |
| IsReceiptLineMatchedToEDocumentLine | (ReceiptLine: Record "Purch. Rcpt. Line"; EDocumentPurchaseLine: Record "E-Document Purchase Line") | Boolean | public | 27-29 | - | - |
| RemoveAllReceiptMatchesForEDocumentLine | (EDocumentPurchaseLine: Record "E-Document Purchase Line") | - | public | 27-29 | - | - |
| RemoveAllMatchesForEDocumentLine | (EDocumentPurchaseLine: Record "E-Document Purchase Line") | - | public | 27-29 | - | - |
| RemoveAllMatchesForEDocument | (EDocumentPurchaseHeader: Record "E-Document Purchase Header") | - | public | 27-29 | - | - |
| MatchPOLinesToEDocumentLine | (var SelectedPOLines: Record "Purchase Line" temporary; EDocumentPurchaseLine: Record "E-Document Purchase Line") | - | public | 27-29 | - | - |
| MatchReceiptLinesToEDocumentLine | (var SelectedReceiptLines: Record "Purch. Rcpt. Line" temporary; EDocumentPurchaseLine: Record "E-Document Purchase Line") | - | public | 27-29 | - | - |
| ConfigureDefaultPOMatchingSettings | () | - | public | 27-29 | - | - |
| ConfigurePOMatchingSettings | (DesiredGlobalSetup: Record "E-Doc. PO Matching Setup"; Configuration: Enum "E-Doc. PO M. Configuration"; VendorNos: List of [Code[20]]) | - | public | 27-29 | - | - |
| SuggestReceiptsForMatchedOrderLines | (EDocumentPurchaseHeader: Record "E-Document Purchase Header") | - | public | 27-28 | - | - |
| TransferPOMatchesFromEDocumentToInvoice | (EDocument: Record "E-Document") | - | public | 27-29 | - | - |
| TransferPOMatchesFromInvoiceToEDocument | (PurchaseHeader: Record "Purchase Header") | - | public | 27-29 | - | - |
| GetPOMatchingSettings | (var GlobalSetup: Record "E-Doc. PO Matching Setup"; var Configuration: Enum "E-Doc. PO M. Configuration"; var VendorNos: List of [Code[20]]) | - | public | 27-29 | - | - |
| VerifyEDocumentMatchedLinesAreValidMatches | (EDocumentPurchaseHeader: Record "E-Document Purchase Header") | Boolean | public | 27-29 | - | - |
| ShouldWarnIfNotYetReceived | (VendorNo: Code[20]) | Boolean | public | 27-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 28: https://github.com/microsoft/BCApps, MIT, releases/28.x at 408a4cc8d3a4c54b60464cc14c964479facb9ba0.
AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at 4303e5e584d3aa5d9e98cbc615525a5396ad6ed7.

JOP-AL, 2026-11-20.
