Skip to Content
0

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

May 22, 2017 at 06:07 PM

24

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;

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."); } });

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

0 Answers