SAP Message AH335 - Document &1 with main transaction &2 cannot be reversed

Diagnosis
The document has a main transaction that doesnot identify it as an automatically generated billing documentor manual document. In this case, billing reversal is not possible.

System Response

Procedure
Please check your input.