Skip to content

KVSFCYCreateEDOrderLine#

Procedures#

Recalculate(Record Prod. Order Line, Boolean) :#

Summary: Recalculates and synchronizes production order lines based on component requirements and engineering design specifications. This comprehensive procedure manages the complex relationships between production order lines and their components, handling multilevel production structures, shared production lines, and engineering design position linkages. It processes component planning levels, creates or modifies production order lines as needed, manages reservations, and ensures data consistency across connected production orders. The procedure supports both single-level and multilevel recalculation scenarios and integrates with job reference management for project-based manufacturing.

procedure Recalculate(var prodOrderLineVar: Record "Prod. Order Line"; MultilevelPar: Boolean): 

Parameters:

  • prodOrderLineVar: Record "Prod. Order Line": Reference to the production order line that should be recalculated and synchronized with its component requirements.
  • MultilevelPar: Boolean: Indicates whether multilevel recalculation should be performed, affecting how deeply the BOM structure is processed and expanded.

CreateProdOrderLine(Record Prod. Order Component, Boolean) :#

Summary: Creates a new production order line based on production order component requirements and engineering design specifications. This procedure generates a complete production order line from a component specification, handling all necessary field initialization, validation, and integration with manufacturing systems. It establishes relationships between components and production lines, manages reservations, transfers routing and BOM information from engineering design, and updates monitoring systems. The procedure supports both single-level and multilevel manufacturing scenarios with proper dimension handling, location management, and quantity calculations based on component requirements.

procedure CreateProdOrderLine(var prodOrderCompVar: Record "Prod. Order Component"; MultilevelPar: Boolean): 

Parameters:

  • prodOrderCompVar: Record "Prod. Order Component": Reference to the production order component that requires a new production order line to be created.
  • MultilevelPar: Boolean: Indicates whether multilevel BOM expansion should be performed when inserting production order components for the new line.

ReplanProdOrderTime(Record Production Order, Option, Boolean) :#

Summary: Replans production order timing using forward or backward scheduling with comprehensive capacity and time management. This complex procedure performs complete production order rescheduling by deleting existing capacity demands, recalculating production line timing based on routing operations, managing reservations, and updating all related production orders and components. It handles multilevel production structures, processes routing operations with capacity requirements, manages work center scheduling, and ensures proper sequencing across planning levels. The procedure supports both forward and backward scheduling directions and can optionally replan connected production orders.

procedure ReplanProdOrderTime(var prodOrderVar: Record "Production Order"; directionPar: Option; replanConProdOrders: Boolean): 

Parameters:

  • prodOrderVar: Record "Production Order": Reference to the production order that should be replanned with new timing calculations.
  • directionPar: Option Forward,Backward: The scheduling direction - Forward for forward scheduling from start date, Backward for backward scheduling from end date.
  • replanConProdOrders: Boolean: Indicates whether connected production orders should also be replanned as part of the rescheduling process.

ReplanExtProdOrderLines(Record Production Order, Integer) :#

Summary: Recursively replans external production order lines connected to a given production order through engineering design linkages. This procedure manages the complex interdependencies between production orders by identifying and recalculating all external production order lines that are linked to the specified production order. It performs recursive processing with level protection to prevent infinite loops, handles production order existence validation, and ensures proper recalculation sequence across connected production orders. The procedure is essential for maintaining consistency in multilevel production structures where components are supplied by different production orders.

procedure ReplanExtProdOrderLines(prodOrderPar: Record "Production Order"; levelPar: Integer): 

Parameters:

  • prodOrderPar: Record "Production Order": The production order for which external production order lines should be replanned and recalculated.
  • levelPar: Integer: The current recursion level used for loop protection. The procedure will error if level exceeds 50 to prevent infinite recursion.

CheckReplenSysAndManuPolic(Record Prod. Order Line, Record Prod. Order Component) : Boolean#

Summary: Validates replenishment system and manufacturing policy settings to determine if order line creation is required. This procedure evaluates the replenishment system and manufacturing policy configuration for both production order lines and components, applying engineering design setup rules to determine the appropriate manufacturing approach. It checks if the component item uses production order replenishment, applies engineering design manufacturing policy rules, and validates the compatibility between line and component manufacturing policies to determine if make-to-order processing should be applied for the component relationship.

procedure CheckReplenSysAndManuPolic(var prodOrderLineVar: Record "Prod. Order Line"; var prodOrderCompVar: Record "Prod. Order Component"): Boolean

Parameters:

  • prodOrderLineVar: Record "Prod. Order Line": Reference to the production order line being evaluated for manufacturing policy compliance.
  • prodOrderCompVar: Record "Prod. Order Component": Reference to the production order component being evaluated for replenishment and manufacturing policy settings.

Returns: Boolean: True if the component should be processed as an order line based on replenishment system and manufacturing policy validation, false otherwise.

ComplianceManufacturingPolicy(Record Stockkeeping Unit, Record Stockkeeping Unit, Boolean) :#

Summary: Enforces manufacturing policy compliance for engineering design orders when job numbers are specified. This procedure applies engineering design setup rules to override manufacturing policies when working with job-based production orders. It evaluates the component manufacturing policy configuration from the engineering design setup and modifies both parent and component stockkeeping unit policies to ensure proper make-to-order processing when required. The procedure handles different compliance scenarios including standard processing, always order-to-order enforcement, and master data-based decisions.

procedure ComplianceManufacturingPolicy(var sKUVar: Record "Stockkeeping Unit"; var componentSKUVar: Record "Stockkeeping Unit"; eDJobNoFilledPar: Boolean): 

Parameters:

  • sKUVar: Record "Stockkeeping Unit": Reference to the parent stockkeeping unit whose manufacturing policy may be modified based on engineering design rules.
  • componentSKUVar: Record "Stockkeeping Unit": Reference to the component stockkeeping unit whose manufacturing policy may be modified based on engineering design rules.
  • eDJobNoFilledPar: Boolean: Indicates whether an engineering design job number is specified, which triggers the policy compliance evaluation and potential overrides.

SetProdOrderLinesToPlan(Record Prod. Order Line) :#

Summary: Adds a production order line to the temporary planning collection for multilevel structure processing. This procedure manages a temporary table that tracks production order lines requiring planning or recalculation during multilevel manufacturing operations. It prevents duplicate entries by checking for existing records before insertion, ensuring that each production order line is only added once to the planning queue. This is essential for coordinating complex multilevel recalculation processes.

procedure SetProdOrderLinesToPlan(prodOrderLinePar: Record "Prod. Order Line"): 

Parameters:

  • prodOrderLinePar: Record "Prod. Order Line": The production order line that should be added to the temporary planning collection for processing.

ClearProdOrderLinesToPlan() :#

Summary: Clears all production order lines from the temporary planning collection. This procedure resets the temporary table used for tracking production order lines that require planning or recalculation during multilevel manufacturing operations. It removes all entries from the planning queue, typically called at the end of multilevel processing cycles or when initializing new planning sessions to ensure a clean starting state.

procedure ClearProdOrderLinesToPlan(): 

CheckMultiLevelStructure(Boolean, Boolean) :#

Summary: Processes and recalculates multilevel production order structures using the temporary planning collection. This procedure manages the sequential processing of production order lines that have been queued for recalculation, handling complex multilevel manufacturing structures with proper sequencing and progress tracking. It processes each line in the temporary planning collection, performs recalculation operations, and provides optional user interface feedback through dialog windows. The procedure ensures that all interdependent production order lines are properly recalculated in the correct order.

procedure CheckMultiLevelStructure(withDialogPar: Boolean; MultilevelPar: Boolean): 

Parameters:

  • withDialogPar: Boolean: Indicates whether progress dialog should be displayed to show processing status and current operations to the user.
  • MultilevelPar: Boolean: Specifies whether multilevel BOM expansion should be performed during the recalculation of each production order line.

Events#

OnBeforeAssignLocationCode(Record Prod. Order Component, Record Production BOM Line, Record Stockkeeping Unit, Boolean) :#

Summary: Event triggered before assigning location code to production order component during BOM transfer.

[IntegrationEvent(false, false)]
local procedure OnBeforeAssignLocationCode(var prodOrderComp: Record "Prod. Order Component"; var ProductionBOMLine: Record "Production BOM Line"; var SKU: Record "Stockkeeping Unit"; var isHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSFCYCreateEDOrderLine", 'OnBeforeAssignLocationCode', '', false, false)]
local procedure DoSomethingOnBeforeAssignLocationCode(var prodOrderComp: Record "Prod. Order Component"; var ProductionBOMLine: Record "Production BOM Line"; var SKU: Record "Stockkeeping Unit"; var isHandled: Boolean)
begin
end;

Parameters:

  • prodOrderComp: The production order component being processed for location assignment.
  • ProductionBOMLine: The production BOM line providing location information.
  • SKU: The stockkeeping unit related to the component and location.
  • isHandled: Boolean flag to indicate if the location assignment has been handled by custom logic.

OnBeforeRecalculate(Record Prod. Order Line, Boolean) :#

Summary: Event triggered before recalculating a production order line structure.

[IntegrationEvent(false, false)]
local procedure OnBeforeRecalculate(var ProdOrderLine: Record "Prod. Order Line"; Multilevel: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSFCYCreateEDOrderLine", 'OnBeforeRecalculate', '', false, false)]
local procedure DoSomethingOnBeforeRecalculate(var ProdOrderLine: Record "Prod. Order Line"; Multilevel: Boolean)
begin
end;

Parameters:

  • ProdOrderLine: The production order line that will be recalculated.
  • Multilevel: Indicates whether multilevel BOM expansion should be performed during recalculation.

OnAfterRecalculate(Record Prod. Order Line) :#

Summary: Event triggered after recalculating a production order line structure.

[IntegrationEvent(false, false)]
local procedure OnAfterRecalculate(var ProdOrderLine: Record "Prod. Order Line"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSFCYCreateEDOrderLine", 'OnAfterRecalculate', '', false, false)]
local procedure DoSomethingOnAfterRecalculate(var ProdOrderLine: Record "Prod. Order Line")
begin
end;

Parameters:

  • ProdOrderLine: The production order line that was recalculated.

OnCreateProdOrderLineBeforeInsert(Record Prod. Order Line, Record Prod. Order Component, Record Production Order) :#

Summary: Event triggered before inserting a newly created production order line.

[IntegrationEvent(false, false)]
local procedure OnCreateProdOrderLineBeforeInsert(var ProdOrderLine: Record "Prod. Order Line"; var ProdOrderComp: Record "Prod. Order Component"; ProdOrder: Record "Production Order"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSFCYCreateEDOrderLine", 'OnCreateProdOrderLineBeforeInsert', '', false, false)]
local procedure DoSomethingOnCreateProdOrderLineBeforeInsert(var ProdOrderLine: Record "Prod. Order Line"; var ProdOrderComp: Record "Prod. Order Component"; ProdOrder: Record "Production Order")
begin
end;

Parameters:

  • ProdOrderLine: The production order line being created and about to be inserted.
  • ProdOrderComp: The production order component that triggered the line creation.
  • ProdOrder: The parent production order containing the new line.

OnTransferBOMAfterSetFilter(Record Production BOM Line, Record Prod. Order Line, Integer) :#

Summary: Event triggered after setting filters on production BOM lines during BOM transfer process.

[IntegrationEvent(false, false)]
local procedure OnTransferBOMAfterSetFilter(var ProductionBOMLine: Record "Production BOM Line"; ProdOrderLine: Record "Prod. Order Line"; Level: Integer): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSFCYCreateEDOrderLine", 'OnTransferBOMAfterSetFilter', '', false, false)]
local procedure DoSomethingOnTransferBOMAfterSetFilter(var ProductionBOMLine: Record "Production BOM Line"; ProdOrderLine: Record "Prod. Order Line"; Level: Integer)
begin
end;

Parameters:

  • ProductionBOMLine: The production BOM line with applied filters for processing.
  • ProdOrderLine: The production order line for which BOM transfer is being performed.
  • Level: The current BOM level being processed in the multilevel structure.

OnTransferBOMBeforeBOMLine(Record Production BOM Line, Record Prod. Order Line, Integer, Boolean) :#

Summary: Event triggered before processing individual BOM lines during BOM transfer.

[IntegrationEvent(false, false)]
local procedure OnTransferBOMBeforeBOMLine(var ProductionBOMLine: Record "Production BOM Line"; ProdOrderLine: Record "Prod. Order Line"; Level: Integer; var isHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSFCYCreateEDOrderLine", 'OnTransferBOMBeforeBOMLine', '', false, false)]
local procedure DoSomethingOnTransferBOMBeforeBOMLine(var ProductionBOMLine: Record "Production BOM Line"; ProdOrderLine: Record "Prod. Order Line"; Level: Integer; var isHandled: Boolean)
begin
end;

Parameters:

  • ProductionBOMLine: The production BOM line about to be processed.
  • ProdOrderLine: The production order line for which BOM transfer is being performed.
  • Level: The current BOM level being processed in the multilevel structure.
  • isHandled: Boolean flag to indicate if the BOM line processing has been handled by custom logic.

OnTransferBOMBeforeValidateItemNo(Record Prod. Order Component, Record Production BOM Line, Integer) :#

Summary: Event triggered before validating item number on production order component during BOM transfer.

[IntegrationEvent(false, false)]
local procedure OnTransferBOMBeforeValidateItemNo(var ProdOrderComp: Record "Prod. Order Component"; var ProductionBOMLine: Record "Production BOM Line"; Level: Integer): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSFCYCreateEDOrderLine", 'OnTransferBOMBeforeValidateItemNo', '', false, false)]
local procedure DoSomethingOnTransferBOMBeforeValidateItemNo(var ProdOrderComp: Record "Prod. Order Component"; var ProductionBOMLine: Record "Production BOM Line"; Level: Integer)
begin
end;

Parameters:

  • ProdOrderComp: The production order component being created from BOM line.
  • ProductionBOMLine: The production BOM line providing the item information.
  • Level: The current BOM level being processed in the multilevel structure.

OnTransferBOMBeforeProdOrderCompInsert(Record Prod. Order Component, Record Prod. Order Line, Record Production BOM Line, Integer) :#

Summary: Event triggered before inserting a production order component created from BOM transfer.

[IntegrationEvent(false, false)]
local procedure OnTransferBOMBeforeProdOrderCompInsert(var ProdOrderComp: Record "Prod. Order Component"; ProdOrderLine: Record "Prod. Order Line"; var ProductionBOMLine: Record "Production BOM Line"; Level: Integer): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSFCYCreateEDOrderLine", 'OnTransferBOMBeforeProdOrderCompInsert', '', false, false)]
local procedure DoSomethingOnTransferBOMBeforeProdOrderCompInsert(var ProdOrderComp: Record "Prod. Order Component"; ProdOrderLine: Record "Prod. Order Line"; var ProductionBOMLine: Record "Production BOM Line"; Level: Integer)
begin
end;

Parameters:

  • ProdOrderComp: The production order component about to be inserted.
  • ProdOrderLine: The production order line that contains the component.
  • ProductionBOMLine: The production BOM line that was the source for the component.
  • Level: The current BOM level being processed in the multilevel structure.

OnTransferBOMBeforeQuantityPerValidate(Record Prod. Order Component, Record Prod. Order Line, Record Production BOM Line, Integer) :#

Summary: Event triggered before validating quantity per unit on production order component during BOM transfer.

[IntegrationEvent(false, false)]
local procedure OnTransferBOMBeforeQuantityPerValidate(ProdOrderComp: Record "Prod. Order Component"; ProdOrderLine: Record "Prod. Order Line"; var ProductionBOMLine: Record "Production BOM Line"; Level: Integer): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSFCYCreateEDOrderLine", 'OnTransferBOMBeforeQuantityPerValidate', '', false, false)]
local procedure DoSomethingOnTransferBOMBeforeQuantityPerValidate(ProdOrderComp: Record "Prod. Order Component"; ProdOrderLine: Record "Prod. Order Line"; var ProductionBOMLine: Record "Production BOM Line"; Level: Integer)
begin
end;

Parameters:

  • ProdOrderComp: The production order component for which quantity per will be validated.
  • ProdOrderLine: The production order line containing the component.
  • ProductionBOMLine: The production BOM line providing the quantity per information.
  • Level: The current BOM level being processed in the multilevel structure.

OnBeforeCalcProdOrderCompDueDate(Record Prod. Order Component, Boolean) :#

Summary: Event triggered before calculating due date for production order component.

[IntegrationEvent(false, false)]
local procedure OnBeforeCalcProdOrderCompDueDate(var ProdOrderComp: Record "Prod. Order Component"; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSFCYCreateEDOrderLine", 'OnBeforeCalcProdOrderCompDueDate', '', false, false)]
local procedure DoSomethingOnBeforeCalcProdOrderCompDueDate(var ProdOrderComp: Record "Prod. Order Component"; var IsHandled: Boolean)
begin
end;

Parameters:

  • ProdOrderComp: The production order component for which due date will be calculated.
  • IsHandled: Boolean flag to indicate if the due date calculation has been handled by custom logic.

OnChangeProdOrderLineBeforeQtyChanged(Record Prod. Order Line, Decimal, Boolean) :#

Summary: Event triggered before changing quantity on production order line.

[IntegrationEvent(false, false)]
local procedure OnChangeProdOrderLineBeforeQtyChanged(var ProdOrderLine: Record "Prod. Order Line"; var NewQuantity: Decimal; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSFCYCreateEDOrderLine", 'OnChangeProdOrderLineBeforeQtyChanged', '', false, false)]
local procedure DoSomethingOnChangeProdOrderLineBeforeQtyChanged(var ProdOrderLine: Record "Prod. Order Line"; var NewQuantity: Decimal; var IsHandled: Boolean)
begin
end;

Parameters:

  • ProdOrderLine: The production order line whose quantity will be changed.
  • NewQuantity: The new quantity value that will be applied to the production order line.
  • IsHandled: Boolean flag to indicate if the quantity change has been handled by custom logic.

OnBeforeChangeProdOrderLineToZero(Record Prod. Order Line, Boolean) :#

Summary: Event triggered before changing production order line quantity to zero.

[IntegrationEvent(false, false)]
local procedure OnBeforeChangeProdOrderLineToZero(var ProdOrderLine: Record "Prod. Order Line"; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSFCYCreateEDOrderLine", 'OnBeforeChangeProdOrderLineToZero', '', false, false)]
local procedure DoSomethingOnBeforeChangeProdOrderLineToZero(var ProdOrderLine: Record "Prod. Order Line"; var IsHandled: Boolean)
begin
end;

Parameters:

  • ProdOrderLine: The production order line whose quantity will be set to zero.
  • IsHandled: Boolean flag to indicate if the quantity-to-zero change has been handled by custom logic.

OnChangeProdOrderLineToZeroAfterChangeQtyToZero(Record Prod. Order Line) :#

Summary: Event triggered after changing production order line quantity to zero.

[IntegrationEvent(false, false)]
local procedure OnChangeProdOrderLineToZeroAfterChangeQtyToZero(var ProdOrderLine: Record "Prod. Order Line"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSFCYCreateEDOrderLine", 'OnChangeProdOrderLineToZeroAfterChangeQtyToZero', '', false, false)]
local procedure DoSomethingOnChangeProdOrderLineToZeroAfterChangeQtyToZero(var ProdOrderLine: Record "Prod. Order Line")
begin
end;

Parameters:

  • ProdOrderLine: The production order line whose quantity was set to zero.

OnProofLineQuantityBeforeValidateQuantityPer(Record Prod. Order Component) :#

Summary: Event triggered before validating quantity per unit during line quantity validation.

[IntegrationEvent(false, false)]
local procedure OnProofLineQuantityBeforeValidateQuantityPer(var ProdOrderComp: Record "Prod. Order Component"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSFCYCreateEDOrderLine", 'OnProofLineQuantityBeforeValidateQuantityPer', '', false, false)]
local procedure DoSomethingOnProofLineQuantityBeforeValidateQuantityPer(var ProdOrderComp: Record "Prod. Order Component")
begin
end;

Parameters:

  • ProdOrderComp: The production order component for which quantity per validation will be performed.

OnBeforeDeleteProdOrderLine(Record Prod. Order Line, Boolean) :#

Summary: Event triggered before deleting a production order line.

[IntegrationEvent(false, false)]
local procedure OnBeforeDeleteProdOrderLine(var ProdOrderLine: Record "Prod. Order Line"; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSFCYCreateEDOrderLine", 'OnBeforeDeleteProdOrderLine', '', false, false)]
local procedure DoSomethingOnBeforeDeleteProdOrderLine(var ProdOrderLine: Record "Prod. Order Line"; var IsHandled: Boolean)
begin
end;

Parameters:

  • ProdOrderLine: The production order line that will be deleted.
  • IsHandled: Boolean flag to indicate if the deletion has been handled by custom logic.

OnReplanProdOrderTimeBackwardBeforeProdOrderComp(Record Prod. Order Component) :#

Summary: Event triggered during backward production order time replanning before processing production order components.

[IntegrationEvent(false, false)]
local procedure OnReplanProdOrderTimeBackwardBeforeProdOrderComp(var ProdOrderComponent: Record "Prod. Order Component"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSFCYCreateEDOrderLine", 'OnReplanProdOrderTimeBackwardBeforeProdOrderComp', '', false, false)]
local procedure DoSomethingOnReplanProdOrderTimeBackwardBeforeProdOrderComp(var ProdOrderComponent: Record "Prod. Order Component")
begin
end;

Parameters:

  • ProdOrderComponent: The production order component being processed during backward time replanning.

OnEDPosLinkOKBeforeCheckEDPosition(Record Prod. Order Component, Record Prod. Order Line, Boolean, Boolean) :#

Summary: Event triggered before checking engineering design position linkage between component and line.

[IntegrationEvent(false, false)]
local procedure OnEDPosLinkOKBeforeCheckEDPosition(var ProdOrderComponent: Record "Prod. Order Component"; ProdOrderLine: Record "Prod. Order Line"; var Result: Boolean; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSFCYCreateEDOrderLine", 'OnEDPosLinkOKBeforeCheckEDPosition', '', false, false)]
local procedure DoSomethingOnEDPosLinkOKBeforeCheckEDPosition(var ProdOrderComponent: Record "Prod. Order Component"; ProdOrderLine: Record "Prod. Order Line"; var Result: Boolean; var IsHandled: Boolean)
begin
end;

Parameters:

  • ProdOrderComponent: The production order component being validated for ED position linkage.
  • ProdOrderLine: The production order line to validate linkage against.
  • Result: Boolean result of the ED position linkage validation.
  • IsHandled: Boolean flag to indicate if the ED position check has been handled by custom logic.

OnBeforeValidateItemNo(Record Prod. Order Line, Record Prod. Order Component) :#

Summary: Event triggered before validating item number on production order line.

[IntegrationEvent(false, false)]
local procedure OnBeforeValidateItemNo(var ProdOrderLine: Record "Prod. Order Line"; ProdOrderComponent: Record "Prod. Order Component"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSFCYCreateEDOrderLine", 'OnBeforeValidateItemNo', '', false, false)]
local procedure DoSomethingOnBeforeValidateItemNo(var ProdOrderLine: Record "Prod. Order Line"; ProdOrderComponent: Record "Prod. Order Component")
begin
end;

Parameters:

  • ProdOrderLine: The production order line for which item number will be validated.
  • ProdOrderComponent: The production order component related to the line validation.

OnAfterCreateProdOrderLine(Record Prod. Order Line, Record Prod. Order Component) :#

Summary: Event triggered after creating a new production order line.

[IntegrationEvent(false, false)]
local procedure OnAfterCreateProdOrderLine(var ProdOrderLine: Record "Prod. Order Line"; ProdOrderComponent: Record "Prod. Order Component"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSFCYCreateEDOrderLine", 'OnAfterCreateProdOrderLine', '', false, false)]
local procedure DoSomethingOnAfterCreateProdOrderLine(var ProdOrderLine: Record "Prod. Order Line"; ProdOrderComponent: Record "Prod. Order Component")
begin
end;

Parameters:

  • ProdOrderLine: The production order line that was created.
  • ProdOrderComponent: The production order component that triggered the line creation.

OnAfterModifyProdOrderLine(Record Prod. Order Line, Record Prod. Order Component) :#

Summary: Event triggered after modifying a production order line.

[IntegrationEvent(false, false)]
local procedure OnAfterModifyProdOrderLine(var ProdOrderLine: Record "Prod. Order Line"; var ProdOrderComponent: Record "Prod. Order Component"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSFCYCreateEDOrderLine", 'OnAfterModifyProdOrderLine', '', false, false)]
local procedure DoSomethingOnAfterModifyProdOrderLine(var ProdOrderLine: Record "Prod. Order Line"; var ProdOrderComponent: Record "Prod. Order Component")
begin
end;

Parameters:

  • ProdOrderLine: The production order line that was modified.
  • ProdOrderComponent: The production order component related to the line modification.