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

Diagnosis
The value type of formula parameter &V4& defined for selection criterion
V3 is not v (query input field).