Hi,
I have written an xsjs application to insert data in to Header table. Below is the code. I am using HANA Ondemand trial for this.
var conn = $.db.getConnection();
conn.prepareStatement("SET SCHEMA \"_SYS_BIC\"").execute();
var st = conn.prepareStatement("INSERT INTO \"p123456trial.myhanaxs.PurchaseOrder.data::PurchaseOrder.Header\" values('1','Aswani','','','','','','',1,2,3,'','','','','')");
st.setString(1,'2');
st.setString(2,'XYZ');
st.execute();
conn.commit();
When I tried to execute this I am getting authorization issue. Please help to assing the concern role. Below is the error.
InternalError: dberror(Connection.prepareStatement): 258 - insufficient privilege: Not authorized at ptime/query/checker/query_check.cc:2422 (line 3 position 0 in /p933543trial/myhanaxs/PurchaseOrder/services/insert.xsjs)