Hi Thillairaja,
The best recommendation I can make is to remove the trigger. The release process in Receipt Invoice Entry screen tries to create an AP Voucher batch if you have that option checked in that screen. So the trigger you created on APTran must be interferring with that process.