SAP Message R9091 - Variable &1 cannot be deleted (still used in queries)

Diagnosis
The variable is still used in queries.

Procedure
If you want to delete the variable, you must first remove the variablesfrom the queries in which they are used.