KVSKBACopyItemBuffer
Extends #437dbf0e84ff417a965ded2bb9650972#Copy Item Buffer
Summary: Extends Copy Item Buffer with Prod BOM, Production BOM No, and Prod BOM Version Code to support 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
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.