Share via


Codeunit "Calc. Item Plan - Plan Wksh."

ID 5431
Namespace: Microsoft.Manufacturing.Planning

Properties

Name Value
TableNo Table Microsoft.Inventory.Item.Item

Methods

Initialize

procedure Initialize(NewFromDate: Date, NewToDate: Date, NewMPS: Boolean, NewMRP: Boolean, NewRespectPlanningParm: Boolean)

Parameters

Name Type Description
NewFromDate Date
NewToDate Date
NewMPS Boolean
NewMRP Boolean
NewRespectPlanningParm Boolean

Finalize

procedure Finalize()

SetTemplAndWorksheet

procedure SetTemplAndWorksheet(TemplateName: Code[10], WorksheetName: Code[10], NetChange2: Boolean)

Parameters

Name Type Description
TemplateName Code[10]
WorksheetName Code[10]
NetChange2 Boolean

SetParm

procedure SetParm(Forecast: Code[10], ExclBefore: Date, var Item2: Record Item)

Parameters

Name Type Description
Forecast Code[10]
ExclBefore Date
Item2 Table Microsoft.Inventory.Item.Item

SetResiliencyOn

procedure SetResiliencyOn()

GetResiliencyError

procedure GetResiliencyError(var PlanningErrorLogEntry: Record "Planning Error Log"): Boolean

Parameters

Name Type Description
PlanningErrorLogEntry Table Microsoft.Inventory.Planning."Planning Error Log"

Returns

Type Description
Boolean

ClearInvtProfileOffsetting

procedure ClearInvtProfileOffsetting()

Events

OnBeforeCheckPreconditions

[IntegrationEvent(False,False)]
local procedure OnBeforeCheckPreconditions(var Item: Record Item, MPS: Boolean, MRP: Boolean, FromDate: Date, ToDate: Date, var IsHandled: Boolean)

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
MPS Boolean
MRP Boolean
FromDate Date
ToDate Date
IsHandled Boolean

OnBeforeCalculateAndGetPlanningCompList

Obsolete

This element will become obsolete from version 27.0. Replaced by event OnBeforeCalculateAndGetPlanningComponents()

[Obsolete(Replaced by event OnBeforeCalculateAndGetPlanningComponents(),27.0)]
[IntegrationEvent(False,False)]
local procedure 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")

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
CurrTemplateName Code[10]
CurrWorksheetName Code[10]
ToDate Date
FromDate Date
UseForecast Code[10]
ExcludeForecastBefore Date
MfgSetup Table Microsoft.Manufacturing.Setup."Manufacturing Setup"
MRP Boolean
RespectPlanningParm Boolean
TempPlanningCompList Table Microsoft.Inventory.Planning."Planning Component"
IsHandled Boolean
InventoryProfileOffsetting Codeunit Microsoft.Inventory.Tracking."Inventory Profile Offsetting"

OnBeforeCalculateAndGetPlanningComponents

[IntegrationEvent(False,False)]
local procedure OnBeforeCalculateAndGetPlanningComponents(var Item: Record Item, CurrTemplateName: Code[10], CurrWorksheetName: Code[10], ToDate: Date, FromDate: Date, UseForecast: Code[10], ExcludeForecastBefore: Date, MRP: Boolean, RespectPlanningParm: Boolean, var TempPlanningCompList: Record "Planning Component" temporary, var IsHandled: Boolean, var InventoryProfileOffsetting: Codeunit "Inventory Profile Offsetting")

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
CurrTemplateName Code[10]
CurrWorksheetName Code[10]
ToDate Date
FromDate Date
UseForecast Code[10]
ExcludeForecastBefore Date
MRP Boolean
RespectPlanningParm Boolean
TempPlanningCompList Table Microsoft.Inventory.Planning."Planning Component"
IsHandled Boolean
InventoryProfileOffsetting Codeunit Microsoft.Inventory.Tracking."Inventory Profile Offsetting"

OnBeforePlanThisItem

[IntegrationEvent(False,False)]
local procedure 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)

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
IsHandled Boolean
MPS Boolean
MRP Boolean
NetChange Boolean
FromDate Date
ToDate Date
UseForecast Code[10]
RespectPlanningParm Boolean
Result Boolean

OnCodeOnAfterGetPlanningComponents

[IntegrationEvent(False,False)]
local procedure OnCodeOnAfterGetPlanningComponents(Item: Record Item)

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item

OnCodeOnAfterSetReqLineFilters

[IntegrationEvent(False,False)]
local procedure OnCodeOnAfterSetReqLineFilters(var ReqLineExtern: Record "Requisition Line", CurrTemplateName: Code[10], CurrWorksheetName: Code[10], var FromDate: Date, var ToDate: Date)

Parameters

Name Type Description
ReqLineExtern Table Microsoft.Inventory.Requisition."Requisition Line"
CurrTemplateName Code[10]
CurrWorksheetName Code[10]
FromDate Date
ToDate Date

OnCodeOnBeforeInvtProfileOffsettingSetParm

[IntegrationEvent(False,False)]
local procedure OnCodeOnBeforeInvtProfileOffsettingSetParm(Item: Record Item)

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item

OnCodeOnBeforeTempItemListInsert

[IntegrationEvent(False,False)]
local procedure OnCodeOnBeforeTempItemListInsert(TempItemList: Record Item temporary, var IsHandled: Boolean)

Parameters

Name Type Description
TempItemList Table Microsoft.Inventory.Item.Item
IsHandled Boolean

OnPlanThisItemOnBeforeCheckServJobPlanningLines

[IntegrationEvent(False,False)]
local procedure 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)

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
IsHandled Boolean
MPS Boolean
MRP Boolean
NetChange Boolean
FromDate Date
ToDate Date
UseForecast Code[10]
RespectPlanningParm Boolean
Result Boolean
DoExit Boolean

OnPlanThisItemOnBeforeExitMPS

[IntegrationEvent(False,False)]
local procedure OnPlanThisItemOnBeforeExitMPS(var Item: Record Item, var LinesExist: Boolean)

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
LinesExist Boolean

OnAfterCode

[IntegrationEvent(False,False)]
local procedure OnAfterCode(var TempItemList: Record Item temporary, var FromDate: Date, var ToDate: Date)

Parameters

Name Type Description
TempItemList Table Microsoft.Inventory.Item.Item
FromDate Date
ToDate Date

OnAfterReqLineExternDelete

[IntegrationEvent(False,False)]
local procedure OnAfterReqLineExternDelete(var Item: Record Item)

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item

OnProdOrderLineIsEmpty

[IntegrationEvent(False,False)]
local procedure OnProdOrderLineIsEmpty(var Item: Record Item, var Result: Boolean)

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
Result Boolean

See also