this invention relates to novel heterocyclic carboxamides which increase the activity of the immune system and to the preparation thereof . the invention is also concerned with pharmaceutical compositions containing the said compounds and methods of treatment therewith .