SAP Message RSMDS020 - Pattern '&1' is not permitted in the selection condition

Diagnosis
A selection condition from which a set object is to be generatedcontains pattern '&v1&'. This is not permitted when generating a setobject.
Only patterns that have a '&V2&' at the end of the character string asthe only wildcard character are permitted. Character '&v3&' is notgenerally permitted as a wildcard.

Procedure
If you want to use the characters '&v2&' and '&v3&', not as wildcardcharacters but as normal characters, you have to mask them with theescape character '&v4&'.
If you have used the pattern in an inclusive selection row, you shouldreplace the first wildcard character in the pattern with the character '
V2' and delete all following characters.
If you have used the pattern in an exclusive selection row, you shouldcompletely delete this row.
In both cases, this enhances the whole selection condition.