Alright, this is a basic mistake you're making here.
Just like many other DBMS, e.g. Oracle, SAP HANA does handle identifiers (names for all the things you have in your database) in a specific way.
- when you enclose them in double-quotation marks ("<identifier goes here>") it takes it literally. Special characters, upper- lowercase differences - it's all handled as-is.
- when you leave out the quotation marks, SAP HANA will convert your input to UPPERCASE and apply restrictions on special characters, like the "dash".
So, whenever you use BW-like object naming (with dashes) you have to use the quotation marks.
For OpenSQL in ABAP this behavior is not present, which is why you don't get any issues there. The database interface layer handles the database object name conversion for you in this case.
- Lars