Lo que tienes que hacer es crearla SI NO EXISTE.
Code: Select all | Expand
oCon:Execute("";
+ "CREATE TEMPORARY TABLE IF NOT EXISTS TmpProd ";
+"(";
+"`Producto` INT(6) NOT NULL AUTO_INCREMENT,";
// aqui toda la estructura de tu tabla temporal //
+" PRIMARY KEY (Producto)) ENGINE=INNODB DEFAULT CHARSET=utf8")
oApp:oServer:NextResult()
oCon:Execute("TRUNCATE TmpProd ")
//... Todo el resto de tu codigo