---
title: "Codeunit 20567 Subc. Pst. Prev. Event Handler, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/20567-subc-pst-prev-event-handler/points/
object: https://jonas-paprotka.de/ref/codeunit/20567-subc-pst-prev-event-handler/
app: "Subcontracting"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/20567-subc-pst-prev-event-handler/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 20567 Subc. Pst. Prev. Event Handler, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/20567-subc-pst-prev-event-handler/points/

3 procedures and triggers with a step in src/Apps/W1/Subcontracting/App/src/WIPItem/SubcPstPrevEventHandler.Codeunit.al, in source order, read from the text, not from a run.

## OnInsertWIPEntry

[Line 22](https://jonas-paprotka.de/ref/codeunit/20567-subc-pst-prev-event-handler/source/#L22), local.

- [26](https://jonas-paprotka.de/ref/codeunit/20567-subc-pst-prev-event-handler/source/#L26) calls [Codeunit 20569 Subc. Feature Flag Handler](https://jonas-paprotka.de/ref/codeunit/20569-subc-feature-flag-handler/) `IsSubcontractingEnabled`
- [38](https://jonas-paprotka.de/ref/codeunit/20567-subc-pst-prev-event-handler/source/#L38) writes [Table 20560 Subcontractor WIP Ledger Entry](https://jonas-paprotka.de/ref/table/20560-subcontractor-wip-ledger-entry/) Insert

## DeleteAll

[Line 41](https://jonas-paprotka.de/ref/codeunit/20567-subc-pst-prev-event-handler/source/#L41).

- [45](https://jonas-paprotka.de/ref/codeunit/20567-subc-pst-prev-event-handler/source/#L45) calls [Codeunit 20569 Subc. Feature Flag Handler](https://jonas-paprotka.de/ref/codeunit/20569-subc-feature-flag-handler/) `IsSubcontractingEnabled`
- [50](https://jonas-paprotka.de/ref/codeunit/20567-subc-pst-prev-event-handler/source/#L50) writes [Table 20560 Subcontractor WIP Ledger Entry](https://jonas-paprotka.de/ref/table/20560-subcontractor-wip-ledger-entry/) DeleteAll

## GetTempSubcontractorWIPLedgerEntry

[Line 53](https://jonas-paprotka.de/ref/codeunit/20567-subc-pst-prev-event-handler/source/#L53).

- [57](https://jonas-paprotka.de/ref/codeunit/20567-subc-pst-prev-event-handler/source/#L57) calls [Codeunit 20569 Subc. Feature Flag Handler](https://jonas-paprotka.de/ref/codeunit/20569-subc-feature-flag-handler/) `IsSubcontractingEnabled`

## Source

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

JOP-AL, 2026-11-20.
