SAP Message 0D318 - Statistics key &1 not permissible here!

Diagnosis
There are special rules for assigning statistics keys:
Interest documents 'G'
Dunning charges 'G'
Down payment request 'A'

System Response
Since the statistics key specified does not follow these rules, furtherprocessing is terminated.

Procedure
Adjust the statistics key accordingly.