Why do you need this change?
Description
Request to add a specific integration event at the beginning of SetRtngLineSequenceBack procedure in Planning Routing Management codeunit (ID: 99000808) to enable partners to implement a critical workaround for a data consistency bug.
Critical Business Need
There is a critical bug in SetRtngLineSequenceBack where the procedure works with record data that has been reset to zeros by previous ModifyAll operations in CalcSequenceBack. This causes incorrect sequence calculations and data corruption in manufacturing planning.
Partners need an event at the VERY BEGINNING of the procedure to:
- Refresh the record data using
PlanningRtngLine.Get()
- Ensure the procedure works with current database state
- Prevent manufacturing planning errors
Describe the request
procedure SetRtngLineSequenceBack(RoutingType: Option Serial,Parallel; PlanningRtngLine: Record "Planning Routing Line"; Maxsequences: Integer; Actsequences: Integer; TotalCalculation: Boolean)
var
PlanningRtngLine2: Record "Planning Routing Line";
SequenceNo: Integer;
begin
//-- NEW EVENT --
OnBeforeSetRtngLineSequenceBack(RoutingType, PlanningRtngLine, MaxSeq, ActSeq, TotalCalculation, IsHandled);
//++ NEW EVENT ++
if RoutingType = RoutingType::Parallel then begin
if (Actsequences - 1) > Maxsequences then
ErrorInRouting(
PlanningRtngLine."Worksheet Line No.", Text001, Actsequences, Maxsequences);
[IntegrationEvent(false, false)]
local procedure OnBeforeSetRtngLineSequenceBack(RoutingType: Option; var PlanningRtngLine: Record "Planning Routing Line"; var MaxSeq: Integer; var ActSeq: Integer; TotalCalculation: Boolean; var IsHandled: Boolean)
Internal work item: AB#616459
Why do you need this change?
Description
Request to add a specific integration event at the beginning of
SetRtngLineSequenceBackprocedure in Planning Routing Management codeunit (ID: 99000808) to enable partners to implement a critical workaround for a data consistency bug.Critical Business Need
There is a critical bug in
SetRtngLineSequenceBackwhere the procedure works with record data that has been reset to zeros by previousModifyAlloperations inCalcSequenceBack. This causes incorrect sequence calculations and data corruption in manufacturing planning.Partners need an event at the VERY BEGINNING of the procedure to:
PlanningRtngLine.Get()Describe the request
Internal work item: AB#616459