Skip to content

KVSPSAADVAdvancePlanMgt#

Events#

KVSPSAADVOnBeforeAssignWorkPackageForAdvancePlanningEntryFromTemplateLine(Record KVSADVAdvPlanTemplateLine, Record KVSADVAdvance Planning Entry, Boolean) :#

Summary: This Event will be raised when an Advance Planning Entry is created from an Advance Plan Template Line. The system will try to find a matching WBS Line for the Advance Planning Line after this event.

[IntegrationEvent(false, false)]
local procedure KVSPSAADVOnBeforeAssignWorkPackageForAdvancePlanningEntryFromTemplateLine(KVSADVAdvPlanTemplateLine: Record "KVSADVAdvPlanTemplateLine"; var KVSADVAdvancePlanningEntry: Record "KVSADVAdvance Planning Entry"; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAADVAdvancePlanMgt", 'KVSPSAADVOnBeforeAssignWorkPackageForAdvancePlanningEntryFromTemplateLine', '', false, false)]
local procedure DoSomethingKVSPSAADVOnBeforeAssignWorkPackageForAdvancePlanningEntryFromTemplateLine(KVSADVAdvPlanTemplateLine: Record "KVSADVAdvPlanTemplateLine"; var KVSADVAdvancePlanningEntry: Record "KVSADVAdvance Planning Entry"; var IsHandled: Boolean)
begin
end;

Parameters:

  • KVSADVAdvPlanTemplateLine: The Template Line based on which the Advance Planning Entry has been created
  • KVSADVAdvancePlanningEntry: The newly created Advance Planning Entry
  • IsHandled: Disables the default automatic search for a fitting WBS Line if set to true

KVSPSAADVOnBeforeAutoFindPSPLineForAdvancePlanningEntry(Record KVSADVAdvance Planning Entry, Boolean) :#

Summary: This Event will be raised when a user directly assigns a Work Package to an Advance Planning Line and hence the system should search for an fitting PSP Line

[IntegrationEvent(false, false)]
local procedure KVSPSAADVOnBeforeAutoFindPSPLineForAdvancePlanningEntry(var KVSADVAdvancePlanningEntry: Record "KVSADVAdvance Planning Entry"; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAADVAdvancePlanMgt", 'KVSPSAADVOnBeforeAutoFindPSPLineForAdvancePlanningEntry', '', false, false)]
local procedure DoSomethingKVSPSAADVOnBeforeAutoFindPSPLineForAdvancePlanningEntry(var KVSADVAdvancePlanningEntry: Record "KVSADVAdvance Planning Entry"; var IsHandled: Boolean)
begin
end;

Parameters:

  • KVSADVAdvancePlanningEntry: The Advance Planning Entry an PSP line is being searched for
  • IsHandled: Disables the default automatic search for a fitting PSP Line if set to true

KVSPSAADVOnBeforeCalcWarningTextForAdvancePlanningEntry(Record KVSADVAdvance Planning Entry, Text, Boolean) :#

Summary: This Event will be raised when the Warning Text shown in the Advance Planning Chart is being calculated. Use this event to add new warnings or supress default warnings

[IntegrationEvent(false, false)]
local procedure KVSPSAADVOnBeforeCalcWarningTextForAdvancePlanningEntry(KVSADVAdvancePlanningEntry: Record "KVSADVAdvance Planning Entry"; var WarningText: Text; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAADVAdvancePlanMgt", 'KVSPSAADVOnBeforeCalcWarningTextForAdvancePlanningEntry', '', false, false)]
local procedure DoSomethingKVSPSAADVOnBeforeCalcWarningTextForAdvancePlanningEntry(KVSADVAdvancePlanningEntry: Record "KVSADVAdvance Planning Entry"; var WarningText: Text; var IsHandled: Boolean)
begin
end;

Parameters:

  • KVSADVAdvancePlanningEntry: The Advance Planning Entry the Warning Text is being calculated for
  • WarningText: The text containing the relevant warnings
  • IsHandled: Disables all default warnings if set to true

KVSPSAADVOnBeforeFillClosInvoiceTypeAndNoForAdvancePlanningEntryFromBudgetLine(Record KVSADVAdvance Planning Entry, Boolean, Boolean) :#

Summary: This Event will be raised for Advance Planning Entries of Type Closing Invoice when the Type and. No. to use in the closing invoice are filled based on a Budget Line

[IntegrationEvent(false, false)]
local procedure KVSPSAADVOnBeforeFillClosInvoiceTypeAndNoForAdvancePlanningEntryFromBudgetLine(var KVSADVAdvancePlanningEntry: Record "KVSADVAdvance Planning Entry"; var Result: Boolean; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAADVAdvancePlanMgt", 'KVSPSAADVOnBeforeFillClosInvoiceTypeAndNoForAdvancePlanningEntryFromBudgetLine', '', false, false)]
local procedure DoSomethingKVSPSAADVOnBeforeFillClosInvoiceTypeAndNoForAdvancePlanningEntryFromBudgetLine(var KVSADVAdvancePlanningEntry: Record "KVSADVAdvance Planning Entry"; var Result: Boolean; var IsHandled: Boolean)
begin
end;

Parameters:

  • KVSADVAdvancePlanningEntry: The Advance Planning Entry which should be filled
  • Result: Specifies whether Type and No. have been successfully filled
  • IsHandled: Disables the default assigning of Type and No. if set to true

KVSPSAADVOnBeforeFillClosInvoiceTypeAndNoForAdvancePlanningEntryFromWorkPackage(Record KVSADVAdvance Planning Entry, Boolean) :#

Summary: This Event will be raised for Advance Planning Entries of Type Closing Invoice when the Type and. No. to use in the closing invoice are filled based on a Work Package

[IntegrationEvent(false, false)]
local procedure KVSPSAADVOnBeforeFillClosInvoiceTypeAndNoForAdvancePlanningEntryFromWorkPackage(var KVSADVAdvancePlanningEntry: Record "KVSADVAdvance Planning Entry"; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAADVAdvancePlanMgt", 'KVSPSAADVOnBeforeFillClosInvoiceTypeAndNoForAdvancePlanningEntryFromWorkPackage', '', false, false)]
local procedure DoSomethingKVSPSAADVOnBeforeFillClosInvoiceTypeAndNoForAdvancePlanningEntryFromWorkPackage(var KVSADVAdvancePlanningEntry: Record "KVSADVAdvance Planning Entry"; var IsHandled: Boolean)
begin
end;

Parameters:

  • KVSADVAdvancePlanningEntry: The Advance Planning Entry which should be filled
  • IsHandled: Disables the default assigning of Type and No. if set to true