Q: Can I connect directly to the SAP HANA database via ODBC when SAP HANA RUNTIME edition was used?
A: Official answer from SAP: No, you can’t.
Any direct connectors to the SAP HANA DB are prohibited if RUNTIME license was used. Connections are allowed only through the application layer, whether it is the web services of your application or something else.
See more at SAP SUR 2022: