An heteroarylamide derivative having formula and N-oxides, stereoisomers and pharmaceutically acceptable salts thereof; where R' and R" are each independently selected from the group consisting of H and alkyl; z is an integer 0 to 3; X is selected from the group consisting of O, S, S, SO 2, NR12, where R12 is selected from the group consisting of H, alkyl and COR, where R is hydrogen or alkyl; CH 2 and CO; or when z is 0, then X may be N and forms together with R11 a heterocyclic ring selected from the group consisting of morpholine, 1,2,4-triazole, imidazole and N-substituted imidazole; and R11, when not forming a ring with X as defined above, is selected from the group consisting of alkyl, alkenyl, (per)haloalkyl, haloalkenyl, alkyl-CN and an aryl, heteroaryl, aliphatic or heteroaliphatic, 3 - 7-membered ring optionally substituted with 1 - 5 substituents selected from the group consisting of alkyl, alkoxy, hydroxyl, halogen, (per)haloalkyl, CN, NO 2, COR, COOR, CONHR, NR 2, NHCOCF 3, NHCOR, NHCONHR, NHCOOR, OCONHR, NHSO 2 R, NHCSCH 3, SR, SOR and SO 2 R, where R is as defined above; R B is a heteroaromatic ring having 6 ring members and being optionally substituted at one or more ring carbon atoms, of which ring members 1 or 2 are N atoms and the other ring members are carbon atoms, or R B is an optionally substituted phenyl group, the substituent(s) in R B being selected from the group consisting of alkyl, alkoxy, hydroxy, halogen, (per)haloalkyl, CN, NO 2, COR, COOR, NR 2, NHCOCF 3, NHCOR, NHCONHR, NHCOOR, OCONHR, CONHR, where R is as defined above; NHCSCH 3, SR, SOR and SO 2 R, where R is as defined above, or, when R B is an optionally substituted phenyl group, then two adjacent substituents may also form with the carbon atoms, to which they are attached, a substituted or unsubstituted aliphatic, heteroaliphatic or heteroaromatic, ring; and R A is a mono- or bicyclic heteroaromatic ring system having 6 to 10 ring members and being optionally substituted at one or more ring carbon atoms, of which ring members 1 to 4 are N atoms and the other ring members are carbon atoms, whereby when R B is an optionally substituted phenyl group, then the ring attached to the NH group contains at least one N atom as a ring member, or when R B is an optionally substituted heteroaromatic ring, then R A may also be an optionally substituted phenyl group, the substituent(s) in R A being selected from the group consisting of alkyl, alkoxy, halogen, (per)haloalkyl, hydroxy, (CH 2) n CHO, where n is an integer 0 - 6; CN, NO 2, COR, COOR and CONHR, where R is as defined above, or when R A is an optionally substituted phenyl group, then two adjacent substituents may also form with the carbon atoms, to which they are attached, a substituted or unsubstituted aliphatic, heteroaliphatic or heteroaromatic ring. R' and R" are each independently selected from the group consisting of H and alkyl; z is an integer 0 to 3; X is selected from the group consisting of O, S, S, SO 2, NR12, where R12 is selected from the group consisting of H, alkyl and COR, where R is hydrogen or alkyl; CH 2 and CO; or when z is 0, then X may be N and forms together with R11 a heterocyclic ring selected from the group consisting of morpholine, 1,2,4-triazole, imidazole and N-substituted imidazole; and R11, when not forming a ring with X as defined above, is selected from the group consisting of alkyl, alkenyl, (per)haloalkyl, haloalkenyl, alkyl-CN and an aryl, heteroaryl, aliphatic or heteroaliphatic, 3 - 7-membered ring optionally substituted with 1 - 5 substituents selected from the group consisting of alkyl, alkoxy, hydroxyl, halogen, (per)haloalkyl, CN, NO 2, COR, COOR, CONHR, NR 2, NHCOCF 3, NHCOR, NHCONHR, NHCOOR, OCONHR, NHSO 2 R, NHCSCH 3, SR, SOR and SO 2 R, where R is as defined above; R B is a heteroaromatic ring having 6 ring members and being optionally substituted at one or more ring carbon atoms, of which ring members 1 or 2 are N atoms and the other ring members are carbon atoms, or R B is an optionally substituted phenyl group, the substituent(s) in R B being selected from the group consisting of alkyl, alkoxy, hydroxy, halogen, (per)haloalkyl, CN, NO 2, COR, COOR, NR 2, NHCOCF 3, NHCOR, NHCONHR, NHCOOR, OCONHR, CONHR, where R is as defined above; NHCSCH 3, SR, SOR and SO 2 R, where R is as defined above, or, when R B is an optionally substituted phenyl group, then two adjacent substituents may also form with the carbon atoms, to which they are attached, a substituted or unsubstituted aliphatic, heteroaliphatic or heteroaromatic, ring; and R A is a mono- or bicyclic heteroaromatic ring system having 6 to 10 ring members and being optionally substituted at one or more ring carbon atoms, of which ring members 1 to 4 are N atoms and the other ring members are carbon atoms, whereby when R B is an optionally substituted phenyl group, then the ring attached to the NH group contains at least one N atom as a ring member, or when R B is an optionally substituted heteroaromatic ring, then R A may also be an optionally substituted phenyl group, the substituent(s) in R A being selected from the group consisting of alkyl, alkoxy, halogen, (per)haloalkyl, hydroxy, (CH 2) n CHO, where n is an integer 0 - 6; CN, NO 2, COR, COOR and CONHR, where R is as defined above, or when R A is an optionally substituted phenyl group, then two adjacent substituents may also form with the carbon atoms, to which they are attached, a substituted or unsubstituted aliphatic, heteroaliphatic or heteroaromatic ring.