I am trying to assign values to transaction properties as below
transaction l_tmp
l_tmp = CREATE transaction
l_tmp.DBParm = arg_trans.DBParm
l_tmp.SQLErrText= arg_trans.SQLErrText
l_tmp.SQLDBCode= arg_trans.SQLDBCode
I observe that l_tmp.SQLCode (not SQLDBCode) assigned with -1 where as arg_trans.SQLCode = 0 and not being assigned by code
and apart from DBParm value, SQLErrText and SQLDBCode values are not getting assigned to l_tmp
after executing above lines
l_tmp.SQLErrText= "Transaction not connected"
l_tmp.SQLDBCode= 0
where as arg_trans values are
arg_trans.SQLErrText = "some db error "
arg_trans.SQLDBCode = -1
why arg_trans values are not getting assigned to l_tmp?