Hi Ahmed,
the problem is: IMO it's a little dangerous to filter by document no., so I won't do this in code. But you can set a filter on the reversal entries generated by "reverse transaction" and post it afterwards. It should take your filter into consideration.
with best regards
Jens