ttsBegin; myPurchLine = PurchLine::findRecId(purchLine.RecId, true); // . . . myPurchLine.doUpdate(); // . . . ttsCommit;