var PurchasePriceTemp: Record "Purchase Price" temporary; begin PurchasePriceL.SetRange("Vendor No.", inVendorNo); if PurchasePriceL.FindSet() then begin repeat PurchasePriceTemp.Init(); PurchasePriceTemp := PurchasePriceL; PurchasePriceTemp."Minimum Quantity" := 9999; // just as an identifier to make sure those temp records will not be saved on the real table PurchasePriceTemp.Insert(); until PurchasePriceL.Next() = 0; end;
if PurchasePriceTemp.FindSet() then begin repeat PurchasePriceL.Get(PurchasePriceTemp."Item No.", PurchasePriceTemp."Vendor No.", PurchasePriceTemp."Starting Date", PurchasePriceTemp."Currency Code", PurchasePriceTemp."Variant Code", PurchasePriceTemp."Unit of Measure Code", PurchasePriceTemp."Minimum Quantity");
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Rishabh Kanaskar 3,401
Sumit Singh 2,692
YUN ZHU 1,935 Super User 2025 Season 2