SAP Message VF522 - You can only cancel billing type &1 with a billing type &2

Diagnosis
Incorrect Customizing of cancellation billing type. Internal clearingwith the sales document type (VBTYP) '5' can only be cancelled usingbilling type with VBTYP 6.

Procedure
In Customizing, change the cancellation billing type of the salesdocument type.