The Primary key of Sales Line Doc Type, Doc No. and Line No.
So you have to insert those primary key records must.
Add below code and try..
TempSalesLine."Document Type" := "Document Type";
TempSalesLine."Line No." := "Line No.";
The Primary key of Sales Line Doc Type, Doc No. and Line No.
So you have to insert those primary key records must.
Add below code and try..
TempSalesLine."Document Type" := "Document Type";
TempSalesLine."Line No." := "Line No.";