Heteroarylcarboxamides of formula (I), wherein A, T, R1, R2 and R3 are as defined in the specification and the claims, and pharmaceutically acceptable salts thereof can be used in methods for the treatment of diseases which can be influenced by inhibition of plasma kallikrein.