Your field is character type but your validation is for different type.
You can try creating a numeric/int variable then move the value of w_ret-impret then validate.
Data: l_int TYPE i.
MOVE w_ret-impret TO l_int.
if l_inteq 0.
else.
APPEND w_ret TO t_ret.
endif.