Import from Excel hide dialog Shipment Date <> workdate

samantha73samantha73 Member Posts: 106
Hi All
I have tried below code to hide dialog when importing Sales Order lines but it's not working

SalesLine.Init();

SalesLine.validate("Document No.", SalesHeader."No.");
NextLineNo := NextLineNo + 1000;
SalesLine."Line No." := NextLineNo;
SalesLine.SetHideValidationDialog(True);
SalesLine.Validate("Shipment Date", SalesHeader."Posting Date");

However if a table extension created it works for the shipment date field
modify("Shipment Date")
{
trigger OnBeforeValidate()
begin
Rec.SetHideValidationDialog(true);



Sign In or Register to comment.