Codeunit "Mfg. Carry Out Action"

ID 99000818
Namespace: Microsoft.Inventory.Requisition

Properties

Name Value
Permissions TableData "Prod. Order Capacity Need" = rid

Methods

CarryOutActionsFromProdOrder

procedure CarryOutActionsFromProdOrder(RequisitionLine: Record "Requisition Line", ProdOrderChoice: Enum "Planning Create Prod. Order", ProdWkshTempl: Code[10], ProdWkshName: Code[10], var TempDocumentEntry: Record "Document Entry" temporary, var sender: Codeunit "Carry Out Action"): Boolean

Parameters

Name Type Description
RequisitionLine Table Microsoft.Inventory.Requisition."Requisition Line"
ProdOrderChoice Enum Microsoft.Manufacturing.Document."Planning Create Prod. Order"
ProdWkshTempl Code[10]
ProdWkshName Code[10]
TempDocumentEntry Table Microsoft.Foundation.Navigate."Document Entry"
sender Codeunit Microsoft.Inventory.Requisition."Carry Out Action"

Returns

Type Description
Boolean

ProdOrderChgAndReshedule

procedure ProdOrderChgAndReshedule(RequisitionLine: Record "Requisition Line"): Boolean

Parameters

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

Returns

Type Description
Boolean

InsertProductionOrder

procedure InsertProductionOrder(RequisitionLine: Record "Requisition Line", ProdOrderChoice: Enum "Planning Create Prod. Order", var TempDocumentEntry: Record "Document Entry" temporary)

Parameters

Name Type Description
RequisitionLine Table Microsoft.Inventory.Requisition."Requisition Line"
ProdOrderChoice Enum Microsoft.Manufacturing.Document."Planning Create Prod. Order"
TempDocumentEntry Table Microsoft.Foundation.Navigate."Document Entry"

InsertProdOrderLine

procedure InsertProdOrderLine(RequisitionLine: Record "Requisition Line", ProductionOrder: Record "Production Order", Item: Record Item)

Parameters

Name Type Description
RequisitionLine Table Microsoft.Inventory.Requisition."Requisition Line"
ProductionOrder Table Microsoft.Manufacturing.Document."Production Order"
Item Table Microsoft.Inventory.Item.Item

ReserveBindingOrderToProd

procedure ReserveBindingOrderToProd(var ProdOrderLine: Record "Prod. Order Line", var RequisitionLine: Record "Requisition Line")

Parameters

Name Type Description
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
RequisitionLine Table Microsoft.Inventory.Requisition."Requisition Line"

TransferRouting

procedure TransferRouting(RequisitionLine: Record "Requisition Line", ProductionOrder: Record "Production Order", RoutingNo: Code[20], RoutingRefNo: Integer): Boolean

Parameters

Name Type Description
RequisitionLine Table Microsoft.Inventory.Requisition."Requisition Line"
ProductionOrder Table Microsoft.Manufacturing.Document."Production Order"
RoutingNo Code[20]
RoutingRefNo Integer

Returns

Type Description
Boolean

TransferBOM

procedure TransferBOM(RequisitionLine: Record "Requisition Line", ProductionOrder: Record "Production Order", ProdOrderLineNo: Integer)

Parameters

Name Type Description
RequisitionLine Table Microsoft.Inventory.Requisition."Requisition Line"
ProductionOrder Table Microsoft.Manufacturing.Document."Production Order"
ProdOrderLineNo Integer

TransferCapNeed

procedure TransferCapNeed(RequisitionLine: Record "Requisition Line", ProductionOrder: Record "Production Order", RoutingNo: Code[20], RoutingRefNo: Integer)

Parameters

Name Type Description
RequisitionLine Table Microsoft.Inventory.Requisition."Requisition Line"
ProductionOrder Table Microsoft.Manufacturing.Document."Production Order"
RoutingNo Code[20]
RoutingRefNo Integer

UpdateComponentLink

procedure UpdateComponentLink(ProdOrderLine: Record "Prod. Order Line")

Parameters

Name Type Description
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"

Events

OnInsertProductionOrderOnProdOrderChoiceCaseElse

[IntegrationEvent(False,False)]
local procedure OnInsertProductionOrderOnProdOrderChoiceCaseElse(ProdOrderChoice: Enum "Planning Create Prod. Order")

Parameters

Name Type Description
ProdOrderChoice Enum Microsoft.Manufacturing.Document."Planning Create Prod. Order"

OnBeforeSetProdOrderLineBinCodeFromPlanningRtngLines

[IntegrationEvent(False,False)]
local procedure OnBeforeSetProdOrderLineBinCodeFromPlanningRtngLines(ProdOrder: Record "Production Order", var ProdOrderLine: Record "Prod. Order Line", ReqLine: Record "Requisition Line", Item: Record Item, var IsHandled: Boolean)

Parameters

Name Type Description
ProdOrder Table Microsoft.Manufacturing.Document."Production Order"
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
ReqLine Table Microsoft.Inventory.Requisition."Requisition Line"
Item Table Microsoft.Inventory.Item.Item
IsHandled Boolean

OnBeforeUpdateProdOrderLineQuantity

[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateProdOrderLineQuantity(var ProdOrderLine: Record "Prod. Order Line", ReqLine: Record "Requisition Line", Item: Record Item, var IsHandled: Boolean)

Parameters

Name Type Description
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
ReqLine Table Microsoft.Inventory.Requisition."Requisition Line"
Item Table Microsoft.Inventory.Item.Item
IsHandled Boolean

OnCollectProdOrderForPrinting

[IntegrationEvent(False,False)]
local procedure OnCollectProdOrderForPrinting(var ProductionOrder: Record "Production Order")

Parameters

Name Type Description
ProductionOrder Table Microsoft.Manufacturing.Document."Production Order"

OnInsertProdOrderOnBeforeProdOrderInit

[IntegrationEvent(False,False)]
local procedure OnInsertProdOrderOnBeforeProdOrderInit(var ReqLine: Record "Requisition Line")

Parameters

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

OnProdOrderChgAndResheduleOnBeforeProdOrderModify

[IntegrationEvent(False,False)]
local procedure OnProdOrderChgAndResheduleOnBeforeProdOrderModify(var ProductionOrder: Record "Production Order", ProdOrderLine: Record "Prod. Order Line", RequisitionLine: Record "Requisition Line")

Parameters

Name Type Description
ProductionOrder Table Microsoft.Manufacturing.Document."Production Order"
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
RequisitionLine Table Microsoft.Inventory.Requisition."Requisition Line"

OnCarryOutActionsFromProdOrderOnAfterCalcPrintOrder

[IntegrationEvent(False,False)]
local procedure OnCarryOutActionsFromProdOrderOnAfterCalcPrintOrder(var PrintOrder: Boolean, ProdOrderChoice: Option)

Parameters

Name Type Description
PrintOrder Boolean
ProdOrderChoice Option

OnProdOrderChgAndResheduleOnAfterValidateQuantity

[IntegrationEvent(False,False)]
local procedure OnProdOrderChgAndResheduleOnAfterValidateQuantity(var ProdOrderLine: Record "Prod. Order Line", var RequisitionLine: Record "Requisition Line")

Parameters

Name Type Description
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
RequisitionLine Table Microsoft.Inventory.Requisition."Requisition Line"

OnAfterProdOrderChgAndReshedule

[IntegrationEvent(False,False)]
local procedure OnAfterProdOrderChgAndReshedule(var RequisitionLine: Record "Requisition Line", var ProdOrderLine: Record "Prod. Order Line")

Parameters

Name Type Description
RequisitionLine Table Microsoft.Inventory.Requisition."Requisition Line"
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"

OnInsertProdOrderOnAfterFindTempProdOrder

[IntegrationEvent(False,False)]
local procedure OnInsertProdOrderOnAfterFindTempProdOrder(var ReqLine: Record "Requisition Line", var ProdOrder: Record "Production Order", var HeaderExists: Boolean, var Item: Record Item)

Parameters

Name Type Description
ReqLine Table Microsoft.Inventory.Requisition."Requisition Line"
ProdOrder Table Microsoft.Manufacturing.Document."Production Order"
HeaderExists Boolean
Item Table Microsoft.Inventory.Item.Item

OnInsertProdOrderOnProdOrderChoiceNotFirmPlannedPrint

[IntegrationEvent(False,False)]
local procedure OnInsertProdOrderOnProdOrderChoiceNotFirmPlannedPrint(var ProdOrder: Record "Production Order", ProdOrderChoice: Enum "Planning Create Prod. Order", var IsHandled: Boolean)

Parameters

Name Type Description
ProdOrder Table Microsoft.Manufacturing.Document."Production Order"
ProdOrderChoice Enum Microsoft.Manufacturing.Document."Planning Create Prod. Order"
IsHandled Boolean

OnInsertProdOrderOnBeforeProdOrderInsert

[IntegrationEvent(False,False)]
local procedure OnInsertProdOrderOnBeforeProdOrderInsert(var ProdOrder: Record "Production Order", ReqLine: Record "Requisition Line")

Parameters

Name Type Description
ProdOrder Table Microsoft.Manufacturing.Document."Production Order"
ReqLine Table Microsoft.Inventory.Requisition."Requisition Line"

OnInsertProdOrderOnAfterProdOrderInsert

[IntegrationEvent(False,False)]
local procedure OnInsertProdOrderOnAfterProdOrderInsert(var ProdOrder: Record "Production Order", ReqLine: Record "Requisition Line")

Parameters

Name Type Description
ProdOrder Table Microsoft.Manufacturing.Document."Production Order"
ReqLine Table Microsoft.Inventory.Requisition."Requisition Line"

OnInsertProdOrderWithReqLine

[IntegrationEvent(False,False)]
local procedure OnInsertProdOrderWithReqLine(var ProductionOrder: Record "Production Order", var RequisitionLine: Record "Requisition Line")

Parameters

Name Type Description
ProductionOrder Table Microsoft.Manufacturing.Document."Production Order"
RequisitionLine Table Microsoft.Inventory.Requisition."Requisition Line"

OnAfterInsertProdOrder

[IntegrationEvent(False,False)]
local procedure OnAfterInsertProdOrder(var ProductionOrder: Record "Production Order", ProdOrderChoice: Integer, var RequisitionLine: Record "Requisition Line")

Parameters

Name Type Description
ProductionOrder Table Microsoft.Manufacturing.Document."Production Order"
ProdOrderChoice Integer
RequisitionLine Table Microsoft.Inventory.Requisition."Requisition Line"

OnInsertProdOrderLineOnBeforeProdOrderLineInit

[IntegrationEvent(False,False)]
local procedure OnInsertProdOrderLineOnBeforeProdOrderLineInit(var ReqLine: Record "Requisition Line", var Item: Record Item)

Parameters

Name Type Description
ReqLine Table Microsoft.Inventory.Requisition."Requisition Line"
Item Table Microsoft.Inventory.Item.Item

OnInsertProdOrderLineOnBeforeGetBinCode

[IntegrationEvent(False,False)]
local procedure OnInsertProdOrderLineOnBeforeGetBinCode(var ProdOrderLine: Record "Prod. Order Line", ReqLine: Record "Requisition Line")

Parameters

Name Type Description
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
ReqLine Table Microsoft.Inventory.Requisition."Requisition Line"

OnInsertProdOrderLineOnBeforeValidateUnitCost

[IntegrationEvent(False,False)]
local procedure OnInsertProdOrderLineOnBeforeValidateUnitCost(var RequisitionLine: Record "Requisition Line", ProductionOrder: Record "Production Order", var ProdOrderLine: Record "Prod. Order Line", Item: Record Item)

Parameters

Name Type Description
RequisitionLine Table Microsoft.Inventory.Requisition."Requisition Line"
ProductionOrder Table Microsoft.Manufacturing.Document."Production Order"
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
Item Table Microsoft.Inventory.Item.Item

OnInsertProdOrderLineWithReqLine

[IntegrationEvent(False,False)]
local procedure OnInsertProdOrderLineWithReqLine(var ProdOrderLine: Record "Prod. Order Line", var RequisitionLine: Record "Requisition Line")

Parameters

Name Type Description
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
RequisitionLine Table Microsoft.Inventory.Requisition."Requisition Line"

OnInsertProdOrderLineOnAfterProdOrderLineInsert

[IntegrationEvent(False,False)]
local procedure OnInsertProdOrderLineOnAfterProdOrderLineInsert(var ProdOrderLine: Record "Prod. Order Line", var RequisitionLine: Record "Requisition Line")

Parameters

Name Type Description
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
RequisitionLine Table Microsoft.Inventory.Requisition."Requisition Line"

OnInsertProdOrderLineOnBeforeModifyProdOrderLine

[IntegrationEvent(True,False)]
local procedure OnInsertProdOrderLineOnBeforeModifyProdOrderLine(var ProdOrderLine: Record "Prod. Order Line", var RequisitionLine: Record "Requisition Line")

Parameters

Name Type Description
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
RequisitionLine Table Microsoft.Inventory.Requisition."Requisition Line"

OnAfterInsertProdOrderLine

[IntegrationEvent(False,False)]
local procedure OnAfterInsertProdOrderLine(ReqLine: Record "Requisition Line", ProdOrder: Record "Production Order", var ProdOrderLine: Record "Prod. Order Line", Item: Record Item)

Parameters

Name Type Description
ReqLine Table Microsoft.Inventory.Requisition."Requisition Line"
ProdOrder Table Microsoft.Manufacturing.Document."Production Order"
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
Item Table Microsoft.Inventory.Item.Item

OnBeforeDeleteProdOrderLines

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

Parameters

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

OnInsertProdOrderLineOnAfterTransferRouting

[IntegrationEvent(False,False)]
local procedure OnInsertProdOrderLineOnAfterTransferRouting(var ProdOrderLine: Record "Prod. Order Line", var RefreshProdOrderLine: Boolean)

Parameters

Name Type Description
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
RefreshProdOrderLine Boolean

OnBeforeFinalizeOrderHeader

[IntegrationEvent(False,False)]
local procedure OnBeforeFinalizeOrderHeader(ProdOrder: Record "Production Order", PrintOrder: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
ProdOrder Table Microsoft.Manufacturing.Document."Production Order"
PrintOrder Boolean
IsHandled Boolean

OnAfterTransferPlanningRtngLine

[IntegrationEvent(False,False)]
local procedure OnAfterTransferPlanningRtngLine(var PlanningRtngLine: Record "Planning Routing Line", var ProdOrderRtngLine: Record "Prod. Order Routing Line")

Parameters

Name Type Description
PlanningRtngLine Table Microsoft.Manufacturing.Routing."Planning Routing Line"
ProdOrderRtngLine Table Microsoft.Manufacturing.Document."Prod. Order Routing Line"

OnAfterProdOrderRtngLineInsert

[IntegrationEvent(False,False)]
local procedure OnAfterProdOrderRtngLineInsert(var ProdOrderRoutingLine: Record "Prod. Order Routing Line", PlanningRoutingLine: Record "Planning Routing Line", ProdOrder: Record "Production Order", RequisitionLine: Record "Requisition Line")

Parameters

Name Type Description
ProdOrderRoutingLine Table Microsoft.Manufacturing.Document."Prod. Order Routing Line"
PlanningRoutingLine Table Microsoft.Manufacturing.Routing."Planning Routing Line"
ProdOrder Table Microsoft.Manufacturing.Document."Production Order"
RequisitionLine Table Microsoft.Inventory.Requisition."Requisition Line"

OnBeforeTransferBOM

[IntegrationEvent(False,False)]
local procedure OnBeforeTransferBOM(ReqLine: Record "Requisition Line", ProdOrder: Record "Production Order", ProdOrderLineNo: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
ReqLine Table Microsoft.Inventory.Requisition."Requisition Line"
ProdOrder Table Microsoft.Manufacturing.Document."Production Order"
ProdOrderLineNo Integer
IsHandled Boolean

OnTransferBOMOnBeforeProdOrderComp2Init

[IntegrationEvent(False,False)]
local procedure OnTransferBOMOnBeforeProdOrderComp2Init(var PlanningComponent: Record "Planning Component")

Parameters

Name Type Description
PlanningComponent Table Microsoft.Inventory.Planning."Planning Component"

OnAfterTransferPlanningComp

[IntegrationEvent(False,False)]
local procedure OnAfterTransferPlanningComp(var PlanningComponent: Record "Planning Component", var ProdOrderComponent: Record "Prod. Order Component")

Parameters

Name Type Description
PlanningComponent Table Microsoft.Inventory.Planning."Planning Component"
ProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"

OnTransferBOMOnAfterCopyProdBOMComments

[IntegrationEvent(False,False)]
local procedure OnTransferBOMOnAfterCopyProdBOMComments(var PlanningComponent: Record "Planning Component", var ProdOrderComponent: Record "Prod. Order Component")

Parameters

Name Type Description
PlanningComponent Table Microsoft.Inventory.Planning."Planning Component"
ProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"

OnBeforeTransferCapNeed

[IntegrationEvent(False,False)]
local procedure OnBeforeTransferCapNeed(ReqLine: Record "Requisition Line", ProdOrder: Record "Production Order", RoutingNo: Code[20], RoutingRefNo: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
ReqLine Table Microsoft.Inventory.Requisition."Requisition Line"
ProdOrder Table Microsoft.Manufacturing.Document."Production Order"
RoutingNo Code[20]
RoutingRefNo Integer
IsHandled Boolean

OnBeforeUpdateComponentLink

[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateComponentLink(ProdOrderLine: Record "Prod. Order Line", var IsHandled: Boolean)

Parameters

Name Type Description
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
IsHandled Boolean

OnCarryOutToReqWkshOnAfterPlanningRoutingLineInsert

[IntegrationEvent(False,False)]
local procedure OnCarryOutToReqWkshOnAfterPlanningRoutingLineInsert(var PlanningRoutingLine: Record "Planning Routing Line", PlanningRoutingLine2: Record "Planning Routing Line")

Parameters

Name Type Description
PlanningRoutingLine Table Microsoft.Manufacturing.Routing."Planning Routing Line"
PlanningRoutingLine2 Table Microsoft.Manufacturing.Routing."Planning Routing Line"

See also