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", "s0015145715trial.development.machines.data.storeProcedure::machines");
7. var result = getResult("param1","param2");
9. $.response.contentType = "application/json";
10. $.response.status = $.net.http.OK;
Florian Pfeffer replied
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?