sriharsha,
what are the key fields in your DSO? and what do u mean '***' ?
Nowhere in the code you are deleting the '***' record ... I think just mentioning '***' doesnt delete the 0TRANSTYPE with value '***' ...your code needs to be corrected.
Phani