Choose your path Increase your proficiency with the Dynamics 365 applications that you already use and learn more about the apps that interest you. Up your game with a learning path tailored to today's Dynamics 365 masterminds and designed to prepare you for industry-recognized Microsoft certifications.
Visit Microsoft Learn
2020 release wave 1Discover the latest updates and new features to Dynamics 365 planned through September 2020
Release overview guides and videos Release Plan | Preview 2020 Release Wave 1 TimelineWatch the 2020 Release Wave 1 virtual launch event
Ace your Dynamics 365 deployment with packaged services delivered by expert consultants. | Explore service offerings
Connect with the ISV success team on the latest roadmap, developer tool for AppSource certification, and ISV community engagements | ISV self-service portal
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance TechTalks | Customer Engagement TechTalks | Upcoming TechTalks
Hello Everyone, I add two fields in Posted Transfer Shipment table Total Quantity and amount by using calcfield on Transfer Shipment Line table. To calculate amount against each item i use code and insert in Amount Field and modify that field. It work fine but is that when i create new transfer order it display an error message "An attempt was made to change an old version of a transfer header record. The record should be reread from the database." This code i use to modify amount field. TransShpLine.RESET; TransShpLine.SETAUTOCALCFIELDS(TransShpLine.ItemAmount); TransShpLine.SETRANGE(TransShpLine.Calculated,FALSE); IF TransShpLine.FINDSET THEN REPEAT TransShpLine."Document No." := TransShpLine."Document No."; TransShpLine."Line No." := TransShpLine."Line No."; TransShpLine.Amount := (TransShpLine.Quantity * TransShpLine.ItemAmount); TransShpLine.Calculated := TRUE; TransShpLine.MODIFY; UNTIL TransShpLine.NEXT = 0; MESSAGE('Done');
Does the error say "Transfer Header" or "Transfer Line"?
Could you post the code which modifies the Transfer Header.
Why in the FINDSET loop you re-assign Document No and Line No with the same values?
You can remove these lines:
TransShpLine."Document No." := TransShpLine."Document No.";
TransShpLine."Line No." := TransShpLine."Line No.";
Business Applications communities