SAP Message 8H027 - Invalid posting key or spec.GL indicator or document was reversed

Diagnosis
To issue withholding tax certificate, the following characteristics arerequired :-
- Not a reversed document
- For invoice, the posting key must not be used for payment.
- For payment, the posting key must be flaged for payment.
- For down payment or special G/L, the correct special G/L indicatormust be used.

System Response
No certificate issued or no numbering.

Procedure
Check the customizing on posting key and create new document.