---
title: "Codeunit 5876 Phys. Invt. Rec.-Finish, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/5876-phys-invt-rec-finish/points/
object: https://jonas-paprotka.de/ref/codeunit/5876-phys-invt-rec-finish/
app: "Base Application"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/5876-phys-invt-rec-finish/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 5876 Phys. Invt. Rec.-Finish, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/5876-phys-invt-rec-finish/points/

3 procedures and triggers with a step in src/Layers/W1/BaseApp/Inventory/Counting/Recording/PhysInvtRecFinish.Codeunit.al, in source order, read from the text, not from a run.

## OnRun

[Line 15](https://jonas-paprotka.de/ref/codeunit/5876-phys-invt-rec-finish/source/#L15), trigger.

- [20](https://jonas-paprotka.de/ref/codeunit/5876-phys-invt-rec-finish/source/#L20) raises `OnBeforeOnRun`, IsHandled
- [23](https://jonas-paprotka.de/ref/codeunit/5876-phys-invt-rec-finish/source/#L23) calls `Code`
- [26](https://jonas-paprotka.de/ref/codeunit/5876-phys-invt-rec-finish/source/#L26) raises `OnAfterOnRun`

## Code

[Line 45](https://jonas-paprotka.de/ref/codeunit/5876-phys-invt-rec-finish/source/#L45).

- [49](https://jonas-paprotka.de/ref/codeunit/5876-phys-invt-rec-finish/source/#L49) raises `OnBeforeCode`
- [62](https://jonas-paprotka.de/ref/codeunit/5876-phys-invt-rec-finish/source/#L62) raises `OnCodeOnBeforeNoPhysInvtRecordLineError`, IsHandled
- [93](https://jonas-paprotka.de/ref/codeunit/5876-phys-invt-rec-finish/source/#L93) calls [Table 5878 Phys. Invt. Record Line](https://jonas-paprotka.de/ref/table/5878-phys-invt-record-line/) `EmptyLine`
- [95](https://jonas-paprotka.de/ref/codeunit/5876-phys-invt-rec-finish/source/#L95) raises `OnCodeOnBeforeCheckPhysInvtRecordLine`, IsHandled
- [101](https://jonas-paprotka.de/ref/codeunit/5876-phys-invt-rec-finish/source/#L101) calls `CheckLocationDirectedPutAwayAndPick`
- [113](https://jonas-paprotka.de/ref/codeunit/5876-phys-invt-rec-finish/source/#L113) raises `OnBeforeGetSamePhysInvtOrderLine`, IsHandled
- [116](https://jonas-paprotka.de/ref/codeunit/5876-phys-invt-rec-finish/source/#L116) calls [Table 5875 Phys. Invt. Order Header](https://jonas-paprotka.de/ref/table/5875-phys-invt-order-header/) `GetSamePhysInvtOrderLine`
- [128](https://jonas-paprotka.de/ref/codeunit/5876-phys-invt-rec-finish/source/#L128) validates [Table 5876 Phys. Invt. Order Line](https://jonas-paprotka.de/ref/table/5876-phys-invt-order-line/) `Item No.`
- [129](https://jonas-paprotka.de/ref/codeunit/5876-phys-invt-rec-finish/source/#L129) validates [Table 5876 Phys. Invt. Order Line](https://jonas-paprotka.de/ref/table/5876-phys-invt-order-line/) `Variant Code`
- [130](https://jonas-paprotka.de/ref/codeunit/5876-phys-invt-rec-finish/source/#L130) validates [Table 5876 Phys. Invt. Order Line](https://jonas-paprotka.de/ref/table/5876-phys-invt-order-line/) `Location Code`
- [131](https://jonas-paprotka.de/ref/codeunit/5876-phys-invt-rec-finish/source/#L131) validates [Table 5876 Phys. Invt. Order Line](https://jonas-paprotka.de/ref/table/5876-phys-invt-order-line/) `Bin Code`
- [133](https://jonas-paprotka.de/ref/codeunit/5876-phys-invt-rec-finish/source/#L133) raises `OnBeforePhysInvtOrderLineInsert`
- [134](https://jonas-paprotka.de/ref/codeunit/5876-phys-invt-rec-finish/source/#L134) calls [Table 5876 Phys. Invt. Order Line](https://jonas-paprotka.de/ref/table/5876-phys-invt-order-line/) `CreateDimFromDefaultDim`
- [135](https://jonas-paprotka.de/ref/codeunit/5876-phys-invt-rec-finish/source/#L135) writes [Table 5876 Phys. Invt. Order Line](https://jonas-paprotka.de/ref/table/5876-phys-invt-order-line/) Insert(true)
- [141](https://jonas-paprotka.de/ref/codeunit/5876-phys-invt-rec-finish/source/#L141) writes [Table 5878 Phys. Invt. Record Line](https://jonas-paprotka.de/ref/table/5878-phys-invt-record-line/) Modify
- [146](https://jonas-paprotka.de/ref/codeunit/5876-phys-invt-rec-finish/source/#L146) raises `OnBeforePhysInvtOrderLineModify`
- [147](https://jonas-paprotka.de/ref/codeunit/5876-phys-invt-rec-finish/source/#L147) writes [Table 5876 Phys. Invt. Order Line](https://jonas-paprotka.de/ref/table/5876-phys-invt-order-line/) Modify
- [151](https://jonas-paprotka.de/ref/codeunit/5876-phys-invt-rec-finish/source/#L151) raises `OnCodeOnBeforeSetStatusToFinished`
- [153](https://jonas-paprotka.de/ref/codeunit/5876-phys-invt-rec-finish/source/#L153) writes [Table 5877 Phys. Invt. Record Header](https://jonas-paprotka.de/ref/table/5877-phys-invt-record-header/) Modify
- [155](https://jonas-paprotka.de/ref/codeunit/5876-phys-invt-rec-finish/source/#L155) raises `OnAfterCode`

## CheckLocationDirectedPutAwayAndPick

[Line 158](https://jonas-paprotka.de/ref/codeunit/5876-phys-invt-rec-finish/source/#L158), local.

- [163](https://jonas-paprotka.de/ref/codeunit/5876-phys-invt-rec-finish/source/#L163) raises `OnBeforeCheckLocationDirectedPutAwayAndPick`, IsHandled

## Source

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

JOP-AL, 2026-11-20.
