{"title":"Codeunit 227 VendEntry-Apply Posted Entries, procedures","url":"https://jonas-paprotka.de/ref/codeunit/227-vendentry-apply-posted-entries/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":227,"name":"VendEntry-Apply Posted Entries","app":"Base Application","versions":"17-29","url":"https://jonas-paprotka.de/ref/codeunit/227-vendentry-apply-posted-entries/","json":"https://jonas-paprotka.de/ref/codeunit/227-vendentry-apply-posted-entries.json"},"aspect":"procedures","total":22,"rows":[{"name":"Apply","sig":"(Record Vendor Ledger Entry, Code[20], Date)","named":"(VendLedgEntry: Record \"Vendor Ledger Entry\"; DocumentNo: Code[20]; ApplicationDate: Date)","returns":"Boolean","kind":"procedure","access":"public","obsolete":{"state":"Pending","reason":"Replaced by Apply(VendLedgEntry, ApplyUnapplyParameters)","tag":"20.0"},"range":"17-22","first":17,"last":22,"obsoleteSince":20,"spans":[{"from":17,"to":19,"named":"(VendLedgEntry: Record \"Vendor Ledger Entry\"; DocumentNo: Code[20]; ApplicationDate: Date)","returns":"Boolean","kind":"procedure","access":"public","obsolete":null},{"from":20,"to":22,"named":"(VendLedgEntry: Record \"Vendor Ledger Entry\"; DocumentNo: Code[20]; ApplicationDate: Date)","returns":"Boolean","kind":"procedure","access":"public","obsolete":{"state":"Pending","reason":"Replaced by Apply(VendLedgEntry, ApplyUnapplyParameters)","tag":"20.0"}}]},{"name":"GetApplicationDate","sig":"(Record Vendor Ledger Entry)","named":"(VendLedgEntry: Record \"Vendor Ledger Entry\")","returns":"Date","kind":"procedure","access":"public","obsolete":null,"range":"17-29","first":17,"last":29,"obsoleteSince":null,"spans":[{"from":17,"to":29,"named":"(VendLedgEntry: Record \"Vendor Ledger Entry\")","returns":"Date","kind":"procedure","access":"public","obsolete":null}]},{"name":"FindLastApplEntry","sig":"(Integer)","named":"(VendLedgEntryNo: Integer)","returns":"Integer","kind":"procedure","access":"public","obsolete":null,"range":"17-29","first":17,"last":29,"obsoleteSince":null,"spans":[{"from":17,"to":29,"named":"(VendLedgEntryNo: Integer)","returns":"Integer","kind":"procedure","access":"public","obsolete":null}]},{"name":"UnApplyDtldVendLedgEntry","sig":"(Record Detailed Vendor Ledg. Entry)","named":"(DtldVendLedgEntry: Record \"Detailed Vendor Ledg. Entry\")","returns":"","kind":"procedure","access":"public","obsolete":null,"range":"17-29","first":17,"last":29,"obsoleteSince":null,"spans":[{"from":17,"to":29,"named":"(DtldVendLedgEntry: Record \"Detailed Vendor Ledg. Entry\")","returns":"","kind":"procedure","access":"public","obsolete":null}]},{"name":"UnApplyVendLedgEntry","sig":"(Integer)","named":"(VendLedgEntryNo: Integer)","returns":"","kind":"procedure","access":"public","obsolete":null,"range":"17-29","first":17,"last":29,"obsoleteSince":null,"spans":[{"from":17,"to":29,"named":"(VendLedgEntryNo: Integer)","returns":"","kind":"procedure","access":"public","obsolete":null}]},{"name":"PostUnApplyVendor","sig":"(Record Detailed Vendor Ledg. Entry, Code[20], Date)","named":"(DtldVendLedgEntry2: Record \"Detailed Vendor Ledg. Entry\"; DocNo: Code[20]; PostingDate: Date)","returns":"","kind":"procedure","access":"public","obsolete":{"state":"Pending","reason":"Replaced by PostUnApplyVendor(DtldVendLedgEntry2; ApplyUnapplyParameters","tag":"20.0"},"range":"17-22","first":17,"last":22,"obsoleteSince":20,"spans":[{"from":17,"to":19,"named":"(DtldVendLedgEntry2: Record \"Detailed Vendor Ledg. Entry\"; DocNo: Code[20]; PostingDate: Date)","returns":"","kind":"procedure","access":"public","obsolete":null},{"from":20,"to":22,"named":"(DtldVendLedgEntry2: Record \"Detailed Vendor Ledg. Entry\"; DocNo: Code[20]; PostingDate: Date)","returns":"","kind":"procedure","access":"public","obsolete":{"state":"Pending","reason":"Replaced by PostUnApplyVendor(DtldVendLedgEntry2; ApplyUnapplyParameters","tag":"20.0"}}]},{"name":"CheckReversal","sig":"(Integer)","named":"(VendLedgEntryNo: Integer)","returns":"","kind":"procedure","access":"public","obsolete":null,"range":"17-29","first":17,"last":29,"obsoleteSince":null,"spans":[{"from":17,"to":29,"named":"(VendLedgEntryNo: Integer)","returns":"","kind":"procedure","access":"public","obsolete":null}]},{"name":"ApplyVendEntryFormEntry","sig":"(var Record Vendor Ledger Entry)","named":"(var ApplyingVendLedgEntry: Record \"Vendor Ledger Entry\")","returns":"","kind":"procedure","access":"public","obsolete":null,"range":"17-29","first":17,"last":29,"obsoleteSince":null,"spans":[{"from":17,"to":29,"named":"(var ApplyingVendLedgEntry: Record \"Vendor Ledger Entry\")","returns":"","kind":"procedure","access":"public","obsolete":null}]},{"name":"PreviewApply","sig":"(Record Vendor Ledger Entry, Code[20], Date)","named":"(VendorLedgerEntry: Record \"Vendor Ledger Entry\"; DocumentNo: Code[20]; ApplicationDate: Date)","returns":"","kind":"procedure","access":"public","obsolete":{"state":"Pending","reason":"Replaced by PreviewApply(VendorLedgerEntry; ApplyUnapplyParameters)","tag":"20.0"},"range":"17-22","first":17,"last":22,"obsoleteSince":20,"spans":[{"from":17,"to":19,"named":"(VendorLedgerEntry: Record \"Vendor Ledger Entry\"; DocumentNo: Code[20]; ApplicationDate: Date)","returns":"","kind":"procedure","access":"public","obsolete":null},{"from":20,"to":22,"named":"(VendorLedgerEntry: Record \"Vendor Ledger Entry\"; DocumentNo: Code[20]; ApplicationDate: Date)","returns":"","kind":"procedure","access":"public","obsolete":{"state":"Pending","reason":"Replaced by PreviewApply(VendorLedgerEntry; ApplyUnapplyParameters)","tag":"20.0"}}]},{"name":"PreviewUnapply","sig":"(Record Detailed Vendor Ledg. Entry, Code[20], Date)","named":"(DetailedVendorLedgEntry: Record \"Detailed Vendor Ledg. Entry\"; DocumentNo: Code[20]; ApplicationDate: Date)","returns":"","kind":"procedure","access":"public","obsolete":{"state":"Pending","reason":"Replaced by W1 implementation of PreviewUnapply(DetailedVendorLedgEntry; ApplyUnapplyParameters)","tag":"20.0"},"range":"17-22","first":17,"last":22,"obsoleteSince":20,"spans":[{"from":17,"to":19,"named":"(DetailedVendorLedgEntry: Record \"Detailed Vendor Ledg. Entry\"; DocumentNo: Code[20]; ApplicationDate: Date)","returns":"","kind":"procedure","access":"public","obsolete":null},{"from":20,"to":22,"named":"(DetailedVendorLedgEntry: Record \"Detailed Vendor Ledg. Entry\"; DocumentNo: Code[20]; ApplicationDate: Date)","returns":"","kind":"procedure","access":"public","obsolete":{"state":"Pending","reason":"Replaced by W1 implementation of PreviewUnapply(DetailedVendorLedgEntry; ApplyUnapplyParameters)","tag":"20.0"}}]},{"name":"SetApplyContext","sig":"(Date, Code[20])","named":"(ApplicationDate: Date; DocumentNo: Code[20])","returns":"","kind":"procedure","access":"public","obsolete":{"state":"Pending","reason":"Replaced by SetApplyContext(ApplyUnapplyParameters)","tag":"20.0"},"range":"17-22","first":17,"last":22,"obsoleteSince":20,"spans":[{"from":17,"to":19,"named":"(ApplicationDate: Date; DocumentNo: Code[20])","returns":"","kind":"procedure","access":"public","obsolete":null},{"from":20,"to":22,"named":"(ApplicationDate: Date; DocumentNo: Code[20])","returns":"","kind":"procedure","access":"public","obsolete":{"state":"Pending","reason":"Replaced by SetApplyContext(ApplyUnapplyParameters)","tag":"20.0"}}]},{"name":"SetUnapplyContext","sig":"(var Record Detailed Vendor Ledg. Entry, Date, Code[20])","named":"(var DetailedVendorLedgEntry: Record \"Detailed Vendor Ledg. Entry\"; ApplicationDate: Date; DocumentNo: Code[20])","returns":"","kind":"procedure","access":"public","obsolete":{"state":"Pending","reason":"Replaced by SetUnapplyContext(DetailedVendorLedgEntry; ApplyUnapplyParameters)","tag":"20.0"},"range":"17-22","first":17,"last":22,"obsoleteSince":20,"spans":[{"from":17,"to":19,"named":"(var DetailedVendorLedgEntry: Record \"Detailed Vendor Ledg. Entry\"; ApplicationDate: Date; DocumentNo: Code[20])","returns":"","kind":"procedure","access":"public","obsolete":null},{"from":20,"to":22,"named":"(var DetailedVendorLedgEntry: Record \"Detailed Vendor Ledg. Entry\"; ApplicationDate: Date; DocumentNo: Code[20])","returns":"","kind":"procedure","access":"public","obsolete":{"state":"Pending","reason":"Replaced by SetUnapplyContext(DetailedVendorLedgEntry; ApplyUnapplyParameters)","tag":"20.0"}}]},{"name":"Apply","sig":"(Record Vendor Ledger Entry, Record Apply Unapply Parameters)","named":"(VendLedgEntry: Record \"Vendor Ledger Entry\"; ApplyUnapplyParameters: Record \"Apply Unapply Parameters\")","returns":"Boolean","kind":"procedure","access":"public","obsolete":null,"range":"20-29","first":20,"last":29,"obsoleteSince":null,"spans":[{"from":20,"to":29,"named":"(VendLedgEntry: Record \"Vendor Ledger Entry\"; ApplyUnapplyParameters: Record \"Apply Unapply Parameters\")","returns":"Boolean","kind":"procedure","access":"public","obsolete":null}]},{"name":"PostUnApplyVendor","sig":"(Record Detailed Vendor Ledg. Entry, Record Apply Unapply Parameters)","named":"(DtldVendLedgEntry2: Record \"Detailed Vendor Ledg. Entry\"; ApplyUnapplyParameters: Record \"Apply Unapply Parameters\")","returns":"","kind":"procedure","access":"public","obsolete":null,"range":"20-29","first":20,"last":29,"obsoleteSince":null,"spans":[{"from":20,"to":29,"named":"(DtldVendLedgEntry2: Record \"Detailed Vendor Ledg. Entry\"; ApplyUnapplyParameters: Record \"Apply Unapply Parameters\")","returns":"","kind":"procedure","access":"public","obsolete":null}]},{"name":"PostUnApplyVendorCommit","sig":"(Record Detailed Vendor Ledg. Entry, Code[20], Date, Boolean)","named":"(DtldVendLedgEntry2: Record \"Detailed Vendor Ledg. Entry\"; DocNo: Code[20]; PostingDate: Date; CommitChanges: Boolean)","returns":"","kind":"procedure","access":"public","obsolete":{"state":"Pending","reason":"Replaced by PostUnApplyVendorCommit()","tag":"20.0"},"range":"20-22","first":20,"last":22,"obsoleteSince":20,"spans":[{"from":20,"to":22,"named":"(DtldVendLedgEntry2: Record \"Detailed Vendor Ledg. Entry\"; DocNo: Code[20]; PostingDate: Date; CommitChanges: Boolean)","returns":"","kind":"procedure","access":"public","obsolete":{"state":"Pending","reason":"Replaced by PostUnApplyVendorCommit()","tag":"20.0"}}]},{"name":"PostUnApplyVendorCommit","sig":"(Record Detailed Vendor Ledg. Entry, Record Apply Unapply Parameters, Boolean)","named":"(DtldVendLedgEntry2: Record \"Detailed Vendor Ledg. Entry\"; ApplyUnapplyParameters: Record \"Apply Unapply Parameters\"; CommitChanges: Boolean)","returns":"","kind":"procedure","access":"public","obsolete":null,"range":"20-29","first":20,"last":29,"obsoleteSince":null,"spans":[{"from":20,"to":29,"named":"(DtldVendLedgEntry2: Record \"Detailed Vendor Ledg. Entry\"; ApplyUnapplyParameters: Record \"Apply Unapply Parameters\"; CommitChanges: Boolean)","returns":"","kind":"procedure","access":"public","obsolete":null}]},{"name":"PreviewApply","sig":"(Record Vendor Ledger Entry, Record Apply Unapply Parameters)","named":"(VendorLedgerEntry: Record \"Vendor Ledger Entry\"; ApplyUnapplyParameters: Record \"Apply Unapply Parameters\")","returns":"","kind":"procedure","access":"public","obsolete":null,"range":"20-29","first":20,"last":29,"obsoleteSince":null,"spans":[{"from":20,"to":29,"named":"(VendorLedgerEntry: Record \"Vendor Ledger Entry\"; ApplyUnapplyParameters: Record \"Apply Unapply Parameters\")","returns":"","kind":"procedure","access":"public","obsolete":null}]},{"name":"PreviewUnapply","sig":"(Record Detailed Vendor Ledg. Entry, Record Apply Unapply Parameters)","named":"(DetailedVendorLedgEntry: Record \"Detailed Vendor Ledg. Entry\"; ApplyUnapplyParameters: Record \"Apply Unapply Parameters\")","returns":"","kind":"procedure","access":"public","obsolete":null,"range":"20-29","first":20,"last":29,"obsoleteSince":null,"spans":[{"from":20,"to":29,"named":"(DetailedVendorLedgEntry: Record \"Detailed Vendor Ledg. Entry\"; ApplyUnapplyParameters: Record \"Apply Unapply Parameters\")","returns":"","kind":"procedure","access":"public","obsolete":null}]},{"name":"SetApplyContext","sig":"(Record Apply Unapply Parameters)","named":"(ApplyUnapplyParameters: Record \"Apply Unapply Parameters\")","returns":"","kind":"procedure","access":"public","obsolete":null,"range":"20-29","first":20,"last":29,"obsoleteSince":null,"spans":[{"from":20,"to":29,"named":"(ApplyUnapplyParameters: Record \"Apply Unapply Parameters\")","returns":"","kind":"procedure","access":"public","obsolete":null}]},{"name":"SetUnapplyContext","sig":"(var Record Detailed Vendor Ledg. Entry, Record Apply Unapply Parameters)","named":"(var DetailedVendorLedgEntry: Record \"Detailed Vendor Ledg. Entry\"; ApplyUnapplyParameters: Record \"Apply Unapply Parameters\")","returns":"","kind":"procedure","access":"public","obsolete":null,"range":"20-29","first":20,"last":29,"obsoleteSince":null,"spans":[{"from":20,"to":29,"named":"(var DetailedVendorLedgEntry: Record \"Detailed Vendor Ledg. Entry\"; ApplyUnapplyParameters: Record \"Apply Unapply Parameters\")","returns":"","kind":"procedure","access":"public","obsolete":null}]},{"name":"GetAppliedVendLedgerEntries","sig":"(var Record Vendor Ledger Entry, Integer)","named":"(var TempAppliedVendLedgerEntry: Record \"Vendor Ledger Entry\" temporary; VendLedgerEntryNo: Integer)","returns":"","kind":"procedure","access":"public","obsolete":null,"range":"20-29","first":20,"last":29,"obsoleteSince":null,"spans":[{"from":20,"to":29,"named":"(var TempAppliedVendLedgerEntry: Record \"Vendor Ledger Entry\" temporary; VendLedgerEntryNo: Integer)","returns":"","kind":"procedure","access":"public","obsolete":null}]},{"name":"CheckVendorLedgerEntryToUnapply","sig":"(Integer, var Record Detailed Vendor Ledg. Entry)","named":"(VendorLedgerEntryNo: Integer; var DetailedVendorLedgEntry: Record \"Detailed Vendor Ledg. Entry\")","returns":"","kind":"procedure","access":"public","obsolete":null,"range":"21-29","first":21,"last":29,"obsoleteSince":null,"spans":[{"from":21,"to":29,"named":"(VendorLedgerEntryNo: Integer; var DetailedVendorLedgEntry: Record \"Detailed Vendor Ledg. Entry\")","returns":"","kind":"procedure","access":"public","obsolete":null}]}]}