Executive Summary:
The purpose of this blog is to demonstrate how the insurance solution portfolio can be sustained with Odata service technology.

Taking advantage of odata services and UI5 we can improve end user experience and productivity for our insurance customers.
Moving towards mobile and internet we’ll have a chance to help our customers deal with the main disruptors in the industry today; as an example the earthquake insurance business has a modus operandi that comes to sustain the need of mobility in insurance.


Contact:

Active Global Support:
Florin Niculescu (florin.niculescu@sap.com) – Insurance Safeguarding Portfolio


OData Services Example Walkthrough:

Enter SEGW transaction, and create a new Gateway Service:

Picture1.png

In the DataModel Create the Entity Types:
Picture2.png

And set the key fields:

Picture3.png

Define entity sets based on created entity types:

Picture4.png

Under Service Implementation define service entity set for the entity set model previously defined:

Picture5.png

Also implement and map some of the methods that you might use in your service here: in this case I define the mapping for the flightset (between return of method and flightset entity) and implement the getentityset method:

Picture6.png

Based on the operation you need, for your service, you can implement them:

Picture7.png

Here I implemented the GetEntitySet to fill in the data:

Picture8.png

Generate the runtime artifacts and go to Service maintenance:

Picture9.png

Register your service:

Picture10.png

And test it (Click maintain):

Click on gateway client button to test the service:

Picture11.png

And then execute:

Picture12.png

Change the command line to get all details of returned records.

Click on EntitySets select FlightSet and Execute:

Picture13.png

Service is working ok, now let`s put it into SAP UI5:

In order to understand it`s components, you can look at the $metadata param:

http://dewdfglp00795.wdf.sap.corp:8000/sap/opu/odata/sap/ZSFLIGHTGW_SRV/$metadata

Picture14.png

Data Collections:

Picture15.png

Reference the service link in your sap ui5 javascript program:

Picture16.png

Please note that this is an URI.

Next step, complete with corresponding sap ui5 javascript code:

Picture17.png

Result looks like:

Picture18.png

And holds similar data as the database does:

Picture19.png

To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply