Sales Line does not compile.

Freaky
Freaky Member Posts: 125
Hi Guys,
I am trying to compile the Sales Line table but it gives me an error "You have specified an unknown variable SetSalesLine." Can anyone help me please. Below is part of the code that gives me the error.

Thanks.
IF ("Shipment Date" <> 0D) AND (Reserve = Reserve::Always) THEN BEGIN
  IF "Shipment Date" <> xRec."Shipment Date" THEN BEGIN
    IF (ReserveSalesLine.ReservQuantity(Rec) <> 0) THEN BEGIN
      ReservMgt.SetSalesLine(Rec);
      TESTFIELD("Shipment Date");
      ReservMgt.AutoReserve(FullAutoReservation,'',"Shipment Date",ReserveSalesLine.ReservQuantity(Rec));
    END;
  END;
  CALCFIELDS("Reserved Quantity");
END;

Answers

  • Belias
    Belias Member Posts: 2,998
    ReservMgt.SetSalesLine(Rec);
    I ReservMgt points to another object (check it). That object must have a setsalesline function.
    -Mirko-
    "Never memorize what you can easily find in a book".....Or Mibuso
    My Blog