static void UpdatingCustomerMaster(Args _args)
{
CustTable _custTable,custMaster;
int updatedCount;
updatedcount = 0;
ttsBegin;
while select forUpdate _custTable
where _custTable.MainContactWorker == 0 &&
_custTable.SalesGroup == 'RAB'//'SHI'
{
_custTable.MainContactWorker = 5637158830;///5637158827;
_custTable.update();
updatedCount++;
}
ttsCommit;
info(strFmt("No Of Records Updated:%1 ",updatedCount));
info('done');
}
No comments:
Post a Comment