Create Entity Sets:
Mark entity set's as Addressable.
Create Association to navigate from Header to Items data:
HEADER -> Map to Data source (GetEntity - Read)
HEADER -> Map to Data source (GetEntitySet - Query)
ITEMS -> Map to Data source (GetEntity - Read)
As we are using single RFC to get both Header and Item details, we are using flag to distinguish Header and Item.
ITEMS -> Map to Data source (GetEntitySet - Query)
Save and Activate the project.
Maintain service - Goto Transaction code: /IWFND/MAINT_SERVICE
Add service:
Select service and add system aliases.
3. Test our service in 'Service Explorer':
Here we will get first 50 PO’s, as we are using UPTO 50 rows in our FM and we are not specifying any condition in URI.
You can see sample data from the attached 'PO Header Data' file.
Use Filter to get PO details: (Header & Items)
POHeader/?$filter=(Ebeln eq '3000000191')&$expand=PONavigation
You can see sample data from the attached 'PO Header & Items' file.
In the second part Steps to create custom Gateway service and Android application through Eclipse Part 2, we will see how to Create Application in Eclipse and testing on Simulator.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Subject | Kudos |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
User | Count |
---|---|
6 | |
5 | |
5 | |
5 | |
5 | |
4 | |
4 | |
4 | |
3 | |
3 |