Codeunit 5431 Calc. Item Plan - Plan Wksh.

Base Application, Microsoft.Manufacturing.Planning

Source AL, 405 lines

src/Layers/W1/BaseApp/Inventory/Planning/CalcItemPlanPlanWksh.Codeunit.allines 17 to 32 of 405, Copyright (c) Microsoft Corporation. MIT

codeunit 5431 "Calc. Item Plan - Plan Wksh."{    TableNo = Item;    trigger OnRun()    begin        Item.Copy(Rec);        Code();        Rec := Item;    end;    var        Item: Record Item;        TempPlanningCompList: Record "Planning Component" temporary;        TempItemList: Record Item temporary;        InvtProfileOffsetting: Codeunit "Inventory Profile Offsetting";

All 405 lines

Events 13 in 29

[IntegrationEvent] OnBeforeCheckPreconditions(var Item: Record Item; MPS: Boolean; MRP: Boolean; FromDate: Date; ToDate: Date; var IsHandled: Boolean)17-29
[IntegrationEvent] OnCodeOnAfterGetPlanningComponents(Item: Record Item)17-29
[IntegrationEvent] OnCodeOnBeforeInvtProfileOffsettingSetParm(Item: Record Item)17-29
[IntegrationEvent] OnBeforeCalculateAndGetPlanningCompList(var Item: Record Item; CurrTemplateName: Code[10]; CurrWorksheetName: Code[10]; ToDate: Date; FromDate: Date; UseForecast: Code[10]; ExcludeForecastBefore: Date; MfgSetup: Record "Manufacturing Setup"; MRP: Boolean; RespectPlanningParm: Boolean; var TempPlanningCompList: Record "Planning Component" temporary; var IsHandled: Boolean; var InventoryProfileOffsetting: Codeunit "Inventory Profile Offsetting")new in 20
Pending, tag 27.0, obsolete since 27: Replaced by event OnBeforeCalculateAndGetPlanningComponents()
[IntegrationEvent] OnCodeOnBeforeTempItemListInsert(TempItemList: Record Item temporary; var IsHandled: Boolean)new in 20
[IntegrationEvent] OnBeforePlanThisItem(Item: Record Item; var IsHandled: Boolean; MPS: Boolean; MRP: Boolean; NetChange: Boolean; var FromDate: Date; ToDate: Date; UseForecast: Code[10]; RespectPlanningParm: Boolean; var Result: Boolean)new in 21
[IntegrationEvent] OnPlanThisItemOnBeforeCheckServJobPlanningLines(var Item: Record Item; var IsHandled: Boolean; MPS: Boolean; MRP: Boolean; NetChange: Boolean; var FromDate: Date; ToDate: Date; UseForecast: Code[10]; RespectPlanningParm: Boolean; var Result: Boolean; var DoExit: Boolean)new in 23

All 18 events in 17-29

Public procedures 9 in 29

Initialize(NewFromDate: Date; NewToDate: Date; NewMPS: Boolean; NewMRP: Boolean; NewRespectPlanningParm: Boolean)17-29
Finalize()17-29
SetTemplAndWorksheet(TemplateName: Code[10]; WorksheetName: Code[10]; NetChange2: Boolean)17-29
SetParm(Forecast: Code[10]; ExclBefore: Date; var Item2: Record Item)17-29
SetResiliencyOn()17-29
GetResiliencyError(var PlanningErrorLogEntry: Record "Planning Error Log"): Boolean17-29

All 9 procedures

Changes 2 in 28

List17181920212223242526272829
Procedures2
Events1432144
GetResiliencyErrors(var PlanningErrorLogEntry: Record "Planning Error Log"): Booleannew in 28
added
GetPlanningSkippedForMissingSKUPolicy(): Booleannew in 28
added

All 21 changes in 17-29