lv_PackingHeader.TRANSFERFIELDS(Rec);
lv_PackingHeader.INSERT;
Rec is from type Sales Header... Basically it just copies all the Bill-To, Sell-to and Ship-to fields to my own Record Packing Header
When i do this: lv_PackingHeader.INSERT(TRUE);
Following code gets executed in Packing Header table:
IF "Packinglist No." = '' THEN BEGIN
SetupTable.GET;
SetupTable.TESTFIELD("Packing Order Nos.");
NoSeriesMgt.InitSeries(
SetupTable."Packing Order Nos.",xRec."No. Series",0D,"Packinglist No.","No. Series");
END;
But this gives an error?
Can i not insert wiht the INSERT(TRUE)?
If so how do i get the new number according to the Number serie?
0
Answers
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.