I want to insert line in Item Tracking Lines using Code . I tried creating new record and i can see the record if I open the table but it doesnt show in the page, I also tried creating reservation entry but it did not work as well
I want to insert line in Item Tracking Lines using Code . I tried creating new record and i can see the record if I open the table but it doesnt show in the page, I also tried creating reservation entry but it did not work as well
I Already solved the problem , Thanks
hello
use debugging to see why
DAniele
Thanks for your answer, I tried using this CodeUnit but it did not work but It worked for me using this code
rec.Validate("Package No.", ItemSpec."Package No.");
rec.Validate("Lot No.", ItemSpec."Lot No.");
Rec.Validate("Expiration Date", ItemSpec."Expiration Date");
rec.Validate("Quantity (Base)", ItemSpec."Quantity (Base)");
Rec."Entry No." := NextEntryNo();
TestTempSpecificationExists();
Rec.Insert();
TempItemTrackLineInsert.TransferFields(Rec);
TempItemTrackLineInsert.Insert();
ItemTrackingDataCollection.UpdateTrackingDataSetWithChange(
TempItemTrackLineInsert, CurrentSignFactor * SourceQuantityArray[1] < 0, CurrentSignFactor, 0);
CalculateSums();
You can make use of Codeunit 99000830 “Create Reserv. Entry”.
Check thatnavguy.com/.../ for reference.
André Arnaud de Cal... 291,784 Super User 2024 Season 2
Martin Dráb 230,476 Most Valuable Professional
nmaenpaa 101,156