Skip to Content
Author's profile photo Sheetal Reddy Proddutur

Steps to create custom Gateway service and Android application through Eclipse Part 2

  In the first part Steps to create custom Gateway service and Android application through Eclipse Part 1 , i discussed first three topics:

1. Create a custom RFC Function Module to get PO header and item details. ( Developed in Backend system)

2. Create service in gateway system using above RFC Function Module.

3. Test our service in ‘Service Explorer’.

In this blog i will continue and discuss how to ‘Create Application in Eclipse and testing on Simulator’ 

4. Create Application in Eclipse and testing on Simulator : 

    Create New Project in Eclipse.

/wp-content/uploads/2013/11/1_313146.jpg

     In OData Development -> Starter Application Project

/wp-content/uploads/2013/11/2_313123.jpg

Here I am using Android 4.0 as my phone has Android 4.1.1 version  .

/wp-content/uploads/2013/11/3_313133.jpg

    Choose List/Details Application

/wp-content/uploads/2013/11/4_313134.jpg

Get the Service link from metadata:

http://<hostname>/sap/opu/odata/sap/ZPSR_PO_DATA_SRV_01/

/wp-content/uploads/2013/11/5_313135.jpg

/wp-content/uploads/2013/11/6_313136.jpg

Add Activity for Header details:

/wp-content/uploads/2013/11/7_313137.jpg

    Add Header Fields

/wp-content/uploads/2013/11/8_313138.jpg

Add ‘+’ to add new activity for Item details:

/wp-content/uploads/2013/11/9_313139.jpg

Add Item fields and use Finish button to complete the Application development.

/wp-content/uploads/2013/11/10_313140.jpg

    Select your Project and Execute. Run As -> Android Application

/wp-content/uploads/2013/11/11_313141.jpg

Simulator:

Enter Gateway system details:

/wp-content/uploads/2013/11/12_313142.jpg

As there is no input criteria, we will get first 50 PO’s based on our RFC function module.

/wp-content/uploads/2013/11/13_313143.jpg

Scroll to get next PO’s

Select a PO to navigate to Items.

/wp-content/uploads/2013/11/14_313144.jpg

We can use this .APK file to test it on Android device.

/wp-content/uploads/2013/11/15_313145.jpg

Right click on your project in Eclipse and goto Properties. Under Resource -> Location, you can get above file(.APK) location.

Assigned Tags

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

      Hi Sheetal ,

      Nice blog with steps ...

      Just a question , in my Eclipse kepler ... I dont see Odata Development project ...

      Do I need to install new piece of item for Odata Development Project to be appeared..

      Appreciate your help and advise..

      Kind regards

      Rama

      Author's profile photo Sheetal Reddy Proddutur
      Sheetal Reddy Proddutur
      Blog Post Author
      Author's profile photo Former Member
      Former Member

      Nice Blog, very well explained. I am trying to create an simple app for android with Eclipse Mars, can you please help me how to create it? I don't have SMP server in my landscape.

      Author's profile photo honey singh
      honey singh

      Nice Information! 

      Author's profile photo Justin Jack
      Justin Jack

      Nice Blog, very well explained.

      Author's profile photo Aakash Dubey
      Aakash Dubey

      Really very nice post I am really loving this post thank you for your Information

      Author's profile photo margarita margaritaa
      margarita margaritaa

      wow superb. i really appreciating your good efforts.

      Puffin Browser Pro Apk Download Latest Version 2020

      You have seen lots of browsers available on the internet like Google Chrome, Opera, etc. These browsers are designed to provide you easy access to the web pages. Puffin Pro Apk is another amazing browsing app which has lots of better features and options. Puffin pro is an amazing browser and much faster than other similar browsers. Puffin speeds up internet browsing by adding workload to the cloud servers instead of a resource-limited device. Ultimately, your webpages start running super-fast and you can browse lots of webpages in a short time. https://modsroid.com/puffin-browser-pro-apk-download-latest-version-2020