Skip to Content
avatar image
Former Member

oDataModel.Create error in Primary key identity columns(HANA Database)

Hi team,

How can we insert data into table using oDataModel.create('/service',odata)

Here "TEST_Table" contains ID column which is identity column

How can we insert data into table, which has primary key as identity column, how can we pass this for sap web IDE

var newTest = {}; newTest.TestID = 26;

newTest.COUNTRY_CODE_ID = 34;

newGMID.CURRENCY_CODE_ID = 344;

var oDataModel = this.getView().getModel(); oDataModel.create('/TEST_Table', newTest

,null,null, { success: function(){ MessageToast.show("GMID successfully inserted into DB"); }, error: function(){ MessageToast.show("Error. GMID not inserted."); } });

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers