Hi Sergio.
Thanks for you reply.
The sentence works, when you use the in clase as you specify (V1, V2,..., Vn).
The problem is that I don't have a finite number of variable, and that is why I need to use a range structure, so instead of using V1, v2,... Vn. variables, I fill the range with them.
e.g.:
from MARA
where MATNR in R_MATNR (can't specify a finite number of variables like V1, V2,... Vn).