HI everyone. Anyone knows if there is alredy some routine which deletes the tracking defined on sales documents, and I could use it? I've found this one but does work as expected.
WITH SalesLine DO BEGIN
ReservMgt.SetSalesLine(SalesLine);
ReservMgt.DeleteReservEntries(TRUE,0);
DeleteInvoiceSpecFromLine(SalesLine);
CALCFIELDS("Reserved Qty. (Base)");
AssignForPlanning(SalesLine);
END;
Don't know if there is a predefined routine or not. Start with the Reservation Management Codeunit (99000845). Form 6510 should give you a good understanding of how the functions in there are used. It's a start.
Comments
My Blog - nav.education