SAP Message /BCV/QRM816 - Query &1: Invalid value type for parameter of formula &2

Diagnosis
The value type of formula parameter &V4& defined for query result fieldV3 is neither r (query result field) nor v (query inputfield).