cancel
Showing results for 
Search instead for 
Did you mean: 

Reference to undefined property $.hdb - s9hanaxs

Former Member
0 Kudos

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)

Code:

5.     var conn = $.hdb.getConnection();
6.     var getResult = conn.loadProcedure("_SYS_BIC", "s0015145715trial.development.machines.data.storeProcedure::machines");
7.     var result = getResult("param1","param2");

8

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

Accepted Solutions (1)

Accepted Solutions (1)

pfefferf
Active Contributor
0 Kudos

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,

Florian

Answers (0)