Skip to Content
Author's profile photo Tobias Hofmann

Do apps dream of electric sheep? Week 4

Topic of week 4: OData. OData was the topic for week 4. As you can guess, my motivation wasn’t the best. It’s not like OData is bad, but besides Microsoft and SAP there is not much. Just take a look at JEE (like JSR 353 , JSR 311 & JSR 339) to see that you’ll have some trouble when you want to use OData in a JEE server. The OOXML standard equivalent for data exchange of an SAP system.

This week was more theoretical. With week 1 being hands-on, week 2 theory, week 3 hands-on, and week 4 theory, I think I start seeing a pattern here. The unit covered OData basics as well as creating your own OData service, implement and use it in a native Android app. Nice walkthrough and showed that you get from SAP all you need to design (GWPA Eclipse), implement (SEGW, SAP Gateway system) use (app, again GWPA) your app.

The final part included some light weighted hands-on as after designing the OData service it needs to be implemented. That is done using a ABAP system where the transaction SEGW is available. While there is an AWS version available (for those who can), the Gateway SP6 system that you can download from SCN comes with SEGW too.

Importing the model and coding the implementation works fine, if only there would be a GW_HUB entry under Service Maintenance:

/wp-content/uploads/2013/10/week4_1_294097.jpg

Well, that happens when you run a fresh installed Gateway system. Nothing documentation cannot solve:

Let’s use the SCN document:

Step 2: Create a SAP System Alias

/wp-content/uploads/2013/10/week4_2_294122.jpg

/wp-content/uploads/2013/10/week4_3_294123.jpg

Step 3: Create a Gateway Alias

/wp-content/uploads/2013/10/week4_4_294124.jpg

/wp-content/uploads/2013/10/week4_5_294125.jpg

Result:

/wp-content/uploads/2013/10/week4_6_294127.jpg

Testing the service:

/wp-content/uploads/2013/10/week4_7_294128.jpg

Works!

Problem: I have no data in my backend.

Going from there to the native app part is easy. Without having data in my backend, this won’t make sense, but ES1 comes with the sample flight data, and the native app provided uses this system too:

Other blogs in this series from me about the open SAP course: Introduction to Mobile Solution Development

Assigned Tags

      1 Comment
      You must be Logged on to comment or reply to a post.
      Author's profile photo Former Member
      Former Member

      The plural of sheep is sheep. 😉