Hola Jaime,

your problem are the INGROUP calls:

Change all occurances of eg. INGROUP = "TI" to INGROUP("TI")
INGROUP is a function, not a constant..
_________________________