Table of Contents

KVSPSARenumber PSP Management

Procedures

MovePSPLine(Record KVSPSAJobPSPLine, Integer) :

Summary: This procedure used for move Job PSP Line to new Line No. It will create a new Job PSP Line with the new Line No. then move all related tables to the new Line No. and delete the old Job PSP Line.

procedure MovePSPLine(JobPSPLine: Record "KVSPSAJobPSPLine"; NewLineNo: Integer): 

Parameters:

  • JobPSPLine: Record of old Job PSP Line which will be moved to a new Line No.
  • NewLineNo: Integer of new Line No. which will be assigned to the new Job PSP Line.

Events

KVSPSAOnAfterMoveToNewJobPSPLineBeforeDeleteOldPSPLine(Record KVSPSAJobPSPLine, Record KVSPSAJobPSPLine) :

Summary: Use this Event to change the Values of the NewJobPSPLine or to move other related tables of JobPSPLine

[IntegrationEvent(false, false)]
local procedure KVSPSAOnAfterMoveToNewJobPSPLineBeforeDeleteOldPSPLine(var NewJobPSPLine: Record "KVSPSAJobPSPLine"; var OldJobPSPLine: Record "KVSPSAJobPSPLine"): 

Parameters:

  • NewJobPSPLine: New created JobPSPLine with new "Line No."
  • OldJobPSPLine: Old JobPSPLine which is moved to a new "Line No."

KVSPSAOnBeforeInsertNewBudgetLine(Record KVSPSA Job Budget Line, Record KVSPSA Job Budget Line) :

Summary: Event fired before inserting a new budget line during PSP line renumbering. Allows extensions to modify the new budget line before insertion. This event enables customization of budget line data during the renumbering process, allowing modifications to fields or related calculations.

[IntegrationEvent(false, false)]
local procedure KVSPSAOnBeforeInsertNewBudgetLine(var NewJobBudgetLine: Record "KVSPSA Job Budget Line"; var JobBudgetLine: Record "KVSPSA Job Budget Line"): 

Parameters:

  • NewJobBudgetLine: The new job budget line being created with the new line numbering (passed by reference for modification).
  • JobBudgetLine: The original job budget line that is being renumbered.

KVSPSAOnBeforeInsertNewJobPSPLineOnMovePSPLine(Record KVSPSAJobPSPLine, Record KVSPSAJobPSPLine) :

Summary: Use this Event to add changes to NewJobPSPLine before its inserted after values of OldJobPSPLine are transfered

[IntegrationEvent(false, false)]
local procedure KVSPSAOnBeforeInsertNewJobPSPLineOnMovePSPLine(var NewJobPSPLine: Record "KVSPSAJobPSPLine"; var OldJobPSPLine: Record "KVSPSAJobPSPLine"): 

Parameters:

  • NewJobPSPLine: New created JobPSPLine with new "Line No."
  • OldJobPSPLine: Old JobPSPLine which is moved to a new "Line No."