Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Reference to undefined property $.hdb - s9hanaxs

I am using this code to call store procedure but when I execute .xsjs I get this error:

Found the following errors:


ReferenceError: reference to undefined property $.hdb (line 5 position 0 in /s0015145715trial/development/machines/services/MachinesJSON.xsjs)


5.     var conn = $.hdb.getConnection();
6.     var getResult = conn.loadProcedure("_SYS_BIC", "");
7.     var result = getResult("param1","param2");


9.      $.response.contentType = "application/json";
10.     $.response.status  = $.net.http.OK;
11.     $.response.setBody(JSON.stringify(result));
12.     $.response.headers.set('access-control-allow-origin','*');

Former Member

Hello Matej,

according to the mentioned hostname (s9hanaxs) you are on the HANA trial instance of the HCP trial. The SPS level of the trial instance is still SPS08. The new database interface ($.hdb) was introduced with SPS09. Therefore it is not available in your system and cannot be used at the moment.

According to different people from SAP the trial instance SPS level should be updated. But there is no official concrete date. Check also post No Updates for HANA Version in Trial?

Best Regards,


0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question