Table of Contents

KVSKBACopyItemBuffer

Extends #437dbf0e84ff417a965ded2bb9650972#Copy Item Buffer

Fields

Name Type Note
KVSKBAProdBOM Boolean
KVSKBAProductionBOMNo Code[20]
KVSKBAProdBOMVersionCode Code[20]
KVSKBARouting Boolean
KVSKBARoutingNo Code[20]
KVSKBARoutingVersionCode Code[20]
KVSKBASubsPackage Boolean

Procedures

KVSKBASelectDeselectAllSelections(Boolean) :

OBSOLETE

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

Summary: The function is a select or deselect all selections (obsolete).

[Obsolete('Obsolete because new Standard Feature', '27.0')]
procedure KVSKBASelectDeselectAllSelections(CurrSelection: Boolean): 

Parameters:

  • CurrSelection: Indicates whether the current selection should be applied.

Remarks: This procedure is used to select or deselect all the selection fields in the copy item process. It is marked as obsolete because there is a new standard feature that provides similar functionality, and this procedure may no longer be necessary or relevant.

KVSKBACalcProdBOMAndVersion() :

Summary: Calculates the Production BOM and Version based on the source item.

procedure KVSKBACalcProdBOMAndVersion(): 

Remarks: This procedure retrieves the production BOM number and version for the source item specified in the "Copy Item Buffer" record. It checks if the source item has an associated production BOM and if the "Production BOM" selection is enabled. If both conditions are met, it sets the production BOM number and retrieves the appropriate version based on the current date. The calculated values are stored in the "Copy Item Buffer" record for later use during the item copying process.

KVSKBACalcRoutingAndVersion() :

Summary: Calculates the Routing and Version based on the source item.

procedure KVSKBACalcRoutingAndVersion(): 

Remarks: This procedure retrieves the routing number and version for the source item specified in the "Copy Item Buffer" record. It checks if the source item has an associated routing and if the "Routing" selection is enabled. If both conditions are met, it sets the routing number and retrieves the appropriate version based on the current date. The calculated values are stored in the "Copy Item Buffer" record for later use during the item copying process.

Events

KVSKBAOnBeforeGetProdBOMVersionInCalcProdBOMAndVersion(Code[20], Code[20], Boolean) :

Summary: Integration event that is raised before the KVSKBACalcProdBOMAndVersion procedure is executed.

[IntegrationEvent(false, false)]
local procedure KVSKBAOnBeforeGetProdBOMVersionInCalcProdBOMAndVersion(var SourceItemNo: Code[20]; var TargetItemNo: Code[20]; var UseProdBOMVersionL: Boolean): 

Parameters:

  • SourceItemNo: The source item number.
  • TargetItemNo: The target item number.
  • UseProdBOMVersionL: Indicates whether to use the production BOM version.

Remarks: Subscribe to this event to implement custom logic before the KVSKBACalcProdBOMAndVersion procedure is executed. This event provides access to the source and target item numbers and the flag indicating whether to use the production BOM version, allowing for modifications or additional processing before the standard logic is executed.