Hi Ruining,
Well, The info about your Quote is stored in the Sales Header (Field "Quote No."). Try this code (I didn't test it)
tableextension 50010 SalesLineExt extends "Sales Line"
{
................
trigger OnBeforeInsert()
var
SalesHeader : Record "Sales Header";
begin
if SalesHeader.GET("Document Type"::Quote,Rec."Quote No.") then Begin
Rec.UDF1 := SalesHeader.UDF1;
Rec.UDF2 := SalesHeader.UDF2;
......................
......................
End;
end;
..................
}
If it doesn't work with OnBeforeInsert, try the same code on the OnInsert Trigger. If it doesn't work (you can try to create another table associated to your Sales Lines in which you copy your UDFs and the Sales Quotes Line No when you create a Sales Quote, then in OnInsert check your new table with Quote No and copy your UDFs)
--
Don't hesitate if If you need more details or explanations.
-------------
Please verify my answer if you find my answer helpful. Doing so you'll show other community members that there was found a solution and you credit my help.
-------------
Best Regards,