Message SAP WS159 - You cannot cancel. Accounting document contains settled items

Diagnosis
The accounting document for document &V1& contains cleared amounts.

System Response
The system does not allow document &V1& to be cancelled, as this wouldresult in errors during the creation of the accounting document of thereversal document.

Procedure
For document &V1&, enter a document with a contrasting billing categoryor change the reversal billing type of billing type &V2& so that aninvoice/credit memo/valued credit memo is created for document &V1&(tmfk-lftyp = '01' or tmfk-lftyp = '03').

364725 Cancelling settlements of arrangements