Codeunit "Mfg. Planning Line Management"

ID 99000819
Namespace: Microsoft.Inventory.Planning

Properties

Name Value
Permissions TableData "Manufacturing Setup" = rm, TableData "Routing Header" = r, TableData "Production BOM Header" = r, TableData "Production BOM Line" = r, TableData "Prod. Order Capacity Need" = rd, TableData "Planning Component" = rimd, TableData "Planning Routing Line" = rimd

Events

OnAfterIsPlannedCompFound

[IntegrationEvent(False,False)]
local procedure OnAfterIsPlannedCompFound(var PlanningComp: Record "Planning Component", var ProdBOMLine: Record "Production BOM Line", var IsFound: Boolean, var SKU: Record "Stockkeeping Unit")

Parameters

Name Type Description
PlanningComp Table Microsoft.Inventory.Planning."Planning Component"
ProdBOMLine Table Microsoft.Manufacturing.ProductionBOM."Production BOM Line"
IsFound Boolean
SKU Table Microsoft.Inventory.Location."Stockkeeping Unit"

OnAfterSetPlanningLevelCode

[IntegrationEvent(False,False)]
local procedure OnAfterSetPlanningLevelCode(var PlanningComponent: Record "Planning Component", var ProdBOMLine: Record "Production BOM Line", var SKU: Record "Stockkeeping Unit", var ComponentSKU: Record "Stockkeeping Unit", var Result: Boolean)

Parameters

Name Type Description
PlanningComponent Table Microsoft.Inventory.Planning."Planning Component"
ProdBOMLine Table Microsoft.Manufacturing.ProductionBOM."Production BOM Line"
SKU Table Microsoft.Inventory.Location."Stockkeeping Unit"
ComponentSKU Table Microsoft.Inventory.Location."Stockkeeping Unit"
Result Boolean

OnAfterTransferRouting

[IntegrationEvent(False,False)]
local procedure OnAfterTransferRouting(var RequisitionLine: Record "Requisition Line")

Parameters

Name Type Description
RequisitionLine Table Microsoft.Inventory.Requisition."Requisition Line"

OnBeforeTransferRoutingLine

[IntegrationEvent(False,False)]
local procedure OnBeforeTransferRoutingLine(var PlanningRoutingLine: Record "Planning Routing Line", RequisitionLine: Record "Requisition Line", RoutingLine: Record "Routing Line", var IsHandled: Boolean)

Parameters

Name Type Description
PlanningRoutingLine Table Microsoft.Manufacturing.Routing."Planning Routing Line"
RequisitionLine Table Microsoft.Inventory.Requisition."Requisition Line"
RoutingLine Table Microsoft.Manufacturing.Routing."Routing Line"
IsHandled Boolean

OnTransferBOMOnBeforePlanningRtngLineFind

[IntegrationEvent(False,False)]
local procedure OnTransferBOMOnBeforePlanningRtngLineFind(var PlanningRoutingLine: Record "Planning Routing Line", ProductionBOMLine: Record "Production BOM Line", RequisitionLine: Record "Requisition Line")

Parameters

Name Type Description
PlanningRoutingLine Table Microsoft.Manufacturing.Routing."Planning Routing Line"
ProductionBOMLine Table Microsoft.Manufacturing.ProductionBOM."Production BOM Line"
RequisitionLine Table Microsoft.Inventory.Requisition."Requisition Line"

OnTransferRoutingLineOnBeforeCalcRoutingCostPerUnit

[IntegrationEvent(False,False)]
local procedure OnTransferRoutingLineOnBeforeCalcRoutingCostPerUnit(var PlanningRoutingLine: Record "Planning Routing Line", ReqLine: Record "Requisition Line", RoutingLine: Record "Routing Line")

Parameters

Name Type Description
PlanningRoutingLine Table Microsoft.Manufacturing.Routing."Planning Routing Line"
ReqLine Table Microsoft.Inventory.Requisition."Requisition Line"
RoutingLine Table Microsoft.Manufacturing.Routing."Routing Line"

OnTransferRoutingLineOnBeforeValidateDirectUnitCost

[IntegrationEvent(False,False)]
local procedure OnTransferRoutingLineOnBeforeValidateDirectUnitCost(var ReqLine: Record "Requisition Line", var RoutingLine: Record "Routing Line", var PlanningRoutingLine: Record "Planning Routing Line")

Parameters

Name Type Description
ReqLine Table Microsoft.Inventory.Requisition."Requisition Line"
RoutingLine Table Microsoft.Manufacturing.Routing."Routing Line"
PlanningRoutingLine Table Microsoft.Manufacturing.Routing."Planning Routing Line"

OnAfterTransferRtngLine

[IntegrationEvent(False,False)]
local procedure OnAfterTransferRtngLine(var ReqLine: Record "Requisition Line", var RoutingLine: Record "Routing Line", var PlanningRoutingLine: Record "Planning Routing Line")

Parameters

Name Type Description
ReqLine Table Microsoft.Inventory.Requisition."Requisition Line"
RoutingLine Table Microsoft.Manufacturing.Routing."Routing Line"
PlanningRoutingLine Table Microsoft.Manufacturing.Routing."Planning Routing Line"

OnBeforeTransferBOM

[IntegrationEvent(False,False)]
local procedure OnBeforeTransferBOM(ProdBOMNo: Code[20], Level: Integer, LineQtyPerUOM: Decimal, ItemQtyPerUOM: Decimal, var RequisitionLine: Record "Requisition Line", Blocked: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
ProdBOMNo Code[20]
Level Integer
LineQtyPerUOM Decimal
ItemQtyPerUOM Decimal
RequisitionLine Table Microsoft.Inventory.Requisition."Requisition Line"
Blocked Boolean
IsHandled Boolean

OnTransferBOMOnBeforeGetDefaultBin

[IntegrationEvent(False,False)]
local procedure OnTransferBOMOnBeforeGetDefaultBin(var PlanningComponent: Record "Planning Component", var ProductionBOMLine: Record "Production BOM Line", RequisitionLine: Record "Requisition Line", var StockkeepingUnit: Record "Stockkeeping Unit")

Parameters

Name Type Description
PlanningComponent Table Microsoft.Inventory.Planning."Planning Component"
ProductionBOMLine Table Microsoft.Manufacturing.ProductionBOM."Production BOM Line"
RequisitionLine Table Microsoft.Inventory.Requisition."Requisition Line"
StockkeepingUnit Table Microsoft.Inventory.Location."Stockkeeping Unit"

OnTransferBOMOnAfterProdBOMLineSetFilters

[IntegrationEvent(False,False)]
local procedure OnTransferBOMOnAfterProdBOMLineSetFilters(var ProdBOMLine: Record "Production BOM Line", RequisitionLine: Record "Requisition Line")

Parameters

Name Type Description
ProdBOMLine Table Microsoft.Manufacturing.ProductionBOM."Production BOM Line"
RequisitionLine Table Microsoft.Inventory.Requisition."Requisition Line"

OnTransferBOMOnBeforeTransferPlanningComponent

[IntegrationEvent(False,False)]
local procedure OnTransferBOMOnBeforeTransferPlanningComponent(var RequisitionLine: Record "Requisition Line", var ProductionBOMLine: Record "Production BOM Line", Blocked: Boolean, var IsHandled: Boolean, Level: Integer)

Parameters

Name Type Description
RequisitionLine Table Microsoft.Inventory.Requisition."Requisition Line"
ProductionBOMLine Table Microsoft.Manufacturing.ProductionBOM."Production BOM Line"
Blocked Boolean
IsHandled Boolean
Level Integer

OnTransferBOMOnBeforeTransferProductionBOM

[IntegrationEvent(False,False)]
local procedure OnTransferBOMOnBeforeTransferProductionBOM(var ReqQty: Decimal, ProductionBOMLine: Record "Production BOM Line", LineQtyPerUOM: Decimal, ItemQtyPerUOM: Decimal, RequisitionLine: Record "Requisition Line")

Parameters

Name Type Description
ReqQty Decimal
ProductionBOMLine Table Microsoft.Manufacturing.ProductionBOM."Production BOM Line"
LineQtyPerUOM Decimal
ItemQtyPerUOM Decimal
RequisitionLine Table Microsoft.Inventory.Requisition."Requisition Line"

OnTransferBOMOnBeforeUpdatePlanningComp

[IntegrationEvent(False,False)]
local procedure OnTransferBOMOnBeforeUpdatePlanningComp(var ProductionBOMLine: Record "Production BOM Line", var UpdateCondition: Boolean, var IsHandled: Boolean, var ReqQty: Decimal)

Parameters

Name Type Description
ProductionBOMLine Table Microsoft.Manufacturing.ProductionBOM."Production BOM Line"
UpdateCondition Boolean
IsHandled Boolean
ReqQty Decimal

OnTransferBOMOnAfterCalculateReqQty

[IntegrationEvent(False,False)]
local procedure OnTransferBOMOnAfterCalculateReqQty(var ReqQty: Decimal, ProductionBOMLine: Record "Production BOM Line", PlanningRoutingLine: Record "Planning Routing Line", LineQtyPerUOM: Decimal, ItemQtyPerUOM: Decimal)

Parameters

Name Type Description
ReqQty Decimal
ProductionBOMLine Table Microsoft.Manufacturing.ProductionBOM."Production BOM Line"
PlanningRoutingLine Table Microsoft.Manufacturing.Routing."Planning Routing Line"
LineQtyPerUOM Decimal
ItemQtyPerUOM Decimal

OnBeforeTransferRouting

[IntegrationEvent(False,False)]
local procedure OnBeforeTransferRouting(var RequisitionLine: Record "Requisition Line", PlanningResilency: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
RequisitionLine Table Microsoft.Inventory.Requisition."Requisition Line"
PlanningResilency Boolean
IsHandled Boolean

OnBeforeModifyPlanningComponent

[IntegrationEvent(False,False)]
local procedure OnBeforeModifyPlanningComponent(var ReqLine: Record "Requisition Line", var ProductionBOMLine: Record "Production BOM Line", var PlanningComponent: Record "Planning Component", LineQtyPerUOM: Decimal, ItemQtyPerUOM: Decimal)

Parameters

Name Type Description
ReqLine Table Microsoft.Inventory.Requisition."Requisition Line"
ProductionBOMLine Table Microsoft.Manufacturing.ProductionBOM."Production BOM Line"
PlanningComponent Table Microsoft.Inventory.Planning."Planning Component"
LineQtyPerUOM Decimal
ItemQtyPerUOM Decimal

OnAfterTransferBOM

[IntegrationEvent(False,False)]
local procedure OnAfterTransferBOM(RequisitionLine: Record "Requisition Line", ProdBOMNo: Code[20], Level: Integer, LineQtyPerUOM: Decimal, ItemQtyPerUOM: Decimal)

Parameters

Name Type Description
RequisitionLine Table Microsoft.Inventory.Requisition."Requisition Line"
ProdBOMNo Code[20]
Level Integer
LineQtyPerUOM Decimal
ItemQtyPerUOM Decimal

OnBeforeInsertPlanningComponent

[IntegrationEvent(False,False)]
local procedure OnBeforeInsertPlanningComponent(var ReqLine: Record "Requisition Line", var ProductionBOMLine: Record "Production BOM Line", var PlanningComponent: Record "Planning Component", LineQtyPerUOM: Decimal, ItemQtyPerUOM: Decimal)

Parameters

Name Type Description
ReqLine Table Microsoft.Inventory.Requisition."Requisition Line"
ProductionBOMLine Table Microsoft.Manufacturing.ProductionBOM."Production BOM Line"
PlanningComponent Table Microsoft.Inventory.Planning."Planning Component"
LineQtyPerUOM Decimal
ItemQtyPerUOM Decimal

See also