Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3523

Save record with autogenerated primary key from SAPUI5 app to a HANA table

$
0
0

Hello everybody

 

I m just trying to save a record from my SAPUI5 frontend into a HANA table with an xsodata service. But there is a primary key in the HANA table and it just work to save a record when i write also the primary key. But it should be generated automaticlly and not be written manually.

 

 

So this is my SAPUI5 frontend, where i have to write also the "Product_ID" what is the Primary Key and should be generated automaticlly.

 

 

This is my HANA table with the PRODUCT_ID as Primary Key that should be generated automaticlly:

 

 

And this is the controller where i save the record into the HANA table and i also have to write the PRODUCT_ID but i want it to be generated automaticlly.

 

 

And this is my xsodata sevice:

 

 

Does somebody know how i can solve the problem ?

 

Thank you for your help in andvance.


Viewing all articles
Browse latest Browse all 3523

Trending Articles