SAP HANA Learning Material
SAP HANA Learning Material
The XS Engine acts as a middleware connecting the UI and the HANA database. The most
commonly used commands to communicate with UI are:
$.response To pass the response from your XS application back to the UI.
$.request The UI can pass variables to the XS Engine using the command.
Apart from these we use the plane ODBC commands to connect to the HANA system.
1. Create a connection using $.db.getConnection();
2. Define a prepare statement for your query using prepareStatement.
3. Execute the statement using executeQuery();
4. Close all the connections.
The result is then constructed as a JSON object which is sent to the UI.
URL:
https://help.hana.ondemand.com/help/frameset.htm?a6357286d6a14880bd9af42672e2c75e.html
http://scn.sap.com/community/developer-center/cloud-platform/blog/2014/06/19/debug-your-sap-
hana-xs-application-on-trial
http://saphanatutorial.com/sap-hana-xsjs-examples/
https://help.hana.ondemand.com/help/frameset.htm?3762b229a4074fc59ac6a9ee7404f8c9.html