SAP Message R9148 - Replacement with "Query result" is not possible here

Diagnosis
It is not possible to substitute with "Query result"

System Response
The entry is not permitted

Procedure
The selection, "Query result" is only possible for characteristic valuevariables that you can process using "Replacement path".
Choose another replacement type.