Skip to content

KVSFCYCopyProdOrderDocument#

Obsolete

This Element will be removed or changed with a future Version of the App.

Procedures#

SetProdOrder(Record Production Order) :#

Summary: Sets the target production order for the copy operation. This procedure establishes the destination production order that will receive the copied data from the source production order. The target production order serves as the container for all copied lines, components, routing information, and related data.

procedure SetProdOrder(var NewProdOrder: Record "Production Order"): 

Parameters:

  • NewProdOrder: The target production order record that will receive the copied production order data including lines, components, routing lines, and all associated information from the source document.

SetFromDocument(Option, Code[20]) :#

Summary: Sets the source document parameters for the production order copy operation. This procedure specifies which production order document should be used as the source for copying data. It establishes the status type and document number that uniquely identify the source production order.

procedure SetFromDocument(statusPar: Option; docNoPar: Code[20]): 

Parameters:

  • statusPar: The production order status option (Simulated, Planned, Firm Planned, Released) that identifies the status type of the source production order to be copied.
  • docNoPar: The document number code that uniquely identifies the specific source production order document to copy from within the specified status type.

SetOtherGlobals(Boolean, Option) :#

Summary: Sets additional global parameters for the production order copy operation. This procedure configures supplementary options that control the behavior of the copy process including header inclusion and planning direction. These settings determine how comprehensive the copy operation will be and how timing calculations are performed.

procedure SetOtherGlobals(includeHeaderPar: Boolean; directionPar: Option): 

Parameters:

  • includeHeaderPar: Indicates whether to include header information in the copy operation. When true, copies production order header fields such as description, dates, dimensions, and posting groups along with the line data.
  • directionPar: The planning direction option (Forward or Backward) that determines how production order timing and scheduling calculations are performed during the copy process and subsequent replanning operations.

Events#

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

Summary: Event after copying production order lines.

[IntegrationEvent(false, false)]
local procedure OnAfterCopyProdLines(var ToProdOrderLine: Record "Prod. Order Line"; FromProdOrderLine: Record "Prod. Order Line"; IncludeHeader: Boolean): 
[EventSubscriber(ObjectType::Report, Report::"KVSFCYCopyProdOrderDocument", 'OnAfterCopyProdLines', '', false, false)]
local procedure DoSomethingOnAfterCopyProdLines(var ToProdOrderLine: Record "Prod. Order Line"; FromProdOrderLine: Record "Prod. Order Line"; IncludeHeader: Boolean)
begin
end;

Parameters:

  • ToProdOrderLine: Target production order line.
  • FromProdOrderLine: Source production order line.
  • IncludeHeader: True if header is included.

OnBeforeToProdOrderModify(Record Production Order, Record Production Order) :#

Summary: Event before modifying target production order.

[IntegrationEvent(false, false)]
local procedure OnBeforeToProdOrderModify(var ToProdOrder: Record "Production Order"; FromProdOrder: Record "Production Order"): 
[EventSubscriber(ObjectType::Report, Report::"KVSFCYCopyProdOrderDocument", 'OnBeforeToProdOrderModify', '', false, false)]
local procedure DoSomethingOnBeforeToProdOrderModify(var ToProdOrder: Record "Production Order"; FromProdOrder: Record "Production Order")
begin
end;

Parameters:

  • ToProdOrder: Target production order.
  • FromProdOrder: Source production order.

OnBeforeToProdOrderLineInsert(Record Prod. Order Line, Record Prod. Order Line) :#

Summary: Event before inserting target production order line.

[IntegrationEvent(false, false)]
local procedure OnBeforeToProdOrderLineInsert(var ToProdOrderLine: Record "Prod. Order Line"; FromProdOrderLine: Record "Prod. Order Line"): 
[EventSubscriber(ObjectType::Report, Report::"KVSFCYCopyProdOrderDocument", 'OnBeforeToProdOrderLineInsert', '', false, false)]
local procedure DoSomethingOnBeforeToProdOrderLineInsert(var ToProdOrderLine: Record "Prod. Order Line"; FromProdOrderLine: Record "Prod. Order Line")
begin
end;

Parameters:

  • ToProdOrderLine: Target production order line.
  • FromProdOrderLine: Source production order line.

OnBeforeToProdOrderCompItemValidate(Record Prod. Order Component, Record Prod. Order Component) :#

Summary: Event before validating target production order component item.

[IntegrationEvent(false, false)]
local procedure OnBeforeToProdOrderCompItemValidate(var ToProdOrderComp: Record "Prod. Order Component"; FromProdOrderComp: Record "Prod. Order Component"): 
[EventSubscriber(ObjectType::Report, Report::"KVSFCYCopyProdOrderDocument", 'OnBeforeToProdOrderCompItemValidate', '', false, false)]
local procedure DoSomethingOnBeforeToProdOrderCompItemValidate(var ToProdOrderComp: Record "Prod. Order Component"; FromProdOrderComp: Record "Prod. Order Component")
begin
end;

Parameters:

  • ToProdOrderComp: Target production order component.
  • FromProdOrderComp: Source production order component.

OnBeforeToProdOrderCompModify(Record Prod. Order Component, Record Prod. Order Component) :#

Summary: Event before modifying target production order component.

[IntegrationEvent(false, false)]
local procedure OnBeforeToProdOrderCompModify(var ToProdOrderComp: Record "Prod. Order Component"; FromProdOrderComp: Record "Prod. Order Component"): 
[EventSubscriber(ObjectType::Report, Report::"KVSFCYCopyProdOrderDocument", 'OnBeforeToProdOrderCompModify', '', false, false)]
local procedure DoSomethingOnBeforeToProdOrderCompModify(var ToProdOrderComp: Record "Prod. Order Component"; FromProdOrderComp: Record "Prod. Order Component")
begin
end;

Parameters:

  • ToProdOrderComp: Target production order component.
  • FromProdOrderComp: Source production order component.

OnAfterToProdOrderCompModify(Record Prod. Order Component, Record Prod. Order Component) :#

Summary: Event after modifying target production order component.

[IntegrationEvent(false, false)]
local procedure OnAfterToProdOrderCompModify(var ToProdOrderComp: Record "Prod. Order Component"; FromProdOrderComp: Record "Prod. Order Component"): 
[EventSubscriber(ObjectType::Report, Report::"KVSFCYCopyProdOrderDocument", 'OnAfterToProdOrderCompModify', '', false, false)]
local procedure DoSomethingOnAfterToProdOrderCompModify(var ToProdOrderComp: Record "Prod. Order Component"; FromProdOrderComp: Record "Prod. Order Component")
begin
end;

Parameters:

  • ToProdOrderComp: Target production order component.
  • FromProdOrderComp: Source production order component.

OnBeforeToProdOrderRtngLineModify(Record Prod. Order Routing Line, Record Prod. Order Routing Line) :#

Summary: Event before modifying target production order routing line.

[IntegrationEvent(false, false)]
local procedure OnBeforeToProdOrderRtngLineModify(var ToProdOrderRtngLine: Record "Prod. Order Routing Line"; FromProdOrderRtngLine: Record "Prod. Order Routing Line"): 
[EventSubscriber(ObjectType::Report, Report::"KVSFCYCopyProdOrderDocument", 'OnBeforeToProdOrderRtngLineModify', '', false, false)]
local procedure DoSomethingOnBeforeToProdOrderRtngLineModify(var ToProdOrderRtngLine: Record "Prod. Order Routing Line"; FromProdOrderRtngLine: Record "Prod. Order Routing Line")
begin
end;

Parameters:

  • ToProdOrderRtngLine: Target routing line.
  • FromProdOrderRtngLine: Source routing line.

OnAfterToProdOrderRtngLineModify(Record Prod. Order Routing Line, Record Prod. Order Routing Line) :#

Summary: Event after modifying target production order routing line.

[IntegrationEvent(false, false)]
local procedure OnAfterToProdOrderRtngLineModify(var ToProdOrderRtngLine: Record "Prod. Order Routing Line"; FromProdOrderRtngLine: Record "Prod. Order Routing Line"): 
[EventSubscriber(ObjectType::Report, Report::"KVSFCYCopyProdOrderDocument", 'OnAfterToProdOrderRtngLineModify', '', false, false)]
local procedure DoSomethingOnAfterToProdOrderRtngLineModify(var ToProdOrderRtngLine: Record "Prod. Order Routing Line"; FromProdOrderRtngLine: Record "Prod. Order Routing Line")
begin
end;

Parameters:

  • ToProdOrderRtngLine: Target routing line.
  • FromProdOrderRtngLine: Source routing line.