Hi Experts,
I am getting below error while trying to run a custom script. can anyone help me to solve it please.
I am trying to update the BankTransAmountCur value for a record in the table bankAccountTrans using below class
class UAPBankTransUpdate
{
public static void main(Args _args)
{
BankAccountTrans bankAccountTrans;
if(curExt() != 'UAP')
{
throw error("This script must run in UAP entity");
}
select forupdate bankAccountTrans
where bankAccountTrans.RecId == 5637187458;
if(bankAccountTrans)
{
ttsbegin;
bankAccountTrans.BankTransAmountCur = 258000.33654;
bankAccountTrans.doUpdate();
Info("Record updated");
ttscommit;
}
}
}