Skip to Content

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

May 22, 2017 at 06:07 PM


avatar image
Former Member

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;


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

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers