Skip to Content
avatar image
Former Member

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','*');

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Oct 23, 2015 at 10:01 AM

    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

    Best Regards,


    Add comment
    10|10000 characters needed characters exceeded