
SAP announced the launch of a new cloud business network for assets at the Hannover Messe 2016 tech conference. SAP Asset Intelligence Network will help manufactures, service providers, operators and other business partners to collaborate using a shared platform which contains the single source of truth about shared assets.
SAP is constantly enhancing the network with additional functionality every quarter. There will however, always be the need for unique custom usages of the asset data that is contained in the network. This blog explains how customers, partners and preferred solution providers can create custom application using the networks public APIs.
Building customized Fiori apps allows us to meet the "instant needs of the business". In the past, a custom Fiori app could be built in 2 -4 weeks. Today, the app deployment process with HCP enablement tools such as mobile services (HCPMS) and WEBIDE makes the app development significantly faster. In our recent experience, it took us just a couple of hours to build Fiori apps with HCP.
I envision customers will want to build custom Apps consuming the network data in the following 3 situations:
AIN has been designed to be used as a ‘Backbone for Your Internet of Things’. I expect Operators, Partners, OEMs, Dealer Networks, Content & Service Providers and Engineering Companies to start building apps on HCP / other platforms that consumes these AIN services.
The following 12 steps needs to be performed in sequence to successfully create a custom app that consumes the public APIs provided by the SAP Asset Intelligence Network.
Open your consumer account cockpit and click on the “Services” Tab.
Select Web IDE from the list of services. Enable it if not already enabled
Notes:
Click on the “Open SAP Web IDE” link. This should take you to the new Web IDE Screen for your account.
Under the “Create a Project” Section, select “New Project From Template” -> UI5 Application.
Press Next and fill in all the required fields and click on the Finish Button to create a new project. The new project will be available in your workspace.
Build the UI5 application as required using the View-Controller given or add new ones, if required.
For any service calls that needs to be made, it has to be done through a destination which can be created using the following steps:
Once a destination has been created, it needs to be referred to the app created earlier. Open the neo-app.json in your application folder in the workspace and add the destination you just created as an object under the “routes” array.
Example of a destination:
{
"path": "/ain/",
"target": {
"type": "destination",
"name": "name of the destination",
"entryPath": "/ain/"
},
"description": "Service end points for all the apps which will be used by the end user"
}
Services can then be called relative to the path specified here.
url: "/ain/services/api/v1/announcements",
success: function(data) {}
});
To test and run your application, you can select your application (or the html file within it) and run it from the “Run” menu or the Run icon on the icon bar.
Deploying the Application on HCP
Create a Tile on Launchpad
this._oComponent = sap.ui.component(sap.ui.core.Component.getOwnerIdFor(this.getView()));
this._oComponent.getComponentData().startupParameters.Param
SAP will continue to provide additional APIs and the more features are introduced.
As on Q2-2016, the following objects within the network can be accessed using APIs:
Each of the objects can be accessed, edited or deleted using these APIs, provided that the pre-requisites are met.
The below tutorial will guide you in using the APIs :
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
16 | |
15 | |
13 | |
9 | |
9 | |
9 | |
8 | |
7 | |
7 | |
6 |