---
title: "Codeunit 7380 Phys. Invt. Count.-Management, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/points/
object: https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/
app: "Base Application"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/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 7380 Phys. Invt. Count.-Management, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/points/

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

## OnRun

[Line 20](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L20), trigger.

- [26](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L26) raises `OnBeforeRun`
- [31](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L31) raises `OnRunOnAfterSetItemFilters`
- [37](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L37) calls `InsertTempPhysCountBuffer`
- [47](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L47) raises `OnRunOnAfterSetSKUFilters`
- [54](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L54) raises `OnRunOnSKUOnBeforeInsertTempPhysCountBuffer`, IsHandled
- [56](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L56) calls `InsertTempPhysCountBuffer`
- [64](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L64) raises `OnRunOnBeforeRunModalPhysInvtItemSelection`, IsHandled
- [75](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L75) calls `CreatePhysInvtOrderLines`
- [77](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L77) calls `CreatePhysInvtItemJnl`
- [79](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L79) calls `CreatePhysInvtWhseJnl`
- [81](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L81) raises `OnCreateCustomPhysInvtJournal`

## InsertTempPhysCountBuffer

[Line 108](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L108), local.

- [120](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L120) calls `GetPhysInvtCount`
- [123](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L123) writes [Table 7380 Phys. Invt. Item Selection](https://jonas-paprotka.de/ref/table/7380-phys-invt-item-selection/) Insert
- [125](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L125) raises `OnAfterInsertTempPhysCountBuffer`

## CreatePhysInvtItemJnl

[Line 128](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L128), local.

- [142](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L142) raises `OnBeforeCreatePhysInvtItemJnl`, IsHandled
- [147](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L147) calls [Report 7380 Calculate Phys. Invt. Counting](https://jonas-paprotka.de/ref/report/7380-calculate-phys-invt-counting/) `SetItemJnlLine`
- [150](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L150) calls [Report 7380 Calculate Phys. Invt. Counting](https://jonas-paprotka.de/ref/report/7380-calculate-phys-invt-counting/) `GetRequest`
- [156](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L156) calls `CalcInvtQtyOnHand`
- [161](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L161) calls `PrintPhysInvtList`

## CreatePhysInvtWhseJnl

[Line 165](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L165), local.

- [181](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L181) raises `OnCreatePhysInvtWhseJnlOnBeforeCalculatePhysInvtCountingRunModal`, IsHandled
- [183](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L183) calls [Report 7380 Calculate Phys. Invt. Counting](https://jonas-paprotka.de/ref/report/7380-calculate-phys-invt-counting/) `SetWhseJnlLine`
- [187](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L187) calls [Report 7380 Calculate Phys. Invt. Counting](https://jonas-paprotka.de/ref/report/7380-calculate-phys-invt-counting/) `GetRequest`
- [194](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L194) raises `OnBeforeCalcWhseQtyOnHand`, IsHandled
- [196](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L196) calls `CalcWhseQtyOnHand`
- [202](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L202) raises `OnBeforePrintWhseInvtList`, IsHandled
- [204](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L204) calls `PrintWhseInvtList`

## CalcInvtQtyOnHand

[Line 209](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L209), local.

- [216](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L216) raises `OnBeforeCalcInvtQtyOnHand`, IsHandled
- [220](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L220) calls [Report 790 Calculate Inventory](https://jonas-paprotka.de/ref/report/790-calculate-inventory/) `InitializeRequest`
- [221](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L221) calls [Report 790 Calculate Inventory](https://jonas-paprotka.de/ref/report/790-calculate-inventory/) `SetItemJnlLine`
- [222](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L222) calls [Report 790 Calculate Inventory](https://jonas-paprotka.de/ref/report/790-calculate-inventory/) `InitializePhysInvtCount`
- [225](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L225) calls [Report 790 Calculate Inventory](https://jonas-paprotka.de/ref/report/790-calculate-inventory/) `UseRequestPage`
- [226](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L226) calls [Report 790 Calculate Inventory](https://jonas-paprotka.de/ref/report/790-calculate-inventory/) `SetHideValidationDialog`

## CalcWhseQtyOnHand

[Line 239](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L239), local.

- [244](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L244) calls [Report 7390 Whse. Calculate Inventory](https://jonas-paprotka.de/ref/report/7390-whse-calculate-inventory/) `InitializeRequest`
- [245](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L245) calls [Report 7390 Whse. Calculate Inventory](https://jonas-paprotka.de/ref/report/7390-whse-calculate-inventory/) `InitializePhysInvtCount`
- [248](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L248) calls [Report 7390 Whse. Calculate Inventory](https://jonas-paprotka.de/ref/report/7390-whse-calculate-inventory/) `SetWhseJnlLine`
- [249](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L249) calls [Report 7390 Whse. Calculate Inventory](https://jonas-paprotka.de/ref/report/7390-whse-calculate-inventory/) `UseRequestPage`
- [250](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L250) calls [Report 7390 Whse. Calculate Inventory](https://jonas-paprotka.de/ref/report/7390-whse-calculate-inventory/) `SetHideValidationDialog`

## CalcPeriod

[Line 262](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L262).

- [289](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L289) calls `FindCurrentPhysInventoryPeriod`
- [300](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L300) calls `FindCurrentPhysInventoryPeriod`

## PrintPhysInvtList

[Line 375](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L375), local.

- [381](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L381) raises `OnBeforePrintPhysInvtList`, IsHandled
- [389](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L389) calls [Report 722 Phys. Inventory List](https://jonas-paprotka.de/ref/report/722-phys-inventory-list/) `UseRequestPage`
- [390](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L390) calls [Report 722 Phys. Inventory List](https://jonas-paprotka.de/ref/report/722-phys-inventory-list/) `Initialize`
- [402](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L402) calls [Report 722 Phys. Inventory List](https://jonas-paprotka.de/ref/report/722-phys-inventory-list/) `UseRequestPage`
- [403](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L403) calls [Report 722 Phys. Inventory List](https://jonas-paprotka.de/ref/report/722-phys-inventory-list/) `Initialize`

## PrintWhseInvtList

[Line 415](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L415), local.

- [432](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L432) calls [Report 7307 Whse. Phys. Inventory List](https://jonas-paprotka.de/ref/report/7307-whse-phys-inventory-list/) `UseRequestPage`
- [433](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L433) calls [Report 7307 Whse. Phys. Inventory List](https://jonas-paprotka.de/ref/report/7307-whse-phys-inventory-list/) `Initialize`
- [451](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L451) calls [Report 7307 Whse. Phys. Inventory List](https://jonas-paprotka.de/ref/report/7307-whse-phys-inventory-list/) `UseRequestPage`
- [452](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L452) calls [Report 7307 Whse. Phys. Inventory List](https://jonas-paprotka.de/ref/report/7307-whse-phys-inventory-list/) `Initialize`

## UpdateSKUPhysInvtCount

[Line 465](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L465).

- [467](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L467) raises `OnBeforeUpdateSKUPhysInvtCount`
- [483](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L483) calls `GetPhysInvtCount`
- [486](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L486) calls `CalcPeriod`
- [489](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L489) writes [Table 5700 Stockkeeping Unit](https://jonas-paprotka.de/ref/table/5700-stockkeeping-unit/) Modify
- [492](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L492) raises `OnAfterUpdateSKUPhysInvtCount`

## UpdateItemPhysInvtCount

[Line 495](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L495).

- [511](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L511) calls `GetPhysInvtCount`
- [514](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L514) calls `CalcPeriod`
- [517](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L517) writes [Table 27 Item](https://jonas-paprotka.de/ref/table/27-item/) Modify

## UpdateItemSKUListPhysInvtCount

[Line 521](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L521).

- [530](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L530) calls `UpdateItemPhysInvtCount`
- [537](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L537) calls `UpdateSKUPhysInvtCount`

## AddToTempItemSKUList

[Line 541](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L541).

- [545](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L545) calls `InsertTempItem`
- [547](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L547) calls `InsertTempSKU`

## InsertTempItem

[Line 551](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L551), local.

- [558](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L558) writes [Table 27 Item](https://jonas-paprotka.de/ref/table/27-item/) Insert

## InsertTempSKU

[Line 561](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L561), local.

- [570](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L570) writes [Table 5700 Stockkeeping Unit](https://jonas-paprotka.de/ref/table/5700-stockkeeping-unit/) Insert

## InitTempItemSKUList

[Line 573](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L573).

- [575](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L575) calls `SetHideValidationDialog`
- [577](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L577) writes [Table 27 Item](https://jonas-paprotka.de/ref/table/27-item/) DeleteAll
- [578](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L578) writes [Table 5700 Stockkeeping Unit](https://jonas-paprotka.de/ref/table/5700-stockkeeping-unit/) DeleteAll

## CreatePhysInvtOrderLines

[Line 592](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L592), local.

- [604](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L604) raises `OnBeforeCreatePhysInvtOrderLines`, IsHandled
- [609](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L609) calls [Report 5884 Calc. Phys. Invt. Order Count](https://jonas-paprotka.de/ref/report/5884-calc-phys-invt-order-count/) `GetRequest`
- [615](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L615) calls [Report 5880 Calc. Phys. Invt. Order Lines](https://jonas-paprotka.de/ref/report/5880-calc-phys-invt-order-lines/) `SetPhysInvtOrderHeader`
- [616](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L616) calls [Report 5880 Calc. Phys. Invt. Order Lines](https://jonas-paprotka.de/ref/report/5880-calc-phys-invt-order-lines/) `InitializeInvtCount`
- [619](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L619) calls [Report 5880 Calc. Phys. Invt. Order Lines](https://jonas-paprotka.de/ref/report/5880-calc-phys-invt-order-lines/) `SetHideValidationDialog`
- [620](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L620) calls [Report 5880 Calc. Phys. Invt. Order Lines](https://jonas-paprotka.de/ref/report/5880-calc-phys-invt-order-lines/) `InitializeRequest`
- [621](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L621) calls [Report 5880 Calc. Phys. Invt. Order Lines](https://jonas-paprotka.de/ref/report/5880-calc-phys-invt-order-lines/) `UseRequestPage`
- [630](https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/source/#L630) raises `OnCreatePhysInvtOrderLinesOnBeforeCalcPhysInvtOrderLinesRunModal`

## Source

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

JOP-AL, 2026-11-20.
