Thank you!
I've followed your suggestion and I think I've solved it. If anybody needs to convert an ETABLE to a TABLE, I put the code here
*DIM,VECTOR_TABLEMOD,TABLE,NUMBER_ROWS_TABLEMOD,1,1
*VGET,VECTOR_TABLEMOD(1),ELEM,1,ETAB,TABLEMOD
BFE,ALL,HGEN,1,%VECTOR_TABLEMOD%