When the BEx Query Designer crashes while you are creating or modify a query, the user lock this query in the database. You can remove the lock with the Transaction sm12 and erase the entry.
- Open TA sm12
- Click list
- Select the required entry
- Click delete
These posts might also be interesting: