---
title: "Codeunit 5431 Calc. Item Plan - Plan Wksh."
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/5431-calc-item-plan-plan-wksh/
type: codeunit
id: 5431
name: "Calc. Item Plan - Plan Wksh."
app: "Base Application"
namespace: Microsoft.Manufacturing.Planning
versions: "17-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/codeunit/5431-calc-item-plan-plan-wksh/source/29/"
checked: 2026-09-20
subject: "Microsoft Dynamics 365 Business Central"
license: "Content © 2026 Jonas Paprotka. Quote freely with attribution and a link."
---

# Codeunit 5431 Calc. Item Plan - Plan Wksh.

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/5431-calc-item-plan-plan-wksh/

| | |
| --- | --- |
| App | Base Application |
| Namespace | Microsoft.Manufacturing.Planning |
| Versions | 17-28 |
| Source file | Inventory/Planning/CalcItemPlanPlanWksh.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| Initialize | (Date, Date, Boolean, Boolean, Boolean) | - | public | 17-28 | - | - |
| Finalize | () | - | public | 17-28 | - | - |
| SetTemplAndWorksheet | (Code[10], Code[10], Boolean) | - | public | 17-28 | - | - |
| SetParm | (Code[10], Date, var Record Item) | - | public | 17-28 | - | - |
| SetResiliencyOn | () | - | public | 17-28 | - | - |
| GetResiliencyError | (var Record Planning Error Log) | Boolean | public | 17-28 | - | - |
| ClearInvtProfileOffsetting | () | - | public | 17-28 | - | - |
| GetResiliencyErrors | (var Record Planning Error Log) | Boolean | public | 28 | - | - |
| GetPlanningSkippedForMissingSKUPolicy | () | Boolean | public | 28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnBeforeCheckPreconditions | (var Record Item, Boolean, Boolean, Date, Date, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforePlanThisItem | (Record Item, var Boolean) | 17-18 | - | - |
| Integration event | OnCodeOnAfterGetPlanningComponents | (Record Item) | 17-28 | - | - |
| Integration event | OnCodeOnAfterSetReqLineFilters | (var Record Requisition Line) | 17-18 | - | - |
| Integration event | OnCodeOnBeforeInvtProfileOffsettingSetParm | (Record Item) | 17-28 | - | - |
| Integration event | OnBeforeCalculateAndGetPlanningCompList | (var Record Item, Code[10], Code[10], Date, Date, Code[10], Date, Record Manufacturing Setup, Boolean, Boolean, var Record Planning Component, var Boolean) | 18-19 | - | - |
| Integration event | OnBeforePlanThisItem | (Record Item, var Boolean, Boolean, Boolean, Boolean, Date, Date, Code[10], Boolean, var Boolean) | 19-20 | - | - |
| Integration event | OnCodeOnAfterSetReqLineFilters | (var Record Requisition Line, Code[10], Code[10]) | 19-24 | - | - |
| Integration event | OnBeforeCalculateAndGetPlanningCompList | (var Record Item, Code[10], Code[10], Date, Date, Code[10], Date, Record Manufacturing Setup, Boolean, Boolean, var Record Planning Component, var Boolean, var Codeunit Inventory Profile Offsetting) | 20-28 | Pending 27.0 | Replaced by event OnBeforeCalculateAndGetPlanningComponents() |
| Integration event | OnCodeOnBeforeTempItemListInsert | (Record Item, var Boolean) | 20-28 | - | - |
| Integration event | OnBeforePlanThisItem | (Record Item, var Boolean, Boolean, Boolean, Boolean, var Date, Date, Code[10], Boolean, var Boolean) | 21-28 | - | - |
| Integration event | OnPlanThisItemOnBeforeCheckServJobPlanningLines | (var Record Item, var Boolean, Boolean, Boolean, Boolean, var Date, Date, Code[10], Boolean, var Boolean, var Boolean) | 23-28 | - | - |
| Integration event | OnCodeOnAfterSetReqLineFilters | (var Record Requisition Line, Code[10], Code[10], var Date, var Date) | 25-28 | - | - |
| Integration event | OnPlanThisItemOnBeforeExitMPS | (var Record Item, var Boolean) | 25-28 | - | - |
| Integration event | OnAfterCode | (var Record Item, var Date, var Date) | 25-28 | - | - |
| Integration event | OnBeforeCalculateAndGetPlanningComponents | (var Record Item, Code[10], Code[10], Date, Date, Code[10], Date, Boolean, Boolean, var Record Planning Component, var Boolean, var Codeunit Inventory Profile Offsetting) | 27-28 | - | - |
| Integration event | OnAfterReqLineExternDelete | (var Record Item) | 27-28 | - | - |
| Integration event | OnProdOrderLineIsEmpty | (var Record Item, var Boolean) | 27-28 | - | - |

## Source

Symbols: Microsoft.BaseApplication.symbols.437dbf0e-84ff-417a-965d-ed2bb9650972, https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json, highest build per major on 2026-09-20.
AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at a66254c3b8b5bb1cea290dc8f9d097aec4381153.

Jonas Paprotka, 2026-09-20.
