cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

loadProcedure is not a function

thiagofcs
Explorer
0 Likes
1,041

Hi,

I'm working with an MTA (multi-target application) within an on-premise HANA XSA with WebIDE. 

In my project I have a db module with a .hdbprocedure artifact and I'm trying to run it from a xsjs module.

In the xsjs module, I created a country.xsjs where I try to run the procedure. The code is like below:

 

var conn = $.hdb.getConnection();
var fnCreateCountry = conn.loadProcedure("TINYWORLD_HDI_TINYDB_1","tinyworld.tinydb::createCountry");
var result = fnCreateCountry();
conn.commit();
conn.close();

 

The problem when I run the country.xsjs I get the error below:

thiagofcs_0-1720039134730.png

It seems that it is not finding the loadProcedure under $.hdb.getConnection...

I`m using HANA 2.0 SPS 07.

I did the exactly tinyworld exercise from the HANA developer guide:
SAP HANA Developer Guide for XS Advanced Model (SAP Web IDE) | SAP Help Portal

Appreciate any help on this.

Best Regards,

Thiago

#WebIDE, #HANA XS Advanced, #XSJS

 

 

 

Accepted Solutions (0)

Answers (1)

Answers (1)

junwu
SAP Champion
SAP Champion
0 Likes

don't waste time on xsjs.

thiagofcs
Explorer
0 Likes
How should I proceed. Use pure Node.js without xsjs?
thiagofcs
Explorer
0 Likes
All uses the xsjs. Even most recent tutorials from SAP
junwu
SAP Champion
SAP Champion
0 Likes
ok, have fun.