cancel
Showing results for 
Search instead for 
Did you mean: 

How to save data using odata ??

Former Member
0 Kudos

Hi everyone,

     I joined an MNC three months ago as a fresher under SAP Fiori team. I learnt few things abt UI5 from SAP Explored. Now I wish to create one app however before proceeding I would like to know how to store a data.

     Consider a simple example :

user is askd to enter his name and password for the first time login. that should get stored somewhere and then second time the username and password should match with that of stored values. i want this for atleast 10 users. 

i hv smthing big in my mind, but an explanation to this example will clarify my doubts (i reckon so) !!

i tried json model but now i want to create using odata model. n i dint get any proper tutorial for odata creation n storing values by using it, Plz help

Thanks

Saujanya Sunkarwar

Accepted Solutions (0)

Answers (2)

Answers (2)

EkanshCapgemini
Active Contributor
0 Kudos

Hi Saujanya,

I am curious for your use case. Why do you want to store the username and password somewhere?

Just want to mention that as per SAP guidelines, we should use the SAP provided authentication mechanism instead of developing our own. Once you deploy the app on ABAP Application Server and try to access the app from browser, it will automatically ask you for authentication.

Regards,

Ekansh

Former Member
0 Kudos

no no no.u got me wrong. it was just an example through which i thought i would understand how to save the values entered by user into one stack and then retrieve those values.

when i used JSON model, i stored the values in the controller.now want to store in ECC using odata

sivakumar_mobility
Active Participant
0 Kudos

Hi Saujanya,

In ecc 6.0 and Ehp7.0 ,there is one transaction code is available which is SEGW,

There you can create Odata service without much knowledge .

midhun_vp
Active Contributor
0 Kudos

Hi Saujanya,

If your requirement is to store data send from frontend(web application) to backend you just need to do a Odata POST request. The request body should contain the values.

Regards,Midhun

SAP Technology RIG

santhu_gowdaz
Active Contributor
0 Kudos

for OData you need a gateway and R/3 System,

Please refer this blog, you will get some idea,

Former Member
0 Kudos

thank u for sharing those links however i m still struggling how to save

i m using Web IDE n not eclipse

santhu_gowdaz
Active Contributor
0 Kudos

Web Ide or Eclipse- UI5 code is same only.

can you share some code snippet what you are trying  and any error?