Extending Standalone Applications
Context
Procedure
- Create multi-target application using the steps provided below:
-
Open SAP Web IDE.
-
Navigate to the (Development) tab.
-
Choose
File
New Project from Template
. -
In the wizard that appears, select Cloud Foundry environment and Multi Module category.
-
Proceed with the Multi-Target Application template.
-
- Customize asset central extension template. In the template customization step of the project creation wizard, enter the following details:
- Application ID: enter an ID for the application
- Application Version: enter a version for the application
- Description: enter a logical description about the application
- Use HTML5 Application Repository: Select the checkbox. This creates the UI Deployer module.
- Create HTML5 module using the steps below:
-
Choose the eye icon on the top of SAP Web IDE repository to see all the hidden modules. The app router and UI Deployer modules appear in the Workspace.
-
In the context menu of the application, choose
New
HTML5 Module
.
-
- Add the required business service such as SAP Predictive Asset Insights, asset central foundation, SAP Asset Intelligence Network, or SAP Asset Strategy and Performance service to the xs-app.json file of the app router.
For SAP Predictive Maintenance and Service add the following details: { "csrfProtection": false, "source": "^/pdms/(.*)$", "target": "/ain/$1", "service": "com.sap.dsc.iam.pdms", "endpoint": "pdms-backend", "authenticationType": "xsuaa" }For Asset Central Service addd the following details: { "csrfProtection": false, "source": "^/ac/(.*)$", "target": "/ain/$1", "service": "com.sap.dsc.iam.assetcentral", "endpoint": "asset-central-service", "authenticationType": "xsuaa" }For SAP Asset Intelligence Network service add the following details: { "csrfProtection": false, "source": "^/ain/(.*)$", "target": "/ain/$1", "service": "com.sap.dsc.iam.ain", "endpoint": "ain-service", "authenticationType": "xsuaa" }For SAP Asset Strategy and Performance Management service add the following details: { "csrfProtection": false, "source": "^/aspm/(.*)$", "target": "/ain/$1", "service": "com.sap.dsc.iam.assetcentral", "endpoint": "asset-central-service", "authenticationType": "xsuaa" }The required business service after additon appears as below:
- Bind the business service to the app router using the steps below:
-
Open the mtad.yaml file.
-
Add the required business service details under resources. The business service after addition appears as below:
-
Bind the business service to application router by adding it under requires. The business service after addition appears as below:
-
- Running application on local SAP Fiori Launchpad.
-
Choose the UI module.
-
In the context menu, choose
Run
Run as SAP Fiori Launchpad Sandbox
. The new section appears in the object page.
-