Table of Contents

KVSTRDBackorderProcessingMgt

Procedures

GetLatestAvailabilityDate(Record Reservation Wksh. Line) : Date

Summary: Returns the latest Due Date among all Reservation Planning entries for the given worksheet line.

procedure GetLatestAvailabilityDate(ReservationWkshLine: Record "Reservation Wksh. Line"): Date

Parameters:

  • ReservationWkshLine: The Reservation Wksh. Line record whose related planning entries are evaluated.

Returns: The latest Due Date found, or 0D if no planning entries exist.

LogSalesLineShipmentDateChange(Record Sales Line, Integer, Date, Date, Enum KVSTRDShipmentDateLogReason) :

Summary: Logs a shipment or planned delivery date change on a Sales Line to the KVSTRDShipmentDateLog table, if the date actually changed.

procedure LogSalesLineShipmentDateChange(var SalesLine: Record "Sales Line"; ChangedFieldNo: Integer; OldShipmentDate: Date; NewShipmentDate: Date; ChangeReason: Enum "KVSTRDShipmentDateLogReason"): 

Parameters:

  • SalesLine: The Sales Line record the date change belongs to.
  • ChangedFieldNo: The field number of the date field that was changed.
  • OldShipmentDate: The date value before the change.
  • NewShipmentDate: The date value after the change.
  • ChangeReason: The reason for the date change.

Events

KVSTRDOnBeforeUpdateReservationEntry(Record Reservation Entry, Date, Boolean) :

Summary: This event is raised before updating the reservation entry and the related demand document date in the UpdateReservationEntry procedure.

[IntegrationEvent(false, false)]
local procedure KVSTRDOnBeforeUpdateReservationEntry(var ReservationEntry: Record "Reservation Entry"; NewDate: Date; var IsHandled: Boolean): 

Parameters:

  • ReservationEntry: The Reservation Entry record that is about to be updated.
  • NewDate: The new date to be applied to the reservation entry and the related demand document.
  • IsHandled: Specifies if the event has been handled. If set to true, the default logic for updating the reservation entry will not be executed.

KVSTRDOnBeforeUpdateDateOnShipmentDatePostponement(Record KVSTRDReservationPlanning, Record Reservation Wksh. Line, Boolean) :

Summary: This event is raised before updating the demand document date on shipment date postponement in the UpdateDateOnShipmentDatePostponement procedure.

[IntegrationEvent(false, false)]
local procedure KVSTRDOnBeforeUpdateDateOnShipmentDatePostponement(var ReservationPlanning: Record "KVSTRDReservationPlanning"; var ReservationWkshLine: Record "Reservation Wksh. Line"; var IsHandled: Boolean): 

Parameters:

  • ReservationPlanning: The Reservation Planning record related to the postponement.
  • ReservationWkshLine: The Reservation Wksh. Line record whose demand document date is about to be updated.
  • IsHandled: Specifies if the event has been handled. If set to true, the default logic for updating the date will not be executed.

KVSTRDOnBeforeReservationPlanningModify(Record KVSTRDReservationPlanning, Record Reservation Wksh. Line) :

Summary: This event is raised right before the new Reservation Planning entry is saved in the AddToReservationPlanning procedure, allowing further modification of the record.

[IntegrationEvent(false, false)]
local procedure KVSTRDOnBeforeReservationPlanningModify(var ReservationPlanning: Record "KVSTRDReservationPlanning"; ReservationWkshLine: Record "Reservation Wksh. Line"): 

Parameters:

  • ReservationPlanning: The Reservation Planning record that is about to be saved.
  • ReservationWkshLine: The Reservation Wksh. Line record the planning entry is created for.

KVSTRDOnBeforeCreateEntryDemandInsert(Record Reservation Entry, Record Reservation Wksh. Line, Record KVSTRDReservationPlanning) :

Summary: This event is raised right before the demand Reservation Entry is inserted in the CreateEntryDemand procedure, allowing further modification of the record.

[IntegrationEvent(false, false)]
local procedure KVSTRDOnBeforeCreateEntryDemandInsert(var ReservationEntry: Record "Reservation Entry"; ReservationWkshLine: Record "Reservation Wksh. Line"; ReservationPlanning: Record "KVSTRDReservationPlanning"): 

Parameters:

  • ReservationEntry: The Reservation Entry record that is about to be inserted.
  • ReservationWkshLine: The Reservation Wksh. Line record the entry is created for.
  • ReservationPlanning: The Reservation Planning record the entry is created from.

KVSTRDOnBeforeCreateEntrySupplyInsert(Record Reservation Entry, Record Reservation Entry, Record KVSTRDReservationPlanning) :

Summary: This event is raised right before the supply Reservation Entry is inserted in the CreateEntrySupply procedure, allowing further modification of the record.

[IntegrationEvent(false, false)]
local procedure KVSTRDOnBeforeCreateEntrySupplyInsert(var SupplyReservationEntry: Record "Reservation Entry"; ReservationEntry: Record "Reservation Entry"; ReservationPlanning: Record "KVSTRDReservationPlanning"): 

Parameters:

  • SupplyReservationEntry: The supply Reservation Entry record that is about to be inserted.
  • ReservationEntry: The demand Reservation Entry record the supply entry is created from.
  • ReservationPlanning: The Reservation Planning record the supply entry is created from.