SAP Message BK823 - System error: Cost center missing in document &, item &

Diagnosis
You entered document &V1& as a reference document. This documentcontains an error in item &V2&, where an assignment is made to a costcenter and the corresponding partner object (sender or receiver) is nota cost center.
Revenues can only be entered in cost centers as statistical values.Both sender and receiver must be cost centers for revenue transfers.

System Response
The document cannot be used as a reference.

Procedure
Display the document containing the error and cancel it if necessary.