KVSFCYCalculationWkshMgmt#
Procedures#
ChangeWorksheetStatus(Record KVSFCYCalculationWorksheet) :#
Summary: Manages the status changes of calculation worksheet entries through an interactive menu system. This procedure allows users to change the status of marked calculation worksheet records by presenting context-sensitive menu options based on the current status. It enforces business rules such as ensuring only one preferred result per calculation batch and item combination. The procedure handles status transitions between Open (blank), Preferred, and Rejected states with appropriate validation and menu options in German language interface.
procedure ChangeWorksheetStatus(var calcWorksheetVar: Record "KVSFCYCalculationWorksheet"):
Parameters:
calcWorksheetVar: Record KVSFCYCalculationWorksheet: Reference to the calculation worksheet record(s) whose status should be changed. Can be filtered to process multiple marked records simultaneously.
Events#
OnAfterInitCalcWksh(Record KVSFCYCalculationWorksheet, Option) :#
Summary: Integration event that fires after the initialization of a calculation worksheet entry is completed. This event allows external codeunits to extend the initialization process by performing additional setup, validation, or data population after the basic calculation worksheet record has been initialized with default values. Subscribers can modify the calculation worksheet record or perform related setup operations based on the source type and other initialization parameters.
[IntegrationEvent(false, false)]
local procedure OnAfterInitCalcWksh(var CalculationWksh: Record "KVSFCYCalculationWorksheet"; SourceType: Option):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSFCYCalculationWkshMgmt", 'OnAfterInitCalcWksh', '', false, false)]
local procedure DoSomethingOnAfterInitCalcWksh(var CalculationWksh: Record "KVSFCYCalculationWorksheet"; SourceType: Option)
begin
end;
Parameters:
CalculationWksh: Record KVSFCYCalculationWorksheet: Reference to the calculation worksheet record that has been initialized and can be modified by event subscribers.SourceType: Option: The source type parameter that was used during initialization, indicating the context or origin of the calculation worksheet entry.