Example of doupdate in MSD axapta

To update records forcefully in table you can use doupdate method with tablename. Following example is helpful to understand this thing .

 InventTrans _inventTrans;  
 ;  
 ttsbegin;  
 while select forupdate _inventTrans where _inventTrans.RecId == 5637152999  
 {  
 _inventTrans.inventDimId = '123213';  
 _inventTrans.doUpdate();  
 }  
 ttscommit;