InventModelGroupItem inventModelGroupItem; EcoResProduct ecoresproduct; InventTable inventTable; ttsBegin; while select forUpdate inventModelGroupItem where inventModelGroupItem.ItemId != '' join inventTable where inventModelGroupItem.ItemId == inventTable.ItemId && inventModelGroupItem.ItemDataAreaId == 'QTS' && inventTable.ItemType == ItemType::Item inventModelGroupItem.ModelGroupId = 'WA'; inventModelGroupItem.update(); ttsCommit; info(/completed/);