{"title":"Codeunit 6120 E-Doc. Purchase Hist. Mapping","url":"https://jonas-paprotka.de/ref/codeunit/6120-e-doc-purchase-hist-mapping/","author":"JOP-AL","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/","subject":"Microsoft Dynamics 365 Business Central","checked":"2026-11-20","changed":"2026-10-05","changedSince":"2026-09-22","source":{"feed":"https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json","package":"Microsoft.E-DocumentCore.symbols.e1d97edc-c239-46b4-8d84-6368bdf67c8b","build":"29.0.54011.55644","builds":{"26":"26.5.38752.40541","27":"27.5.46862.47359","28":"28.5.54151.54365","29":"29.0.54011.55644"},"code":{"28":{"url":"https://jonas-paprotka.de/ref/codeunit/6120-e-doc-purchase-hist-mapping/source/?v=28","repo":"https://github.com/microsoft/BCApps","branch":"releases/28.x","commit":"408a4cc8d3a4c54b60464cc14c964479facb9ba0","path":"src/Apps/W1/EDocument/App/src/Processing/Import/Purchase/History/EDocPurchaseHistMapping.Codeunit.al","license":"MIT"},"29":{"url":"https://jonas-paprotka.de/ref/codeunit/6120-e-doc-purchase-hist-mapping/source/","repo":"https://github.com/microsoft/BCApps","branch":"releases/29.x","commit":"4303e5e584d3aa5d9e98cbc615525a5396ad6ed7","path":"src/Apps/W1/EDocument/App/src/Processing/Import/Purchase/History/EDocPurchaseHistMapping.Codeunit.al","license":"MIT"}},"note":"Presence per major, highest build of each; 17 is the oldest major on the feed. Local procedures are not listed."},"object":{"type":"codeunit","id":6120,"name":"E-Doc. Purchase Hist. Mapping","app":"E-Document Core","appByVersion":[{"app":"E-Document Core","from":26}],"nameByVersion":[{"name":"E-Doc. Purchase Hist. Mapping","from":26}],"namespace":"Microsoft.eServices.EDocument.Processing.Import.Purchase","versions":"26-29","majors":[26,27,28,29],"countries":["W1","DE","US"],"minors":{"W1":"26.1-29.0","DE":"26.1-29.0","US":"26.1-29.0"},"minorsUrl":"https://jonas-paprotka.de/ref/codeunit/6120-e-doc-purchase-hist-mapping/editions.json","extends":null,"extendsUrl":null,"sourceTable":null,"properties":{"access":"Internal"},"extendedBy":[],"implementedBy":[],"sourceFile":"src/Processing/Import/Purchase/History/EDocPurchaseHistMapping.Codeunit.al","obsolete":null,"obsoleteSeenFrom":null,"byVersion":{"26":{"app":"E-Document Core","name":"E-Doc. Purchase Hist. Mapping","ns":"Microsoft.eServices.EDocument.Processing.Import.Purchase","obsolete":null,"target":"","sourceTable":"","props":{"access":"Internal"},"counts":{"fields":0,"keys":0,"methods":7,"values":0},"stub":false},"27":{"app":"E-Document Core","name":"E-Doc. Purchase Hist. Mapping","ns":"Microsoft.eServices.EDocument.Processing.Import.Purchase","obsolete":null,"target":"","sourceTable":"","props":{"access":"Internal"},"counts":{"fields":0,"keys":0,"methods":6,"values":0},"stub":false},"28":{"app":"E-Document Core","name":"E-Doc. Purchase Hist. Mapping","ns":"Microsoft.eServices.EDocument.Processing.Import.Purchase","obsolete":null,"target":"","sourceTable":"","props":{"access":"Internal"},"counts":{"fields":0,"keys":0,"methods":6,"values":0},"stub":false},"29":{"app":"E-Document Core","name":"E-Doc. Purchase Hist. Mapping","ns":"Microsoft.eServices.EDocument.Processing.Import.Purchase","obsolete":null,"target":"","sourceTable":"","props":{"access":"Internal"},"counts":{"fields":0,"keys":0,"methods":6,"values":0},"stub":false}},"fields":[],"keys":[],"procedures":[{"name":"FindRelatedPurchaseHeaderInHistory","sig":"(Record E-Document, var Record E-Doc. Vendor Assign. History)","named":"(EDocument: Record \"E-Document\"; var EDocVendorAssignmentHistory: Record \"E-Doc. Vendor Assign. History\")","returns":"Boolean","kind":"procedure","access":"public","obsolete":null,"range":"26-29","first":26,"last":29,"obsoleteSince":null,"spans":[{"from":26,"to":29,"named":"(EDocument: Record \"E-Document\"; var EDocVendorAssignmentHistory: Record \"E-Doc. Vendor Assign. History\")","returns":"Boolean","kind":"procedure","access":"public","obsolete":null}]},{"name":"UpdateMissingHeaderValuesFromHistory","sig":"(Record E-Doc. Vendor Assign. History, var Record E-Document Purchase Header)","named":"(EDocVendorAssignmentHistory: Record \"E-Doc. Vendor Assign. History\"; var EDocPurchaseHeader: Record \"E-Document Purchase Header\")","returns":"","kind":"procedure","access":"public","obsolete":null,"range":"26-29","first":26,"last":29,"obsoleteSince":null,"spans":[{"from":26,"to":29,"named":"(EDocVendorAssignmentHistory: Record \"E-Doc. Vendor Assign. History\"; var EDocPurchaseHeader: Record \"E-Document Purchase Header\")","returns":"","kind":"procedure","access":"public","obsolete":null}]},{"name":"FindRelatedPurchaseLineInHistory","sig":"(Code[20], Record E-Document Purchase Line, var Record E-Doc. Purchase Line History)","named":"(VendorNo: Code[20]; EDocumentPurchaseLine: Record \"E-Document Purchase Line\"; var EDocPurchaseLineHistory: Record \"E-Doc. Purchase Line History\")","returns":"Boolean","kind":"procedure","access":"public","obsolete":null,"range":"26-29","first":26,"last":29,"obsoleteSince":null,"spans":[{"from":26,"to":29,"named":"(VendorNo: Code[20]; EDocumentPurchaseLine: Record \"E-Document Purchase Line\"; var EDocPurchaseLineHistory: Record \"E-Doc. Purchase Line History\")","returns":"Boolean","kind":"procedure","access":"public","obsolete":null}]},{"name":"UpdateMissingLineValuesFromHistory","sig":"(Record E-Doc. Purchase Line History, var Record E-Document Purchase Line)","named":"(EDocPurchaseLineHistory: Record \"E-Doc. Purchase Line History\"; var EDocumentPurchaseLine: Record \"E-Document Purchase Line\")","returns":"","kind":"procedure","access":"public","obsolete":null,"range":"26","first":26,"last":26,"obsoleteSince":null,"spans":[{"from":26,"to":26,"named":"(EDocPurchaseLineHistory: Record \"E-Doc. Purchase Line History\"; var EDocumentPurchaseLine: Record \"E-Document Purchase Line\")","returns":"","kind":"procedure","access":"public","obsolete":null}]},{"name":"TrackRecord","sig":"(Record E-Document, Variant, Variant)","named":"(EDocument: Record \"E-Document\"; SourceRecord: Variant; TargetRecord: Variant)","returns":"","kind":"procedure","access":"public","obsolete":null,"range":"26","first":26,"last":26,"obsoleteSince":null,"spans":[{"from":26,"to":26,"named":"(EDocument: Record \"E-Document\"; SourceRecord: Variant; TargetRecord: Variant)","returns":"","kind":"procedure","access":"public","obsolete":null}]},{"name":"ApplyHistoryValuesToPurchaseLine","sig":"(Record E-Document Purchase Line, var Record Purchase Line)","named":"(EDocumentPurchaseLine: Record \"E-Document Purchase Line\"; var PurchaseLine: Record \"Purchase Line\")","returns":"","kind":"procedure","access":"public","obsolete":null,"range":"26","first":26,"last":26,"obsoleteSince":null,"spans":[{"from":26,"to":26,"named":"(EDocumentPurchaseLine: Record \"E-Document Purchase Line\"; var PurchaseLine: Record \"Purchase Line\")","returns":"","kind":"procedure","access":"public","obsolete":null}]},{"name":"OpenPageWithHistoricMatch","sig":"(Record E-Document Purchase Line)","named":"(EDocumentPurchaseLine: Record \"E-Document Purchase Line\")","returns":"Boolean","kind":"procedure","access":"public","obsolete":null,"range":"26-29","first":26,"last":29,"obsoleteSince":null,"spans":[{"from":26,"to":29,"named":"(EDocumentPurchaseLine: Record \"E-Document Purchase Line\")","returns":"Boolean","kind":"procedure","access":"public","obsolete":null}]},{"name":"UpdateMissingLineValuesFromHistory","sig":"(Record Purch. Inv. Line, var Record E-Document Purchase Line, Text[250], Text)","named":"(PurchInvLine: Record \"Purch. Inv. Line\"; var EDocumentPurchaseLine: Record \"E-Document Purchase Line\"; CustomExplanationTxt: Text[250]; MatchConfidence: Text)","returns":"","kind":"procedure","access":"public","obsolete":null,"range":"27-29","first":27,"last":29,"obsoleteSince":null,"spans":[{"from":27,"to":29,"named":"(PurchInvLine: Record \"Purch. Inv. Line\"; var EDocumentPurchaseLine: Record \"E-Document Purchase Line\"; CustomExplanationTxt: Text[250]; MatchConfidence: Text)","returns":"","kind":"procedure","access":"public","obsolete":null}]},{"name":"ApplyAdditionalFieldsFromHistoryToPurchaseLine","sig":"(Record E-Document Purchase Line, var Record Purchase Line)","named":"(EDocumentPurchaseLine: Record \"E-Document Purchase Line\"; var PurchaseLine: Record \"Purchase Line\")","returns":"","kind":"procedure","access":"public","obsolete":null,"range":"27-29","first":27,"last":29,"obsoleteSince":null,"spans":[{"from":27,"to":29,"named":"(EDocumentPurchaseLine: Record \"E-Document Purchase Line\"; var PurchaseLine: Record \"Purchase Line\")","returns":"","kind":"procedure","access":"public","obsolete":null}]}],"events":[],"values":[],"controls":[],"actions":[]}}