Codeunit 6164 "E-Doc. Line Matching"
EDocument · Microsoft.eServices.EDocument.OrderMatch
Across versions
- BC23-28not present
- BC29-30present
EDocument · Microsoft.eServices.EDocument.OrderMatch · BC29-30 · source at ea08af5e · facts from BC29
Properties
| Property | Value |
|---|---|
| Access | Internal |
| Permissions | tabledata “E-Doc. Imported Line” = im, tabledata “E-Doc. Order Match” = idm |
Events published
OnBeforeCreateMatchingRule(var PurchaseLine: Record "Purchase Line"; EDocument: Record "E-Document")(integration)
Procedures
RunMatching(var EDocument: Record "E-Document")RunMatching(var EDocument: Record "E-Document"; WithCopilot: Boolean)(obsolete 29.0: Deprecated functionality)ApplyToPurchaseOrder(var EDocument: Record "E-Document"; var TempEDocumentImportedLine: Record "E-Doc. Imported Line" temporary)ResetMatchedQty(var TempEDocumentImportedLine: Record "E-Doc. Imported Line" temporary)UpdateMatchedQty(var TempEDocumentImportedLine: Record "E-Doc. Imported Line" temporary; Quantity: Decimal)ResetQtyToInvoice(var TempPurchaseLine: Record "Purchase Line" temporary)UpdateQtyToInvoice(var TempPurchaseLine: Record "Purchase Line" temporary; Quantity: Decimal)PersistsUpdates(var TempEDocMatchesThatWasMatched: Record "E-Doc. Order Match" temporary; RemoveMatch: Boolean)ResetQtyToInvoiceBasedOnMatches(var EDocument: Record "E-Document"; var TempPurchaseLine: Record "Purchase Line" temporary)ResetQtyToInvoice(var EDocument: Record "E-Document")RemoveAllMatches(var EDocument: Record "E-Document")FindMatchesToRemove(var EDocument: Record "E-Document"; var TempPurchaseLine: Record "Purchase Line" temporary; var TempEDocMatchesThatWasRemoved: Record "E-Doc. Order Match" temporary)MatchManually(var TempEDocumentImportedLine: Record "E-Doc. Imported Line" temporary; var TempPurchaseLine: Record "Purchase Line" temporary; var TempEDocMatchesThatWasMatched: Record "E-Doc. Order Match" temporary)AskToOverwrite(EDocument: Record "E-Document"; var TempEDocumentImportedLine: Record "E-Doc. Imported Line" temporary; var TempPurchaseLine: Record "Purchase Line" temporary)MatchAutomatically(EDocument: Record "E-Document"; var TempEDocumentImportedLine: Record "E-Doc. Imported Line" temporary; var TempPurchaseLine: Record "Purchase Line" temporary; var TempEDocMatchesThatWasMatched: Record "E-Doc. Order Match" temporary)InsertOrderMatch(var TempEDocumentImportedLine: Record "E-Doc. Imported Line" temporary; var TempPurchaseLine: Record "Purchase Line" temporary; var TempEDocMatchesThatWasMatched: Record "E-Doc. Order Match" temporary; Quantity: Decimal; FullMatch: Boolean)MatchOneToOne(var TempEDocumentImportedLine: Record "E-Doc. Imported Line" temporary; var TempPurchaseLine: Record "Purchase Line" temporary; var TempEDocMatchesThatWasMatched: Record "E-Doc. Order Match" temporary)MatchManyToOne(var TempEDocumentImportedLine: Record "E-Doc. Imported Line" temporary; var TempPurchaseLine: Record "Purchase Line" temporary; var TempEDocMatchesThatWasMatched: Record "E-Doc. Order Match" temporary)MatchOneToMany(var TempEDocumentImportedLine: Record "E-Doc. Imported Line" temporary; var TempPurchaseLine: Record "Purchase Line" temporary; var TempEDocMatchesThatWasMatched: Record "E-Doc. Order Match" temporary)FilterOutFullyMatchedLines(var TempEDocumentImportedLine: Record "E-Doc. Imported Line" temporary; var TempPurchaseLine: Record "Purchase Line" temporary)CreateMatchingRule(PurchaseLine: Record "Purchase Line"; EDocument: Record "E-Document"; EDocImportedLine: Record "E-Doc. Imported Line")CreatePurchaseOrderLine(EDocument: Record "E-Document"; var TempEDocumentImportedLine: Record "E-Doc. Imported Line" temporary)(internal)
Plus 6 local procedures.
Recent changes
- 2026-08-06 #9954 Restoring undefined action. (Purchase Orders page can’t be open in latest
main) (main, BC30, fix) - 2026-07-22 #9572 Obsolete E-Document Purchase Order Matching Copilot (main, BC30, obsoletion)
Deprecations
- procedure RunMatching: Pending 29.0 (#if not CLEAN29), “Deprecated functionality”
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). 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-Doc. Line Matching"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.