Quantcast
Channel: SAP Gateway
Viewing all articles
Browse latest Browse all 253

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

$
0
0

  In the first part Steps to create custom Gateway service and Android application through Eclipse with GWPA 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.

1.jpg

     In OData Development -> Starter Application Project

2.jpg

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

3.jpg

    Choose List/Details Application

4.jpg

 

 

 

Get the Service link from metadata:

 

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

5.jpg

 

6.jpg

 

Add Activity for Header details:

7.jpg

    Add Header Fields

8.jpg

Add '+' to add new activity for Item details:

9.jpg

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

10.jpg

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

11.jpg

 

Simulator:

Enter Gateway system details:

12.jpg

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

13.jpg

 

 

 

Scroll to get next PO’s

Select a PO to navigate to Items.

14.jpg

 

 

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

15.jpg

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

 


Viewing all articles
Browse latest Browse all 253

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>