RecRef.GETTABLE(Customer); TemplateManagement.UpdateRecord(DataTemplateHeader,RecRef);I get the Data Template Header from a setup table, and the 'Customer' variable is already filled with a customer record.
but I'm sure that no one has modified it.Another User has modified the record for this Customer after you retrieved it from the database.
Enter your changes again in the updated window, or start your activity again.
Answers
I added Customer.FIND('='); //get the rec. again
before my code:
RecRef.GETTABLE(Customer);
TemplateManagement.UpdateRecord(DataTemplateHeader,RecRef);
and it works ](*,)