Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Suggested answer

How to insert Line in Item Tracking Lines

(0) ShareShare
ReportReport
Posted on by 29

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

  • Muaaz Deyab Profile Picture
    Muaaz Deyab 29 on at
    RE: How to insert Line in Item Tracking Lines

    I Already solved the problem , Thanks

  • Suggested answer
    DAnny3211 Profile Picture
    DAnny3211 9,274 Super User 2024 Season 1 on at
    RE: How to insert Line in Item Tracking Lines

    hello

    use debugging to see why

    DAniele

  • Muaaz Deyab Profile Picture
    Muaaz Deyab 29 on at
    RE: How to insert Line in Item Tracking Lines

    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();

  • Suggested answer
    TeddyH Profile Picture
    TeddyH 12,864 Super User 2024 Season 1 on at
    RE: How to insert Line in Item Tracking Lines

    You can make use of Codeunit 99000830 “Create Reserv. Entry”.

    Check thatnavguy.com/.../ for reference.

  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,081 Super User 2024 Season 1 on at
    RE: How to insert Line in Item Tracking Lines

    Hi,

    You can follow the below link

    yzhums.com/.../

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,784 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,476 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans