N-(Tetrazol-5-yl)- and N-(triazol-5-yl)arylcarboxamides and use thereof as herbicides N-(Tetrazol-5-yl)- and N-(triazol-5-yl)arylcarboxamides of the general formula (I) are described as herbicides. In this formula (I), X, Y, Z and R represent radicals such as hydrogen, organic radicals such as alkyl, and other radicals such as halogen. A and B represent N and CY.