Skip to Content

Who am I?

My name is sivakumar and I am from Danam Infotech.

So the purpose of this blog is


Everone should get knowledge how to create Odataservice for sapui5 application.


If we practice this one , we can get easy understand about FIORI service.



In ECC6.0 and EHP 7.0 version The following T-code is available.We need to activate in SPRO./wp-content/uploads/2015/07/segw_740376.png

In system ->status , we can find below information

/wp-content/uploads/2015/07/segw_740376.png

Create New project:

To start building our project we need to create a project in Netweaver gateway service builder SEGW.

Step:

Open the gateway service builder by typing transaction code SEGW in the gateway system

  Use the create button to create new project


/wp-content/uploads/2015/07/segw1_740384.png


/wp-content/uploads/2015/07/segw2_740385.png

Click on Local object. Local object will be created.

/wp-content/uploads/2015/07/segw3_740387.png

After creating a project we should define the entity. There are various ways to create an entity we choose to base it on DDIC structure (table). Right click on Data model and pick DDIC structure

DataModel->Import->DDIC

/wp-content/uploads/2015/07/segw4_740389.png

Type name of ABAP structure (eg: EBAN) and PRESS ‘enter’

Result: the wizard will automatically fill in the object name with the value Eban.

/wp-content/uploads/2015/07/segw5_740396.png

Note: Go to Usage and choose ‘Ignore’ for all unused fields, since it likely to return an error value when Odata services finds null values in any of the fields. (In our example, BADAT and Mandt  etc.fields have been Ignored).




/wp-content/uploads/2015/07/segw6_740398.png

Next is the creation of entity sets (technically called as Collection) for the entity type created.

Expand the node data model and double click entity sets,/wp-content/uploads/2015/07/segw7_740405.png

  1. Right Click on Entity set à create button to add a new line to the table./wp-content/uploads/2015/07/segw8_740406.png

/wp-content/uploads/2015/07/segw_740376.png

Click on Save..

/wp-content/uploads/2015/07/segw1_740384.png

Generate Run time object.

This step will generate run time objects in order to create Model provider class and Data Provider class/wp-content/uploads/2015/07/segw2_740385.png

/wp-content/uploads/2015/07/segw3_740387.png


Please note that technical service name is equal to External service name.


Next part is i will update soon.


With Regards,

siva.

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