SAP Message 8B654 - The entries do not match a valid invoice item; check your entry

Diagnosis
The specified accounting document is not an invoice. Or the chosen itembelongs to an invoice, but cannot be referenced by a Nota Fiscal.

System Response
It is not possible to create a reference.

Procedure
Please enter an invoice document number and an item with account type'K' (Vendors).