why change A."HEAD_DEPT"
Understandable that that throws an error. The quotes shouldn't be there.
But I can't understand anything of the rest of your post/text. What is changing this SQL?
You don't mention what you do exactly, what components, where you enter the SQL.
So we don't know what changes that SQL until you explain exactly what you do.
Maybe use your own language and put the Google Translator text below that.