---
title: "Codeunit 402 Purchase Header Apply, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/402-purchase-header-apply/points/
object: https://jonas-paprotka.de/ref/codeunit/402-purchase-header-apply/
app: "Base Application"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/402-purchase-header-apply/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 402 Purchase Header Apply, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/402-purchase-header-apply/points/

1 procedures and triggers with a step in src/Layers/W1/BaseApp/Purchases/Payables/PurchaseHeaderApply.Codeunit.al, in source order, read from the text, not from a run.

## OnRun

[Line 13](https://jonas-paprotka.de/ref/codeunit/402-purchase-header-apply/source/#L13), trigger.

- [20](https://jonas-paprotka.de/ref/codeunit/402-purchase-header-apply/source/#L20) raises `OnRunOnAfterFilterVendLedgEntry`
- [27](https://jonas-paprotka.de/ref/codeunit/402-purchase-header-apply/source/#L27) calls [Page 233 Apply Vendor Entries](https://jonas-paprotka.de/ref/page/233-apply-vendor-entries/) `SetPurch`
- [40](https://jonas-paprotka.de/ref/codeunit/402-purchase-header-apply/source/#L40) raises `OnRunOnBeforeVendLedgEntryFindFirst`
- [47](https://jonas-paprotka.de/ref/codeunit/402-purchase-header-apply/source/#L47) writes [Table 38 Purchase Header](https://jonas-paprotka.de/ref/table/38-purchase-header/) Modify
- [49](https://jonas-paprotka.de/ref/codeunit/402-purchase-header-apply/source/#L49) raises `OnAfterOnRun`

## Source

AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at 4303e5e584d3aa5d9e98cbc615525a5396ad6ed7.

JOP-AL, 2026-11-20.
