Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 
0 Kudos

In Part1 Custom Gateway service with CRUD Operations and Android application through Eclipse Part 1 & Part2 Custom Gateway service with CRUD Operations and Android application through Eclipse Part 2 I discussed :

1. RFC function module with PO Number,Creation Date & PO Release indicator as input parameters.

2. Create service in Gateway system with all the CRUD operations.(Create Read Update Delete)

3. Test our service in 'Service Explorer' (Various filter options along with CRUD operations).

In Part3 I will be discussing how to :

4. Create Application in Eclipse and test it on Simulator.

4. Create Application in Eclipse and test it on Simulator.

     Calling our service in eclipse is simple but, we have three input fields(PO number, Date & Release Indicator) for which we need to create a new screen and      write some java code. Actually i do not have knowledge on java/android programming, with help of my friend I copied screens and try to call this screen.

     Below are the steps i will follow to complete our app.

     a. Import service to Eclipse.

     b. Copied login screen, changed default fields and included our required fields.

     c. Add new activity in AndroidManifest.xml.

     d. Add code to SelectionActivity.java

     As I already specified I do not have idea on Android programming, for running my scenario I did above changes (May be android developer will be more      familiar with the steps).

     a. Import service to Eclipse.

Import service and complete the application.

     b. Copied login screen, changed default fields and included our required fields.

        

      Include required label and text fields:

     c. Add new activity in AndroidManifest.xml.

      d. Add code to SelectionActivity.java

          Default screens will be: Login screen -> List screen -> Details screen

          Now i included selection screen to enter PO Number/Date/Release Indicator

          After changes, screen sequence will be

               Login screen -> Selection screen -> List screen -> Details screen

          So, in login screen we need to call Selection screen and in selection screen we will call list screen.

Build query

Save and Test the application in emulator.

We will get PO header details.

For each PO number we will get Item details in next screen.

Screens and backend logic can be handled better by an android developer. Even we can include input fields to enter range values (like select options) , handle error messages and all CRUD operations in application.

We can use this .APK file to test it on Android device. Right click on your project in Eclipse and goto Properties. Under Resource -> Location, you can get above file(.APK) location.

2 Comments
Labels in this area