Skip to Content
avatar image
Former Member

How to save data using odata ??

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Jul 15, 2015 at 11:26 AM

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

    Please refer this blog, you will get some idea,

    Building a CRUD Application with SAPUI5 and ICF REST/JSON Service - Part 1

    Building a CRUD Application with SAPUI5 Using Odata Model

    Add comment
    10|10000 characters needed characters exceeded

  • Jul 15, 2015 at 12:48 PM

    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

    Add comment
    10|10000 characters needed characters exceeded