{"title":"Codeunit 6120 E-Doc. Purchase Hist. Mapping, procedures","url":"https://jonas-paprotka.de/ref/codeunit/6120-e-doc-purchase-hist-mapping/procedures/","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","object":{"type":"codeunit","id":6120,"name":"E-Doc. Purchase Hist. Mapping","app":"E-Document Core","versions":"26-29","url":"https://jonas-paprotka.de/ref/codeunit/6120-e-doc-purchase-hist-mapping/","json":"https://jonas-paprotka.de/ref/codeunit/6120-e-doc-purchase-hist-mapping.json"},"aspect":"procedures","total":9,"rows":[{"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}]}]}