Skip to content

KVSKBACopyItem#

Events#

OnBeforeOnCopyItemOnAfterCopyExtendedTexts(Record Item, Record Item, Boolean) :#

Summary: Integration event triggered before copying extended texts during item copy operations.

[IntegrationEvent(false, false)]
local procedure OnBeforeOnCopyItemOnAfterCopyExtendedTexts(var SourceItem: Record "Item"; var TargetItem: Record "Item"; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBACopyItem", 'OnBeforeOnCopyItemOnAfterCopyExtendedTexts', '', false, false)]
local procedure DoSomethingOnBeforeOnCopyItemOnAfterCopyExtendedTexts(var SourceItem: Record "Item"; var TargetItem: Record "Item"; var IsHandled: Boolean)
begin
end;

Parameters:

  • SourceItem: The source item from which extended texts are being copied.
  • TargetItem: The target item to which extended texts are being copied.
  • IsHandled: Set to true if the event is handled by a subscriber and default processing should be skipped.

Remarks: Allows customization of extended text copying behavior before the standard process begins.

OnAfterOnCopyItemOnAfterCopyExtendedTexts(Record Item, Record Item) :#

Summary: Integration event triggered after copying extended texts during item copy operations.

[IntegrationEvent(false, false)]
local procedure OnAfterOnCopyItemOnAfterCopyExtendedTexts(var SourceItem: Record "Item"; var TargetItem: Record "Item"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBACopyItem", 'OnAfterOnCopyItemOnAfterCopyExtendedTexts', '', false, false)]
local procedure DoSomethingOnAfterOnCopyItemOnAfterCopyExtendedTexts(var SourceItem: Record "Item"; var TargetItem: Record "Item")
begin
end;

Parameters:

  • SourceItem: The source item from which extended texts were copied.
  • TargetItem: The target item to which extended texts were copied.

Remarks: Allows additional processing after extended texts have been successfully copied.

OnBeforeOnCopyItemOnAfterCopyItem(Record Copy Item Buffer, Record Item, Record Item, Boolean) :#

Summary: Integration event triggered before the main item copy process begins.

[IntegrationEvent(false, false)]
local procedure OnBeforeOnCopyItemOnAfterCopyItem(var CopyItemBuffer: Record "Copy Item Buffer"; SourceItem: Record "Item"; var TargetItem: Record "Item"; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBACopyItem", 'OnBeforeOnCopyItemOnAfterCopyItem', '', false, false)]
local procedure DoSomethingOnBeforeOnCopyItemOnAfterCopyItem(var CopyItemBuffer: Record "Copy Item Buffer"; SourceItem: Record "Item"; var TargetItem: Record "Item"; var IsHandled: Boolean)
begin
end;

Parameters:

  • CopyItemBuffer: The copy item buffer containing copy settings and options.
  • SourceItem: The source item being copied.
  • TargetItem: The target item being created.
  • IsHandled: Set to true if the event is handled by a subscriber and default processing should be skipped.

Remarks: Allows customization of the entire item copy process before standard operations begin.

OnAfterOnCopyItemOnAfterCopyItem(Record Copy Item Buffer, Record Item, Record Item) :#

Summary: Integration event triggered after the main item copy process is completed.

[IntegrationEvent(false, false)]
local procedure OnAfterOnCopyItemOnAfterCopyItem(var CopyItemBuffer: Record "Copy Item Buffer"; SourceItem: Record "Item"; var TargetItem: Record "Item"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBACopyItem", 'OnAfterOnCopyItemOnAfterCopyItem', '', false, false)]
local procedure DoSomethingOnAfterOnCopyItemOnAfterCopyItem(var CopyItemBuffer: Record "Copy Item Buffer"; SourceItem: Record "Item"; var TargetItem: Record "Item")
begin
end;

Parameters:

  • CopyItemBuffer: The copy item buffer containing copy settings and options.
  • SourceItem: The source item that was copied.
  • TargetItem: The target item that was created.

Remarks: Allows additional processing after all standard item copy operations have been completed.

OnBeforeCopyKVSKBAItemSalesPrices(Record Copy Item Buffer, Code[20], Code[20], Boolean) :#

Summary: Integration event triggered before copying custom sales prices during item copy operations.

[IntegrationEvent(false, false)]
local procedure OnBeforeCopyKVSKBAItemSalesPrices(var CopyItemBuffer: Record "Copy Item Buffer"; FromItemNo: Code[20]; ToItemNo: Code[20]; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBACopyItem", 'OnBeforeCopyKVSKBAItemSalesPrices', '', false, false)]
local procedure DoSomethingOnBeforeCopyKVSKBAItemSalesPrices(var CopyItemBuffer: Record "Copy Item Buffer"; FromItemNo: Code[20]; ToItemNo: Code[20]; var IsHandled: Boolean)
begin
end;

Parameters:

  • CopyItemBuffer: The copy item buffer containing copy settings.
  • FromItemNo: The item number being copied from.
  • ToItemNo: The item number being copied to.
  • IsHandled: Set to true if the event is handled by a subscriber and default processing should be skipped.

Remarks: Allows customization of sales price copying behavior when copying items.

OnAfterCopyKVSKBAItemSalesPrices(Record Copy Item Buffer, Code[20], Code[20]) :#

Summary: Integration event triggered after copying custom sales prices during item copy operations.

[IntegrationEvent(false, false)]
local procedure OnAfterCopyKVSKBAItemSalesPrices(var CopyItemBuffer: Record "Copy Item Buffer"; FromItemNo: Code[20]; ToItemNo: Code[20]): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBACopyItem", 'OnAfterCopyKVSKBAItemSalesPrices', '', false, false)]
local procedure DoSomethingOnAfterCopyKVSKBAItemSalesPrices(var CopyItemBuffer: Record "Copy Item Buffer"; FromItemNo: Code[20]; ToItemNo: Code[20])
begin
end;

Parameters:

  • CopyItemBuffer: The copy item buffer containing copy settings.
  • FromItemNo: The item number that was copied from.
  • ToItemNo: The item number that was copied to.

Remarks: Allows additional processing after sales prices have been copied.

OnBeforeCopyKVSKBASalesLineDiscounts(Record Copy Item Buffer, Code[20], Code[20], Boolean) :#

Summary: Integration event triggered before copying custom sales line discounts during item copy operations.

[IntegrationEvent(false, false)]
local procedure OnBeforeCopyKVSKBASalesLineDiscounts(var CopyItemBuffer: Record "Copy Item Buffer"; FromItemNo: Code[20]; ToItemNo: Code[20]; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBACopyItem", 'OnBeforeCopyKVSKBASalesLineDiscounts', '', false, false)]
local procedure DoSomethingOnBeforeCopyKVSKBASalesLineDiscounts(var CopyItemBuffer: Record "Copy Item Buffer"; FromItemNo: Code[20]; ToItemNo: Code[20]; var IsHandled: Boolean)
begin
end;

Parameters:

  • CopyItemBuffer: The copy item buffer containing copy settings.
  • FromItemNo: The item number being copied from.
  • ToItemNo: The item number being copied to.
  • IsHandled: Set to true if the event is handled by a subscriber and default processing should be skipped.

Remarks: Allows customization of sales line discount copying behavior when copying items.

OnAfterCopyKVSKBASalesLineDiscounts(Record Copy Item Buffer, Code[20], Code[20]) :#

Summary: Integration event triggered after copying custom sales line discounts during item copy operations.

[IntegrationEvent(false, false)]
local procedure OnAfterCopyKVSKBASalesLineDiscounts(var CopyItemBuffer: Record "Copy Item Buffer"; FromItemNo: Code[20]; ToItemNo: Code[20]): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBACopyItem", 'OnAfterCopyKVSKBASalesLineDiscounts', '', false, false)]
local procedure DoSomethingOnAfterCopyKVSKBASalesLineDiscounts(var CopyItemBuffer: Record "Copy Item Buffer"; FromItemNo: Code[20]; ToItemNo: Code[20])
begin
end;

Parameters:

  • CopyItemBuffer: The copy item buffer containing copy settings.
  • FromItemNo: The item number that was copied from.
  • ToItemNo: The item number that was copied to.

Remarks: Allows additional processing after sales line discounts have been copied.

OnBeforeCopyKVSKBAPurchasePrices(Record Copy Item Buffer, Code[20], Code[20], Boolean) :#

Summary: Integration event triggered before copying custom purchase prices during item copy operations.

[IntegrationEvent(false, false)]
local procedure OnBeforeCopyKVSKBAPurchasePrices(var CopyItemBuffer: Record "Copy Item Buffer"; FromItemNo: Code[20]; ToItemNo: Code[20]; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBACopyItem", 'OnBeforeCopyKVSKBAPurchasePrices', '', false, false)]
local procedure DoSomethingOnBeforeCopyKVSKBAPurchasePrices(var CopyItemBuffer: Record "Copy Item Buffer"; FromItemNo: Code[20]; ToItemNo: Code[20]; var IsHandled: Boolean)
begin
end;

Parameters:

  • CopyItemBuffer: The copy item buffer containing copy settings.
  • FromItemNo: The item number being copied from.
  • ToItemNo: The item number being copied to.
  • IsHandled: Set to true if the event is handled by a subscriber and default processing should be skipped.

Remarks: Allows customization of purchase price copying behavior when copying items.

OnAfterCopyKVSKBAPurchasePrices(Record Copy Item Buffer, Code[20], Code[20]) :#

Summary: Integration event triggered after copying custom purchase prices during item copy operations.

[IntegrationEvent(false, false)]
local procedure OnAfterCopyKVSKBAPurchasePrices(var CopyItemBuffer: Record "Copy Item Buffer"; FromItemNo: Code[20]; ToItemNo: Code[20]): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBACopyItem", 'OnAfterCopyKVSKBAPurchasePrices', '', false, false)]
local procedure DoSomethingOnAfterCopyKVSKBAPurchasePrices(var CopyItemBuffer: Record "Copy Item Buffer"; FromItemNo: Code[20]; ToItemNo: Code[20])
begin
end;

Parameters:

  • CopyItemBuffer: The copy item buffer containing copy settings.
  • FromItemNo: The item number that was copied from.
  • ToItemNo: The item number that was copied to.

Remarks: Allows additional processing after purchase prices have been copied.

OnBeforeCopyKVSKBAPurchaseLineDiscounts(Record Copy Item Buffer, Code[20], Code[20], Boolean) :#

Summary: Integration event triggered before copying custom purchase line discounts during item copy operations.

[IntegrationEvent(false, false)]
local procedure OnBeforeCopyKVSKBAPurchaseLineDiscounts(var CopyItemBuffer: Record "Copy Item Buffer"; FromItemNo: Code[20]; ToItemNo: Code[20]; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBACopyItem", 'OnBeforeCopyKVSKBAPurchaseLineDiscounts', '', false, false)]
local procedure DoSomethingOnBeforeCopyKVSKBAPurchaseLineDiscounts(var CopyItemBuffer: Record "Copy Item Buffer"; FromItemNo: Code[20]; ToItemNo: Code[20]; var IsHandled: Boolean)
begin
end;

Parameters:

  • CopyItemBuffer: The copy item buffer containing copy settings.
  • FromItemNo: The item number being copied from.
  • ToItemNo: The item number being copied to.
  • IsHandled: Set to true if the event is handled by a subscriber and default processing should be skipped.

Remarks: Allows customization of purchase line discount copying behavior when copying items.

OnAfterCopyKVSKBAPurchaseLineDiscounts(Record Copy Item Buffer, Code[20], Code[20]) :#

Summary: Integration event triggered after copying custom purchase line discounts during item copy operations.

[IntegrationEvent(false, false)]
local procedure OnAfterCopyKVSKBAPurchaseLineDiscounts(var CopyItemBuffer: Record "Copy Item Buffer"; FromItemNo: Code[20]; ToItemNo: Code[20]): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBACopyItem", 'OnAfterCopyKVSKBAPurchaseLineDiscounts', '', false, false)]
local procedure DoSomethingOnAfterCopyKVSKBAPurchaseLineDiscounts(var CopyItemBuffer: Record "Copy Item Buffer"; FromItemNo: Code[20]; ToItemNo: Code[20])
begin
end;

Parameters:

  • CopyItemBuffer: The copy item buffer containing copy settings.
  • FromItemNo: The item number that was copied from.
  • ToItemNo: The item number that was copied to.

Remarks: Allows additional processing after purchase line discounts have been copied.

OnBeforeSetMandatoryFieldsStatus(Record Item, Boolean) :#

Summary: Integration event triggered before setting mandatory fields status on the target item.

[IntegrationEvent(false, false)]
local procedure OnBeforeSetMandatoryFieldsStatus(var TargetItem: Record "Item"; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBACopyItem", 'OnBeforeSetMandatoryFieldsStatus', '', false, false)]
local procedure DoSomethingOnBeforeSetMandatoryFieldsStatus(var TargetItem: Record "Item"; var IsHandled: Boolean)
begin
end;

Parameters:

  • TargetItem: The target item for which mandatory fields status is being set.
  • IsHandled: Set to true if the event is handled by a subscriber and default processing should be skipped.

Remarks: Allows customization of mandatory fields processing during item copy operations.

OnAfterSetMandatoryFieldsStatus(Record Item) :#

Summary: Integration event triggered after setting mandatory fields status on the target item.

[IntegrationEvent(false, false)]
local procedure OnAfterSetMandatoryFieldsStatus(var TargetItem: Record "Item"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBACopyItem", 'OnAfterSetMandatoryFieldsStatus', '', false, false)]
local procedure DoSomethingOnAfterSetMandatoryFieldsStatus(var TargetItem: Record "Item")
begin
end;

Parameters:

  • TargetItem: The target item for which mandatory fields status was set.

Remarks: Allows additional processing after mandatory fields have been processed.

OnBeforeCopyProdBOMs(Record Copy Item Buffer, Record Item, Record Item, Boolean) :#

Summary: Integration event triggered before copying production BOMs during item copy operations.

[IntegrationEvent(false, false)]
local procedure OnBeforeCopyProdBOMs(var CopyItemBuffer: Record "Copy Item Buffer"; FromItem: Record "Item"; var ToItem: Record "Item"; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBACopyItem", 'OnBeforeCopyProdBOMs', '', false, false)]
local procedure DoSomethingOnBeforeCopyProdBOMs(var CopyItemBuffer: Record "Copy Item Buffer"; FromItem: Record "Item"; var ToItem: Record "Item"; var IsHandled: Boolean)
begin
end;

Parameters:

  • CopyItemBuffer: The copy item buffer containing copy settings.
  • FromItem: The source item from which production BOMs are being copied.
  • ToItem: The target item to which production BOMs are being copied.
  • IsHandled: Set to true if the event is handled by a subscriber and default processing should be skipped.

Remarks: Allows customization of production BOM copying behavior during item copy operations.

OnAfterCopyProdBOMs(Record Copy Item Buffer, Record Item, Record Item) :#

Summary: Integration event triggered after copying production BOMs during item copy operations.

[IntegrationEvent(false, false)]
local procedure OnAfterCopyProdBOMs(var CopyItemBuffer: Record "Copy Item Buffer"; FromItem: Record "Item"; var ToItem: Record "Item"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBACopyItem", 'OnAfterCopyProdBOMs', '', false, false)]
local procedure DoSomethingOnAfterCopyProdBOMs(var CopyItemBuffer: Record "Copy Item Buffer"; FromItem: Record "Item"; var ToItem: Record "Item")
begin
end;

Parameters:

  • CopyItemBuffer: The copy item buffer containing copy settings.
  • FromItem: The source item from which production BOMs were copied.
  • ToItem: The target item to which production BOMs were copied.

Remarks: Allows additional processing after production BOMs have been copied.

OnBeforeCopyRoutings(Record Copy Item Buffer, Record Item, Record Item, Boolean) :#

Summary: Integration event triggered before copying routings during item copy operations.

[IntegrationEvent(false, false)]
local procedure OnBeforeCopyRoutings(var CopyItemBuffer: Record "Copy Item Buffer"; FromItem: Record "Item"; var ToItem: Record "Item"; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBACopyItem", 'OnBeforeCopyRoutings', '', false, false)]
local procedure DoSomethingOnBeforeCopyRoutings(var CopyItemBuffer: Record "Copy Item Buffer"; FromItem: Record "Item"; var ToItem: Record "Item"; var IsHandled: Boolean)
begin
end;

Parameters:

  • CopyItemBuffer: The copy item buffer containing copy settings.
  • FromItem: The source item from which routings are being copied.
  • ToItem: The target item to which routings are being copied.
  • IsHandled: Set to true if the event is handled by a subscriber and default processing should be skipped.

Remarks: Allows customization of routing copying behavior during item copy operations.

OnAfterCopyRoutings(Record Copy Item Buffer, Record Item, Record Item) :#

Summary: Integration event triggered after copying routings during item copy operations.

[IntegrationEvent(false, false)]
local procedure OnAfterCopyRoutings(var CopyItemBuffer: Record "Copy Item Buffer"; FromItem: Record "Item"; var ToItem: Record "Item"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBACopyItem", 'OnAfterCopyRoutings', '', false, false)]
local procedure DoSomethingOnAfterCopyRoutings(var CopyItemBuffer: Record "Copy Item Buffer"; FromItem: Record "Item"; var ToItem: Record "Item")
begin
end;

Parameters:

  • CopyItemBuffer: The copy item buffer containing copy settings.
  • FromItem: The source item from which routings were copied.
  • ToItem: The target item to which routings were copied.

Remarks: Allows additional processing after routings have been copied.