KVSKBARequisitionSubscriber#
Events#
OnOrderPlanningOnBeforeMakeSupplyOrders(Record Requisition Line, Record Manufacturing User Template, Boolean, Boolean) :#
Summary: Integration event raised before making supply orders from the Order Planning page.
[IntegrationEvent(false, false)]
local procedure OnOrderPlanningOnBeforeMakeSupplyOrders(var RequisitionLine: Record "Requisition Line"; MfgUserTempl: Record "Manufacturing User Template"; var CarriedOut: Boolean; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBARequisitionSubscriber", 'OnOrderPlanningOnBeforeMakeSupplyOrders', '', false, false)]
local procedure DoSomethingOnOrderPlanningOnBeforeMakeSupplyOrders(var RequisitionLine: Record "Requisition Line"; MfgUserTempl: Record "Manufacturing User Template"; var CarriedOut: Boolean; var IsHandled: Boolean)
begin
end;
Parameters:
RequisitionLine: Requisition line record for which supply orders are being created.MfgUserTempl: Manufacturing user template containing default settings for order creation.CarriedOut: Variable indicating whether the action message was carried out; can be set by subscribers.IsHandled: Set to true by subscribers to skip the KUMAVISION custom make supply orders logic.
Remarks: This event allows extensions to customize or override the make supply orders process when initiated from the Order Planning page. Subscribers can implement alternative order creation logic, add validation rules, modify the manufacturing user template settings, or completely bypass the standard KUMAVISION process by setting IsHandled to true. The event is raised before the KVSKBAMakeSupplyOrdersYesNo codeunit is executed. This is useful for implementing custom order creation workflows, approval processes, or integration with external planning systems.
OnPurchDocFromSalesDocOnBeforeMakeSupplyOrdersYesNo(Record Requisition Line, Record Document Entry, Record Manufacturing User Template, Boolean) :#
Summary: Integration event raised before making supply orders when creating purchase documents from sales documents.
[IntegrationEvent(false, false)]
local procedure OnPurchDocFromSalesDocOnBeforeMakeSupplyOrdersYesNo(var RequisitionLine: Record "Requisition Line"; var TempDocumentEntry: Record "Document Entry" temporary; TempManufacturingUserTemplate: Record "Manufacturing User Template" temporary; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBARequisitionSubscriber", 'OnPurchDocFromSalesDocOnBeforeMakeSupplyOrdersYesNo', '', false, false)]
local procedure DoSomethingOnPurchDocFromSalesDocOnBeforeMakeSupplyOrdersYesNo(var RequisitionLine: Record "Requisition Line"; var TempDocumentEntry: Record "Document Entry" temporary; TempManufacturingUserTemplate: Record "Manufacturing User Template" temporary; var IsHandled: Boolean)
begin
end;
Parameters:
RequisitionLine: Requisition line record for which supply orders are being created.TempDocumentEntry: Temporary document entry buffer for tracking created documents.TempManufacturingUserTemplate: Temporary manufacturing user template containing settings for order creation.IsHandled: Set to true by subscribers to skip the KUMAVISION custom make supply orders logic.
Remarks: This event allows extensions to customize or override the make supply orders process when creating purchase documents from sales documents (drop shipment or special order scenarios). Subscribers can implement alternative order creation logic, add validation rules, modify the manufacturing user template settings, access or modify the document entry buffer, or completely bypass the standard KUMAVISION process by setting IsHandled to true. The event is raised before the KVSKBAMakeSupplyOrdersYesNo codeunit is executed. This is useful for implementing custom drop shipment workflows, validation rules for special orders, or integration with external procurement systems.