If you make any changes to an MTA project, you’ll need to build and deploy the project for the changes to take effect.
Step 1: Build MTA project
-
In SAP Web IDE, right click the iot-ds project and click Build to start the build of the project.
-
When the build is completed, a notification will be displayed at the top right corner of the SAP Web IDE.
-
You can also check the status of the build by viewing the logs in the SAP Web IDE console.
Step 2: Deploy MTA project
-
You need to have the following entitlements in your Cloud Foundry sub-account to deploy and run our application. You can find more information on how to configure entitlements in Configure entitlements and Quotas for Subaccounts.
Entitlement |
Unit |
Portal |
1 (or unlimited) |
Application Runtime Memory |
1 Gib (Minimum) |
Destination |
1 |
-
To start a deployment, expand the mta_archives
folder in your project, right click the mtar
file inside the folder and click Deploy to SAP Cloud Platform.
-
Select the appropriate Cloud Foundry API Endpoint, Organization and Space for your deployment. If you cannot find your selections, please check your Cloud Foundry settings in SAP Web IDE preference. For more information, please see step 6 and step 7 of Prepare SAP Web IDE for Cloud Foundry Development.
-
Click Deploy.
-
When the deployment is completed, a notification will be displayed at the top right corner of the SAP Web IDE.
-
You can also check the status of the deployment by viewing the logs in the SAP Web IDE console.
Step 3: Retrieve thing id
We will need to retrieve the thing id for the next step. If you already have the thing id, please proceed to the next step.
-
From SAP IoT launchpad, select the Thing Modeler tile.
-
Select the greenhouse
package and select Things on the left panel.
-
Click the Connectivity Information icon on the top right corner.
-
Copy the thing id. We’ll use it in the next step.
Step 4: Generate test notification
-
From SAP IoT launchpad, select the Actions tile.
-
Select Greenhouse Action.
-
Click Test.
-
Enter the Thing Id in the Test Action dialog. Click Test.
Step 5: Check notification in launchpad site
-
To find the URL of the SAP Fiori launchpad site, go to the SAP Cloud Platform Cockpit, navigate to the space of the sub-account where the MTA project is deployed.
-
Navigate to the Applications screen.
-
Click iot-ds_appRouter
.
-
You should see the route displayed under Application Routes.
-
Append /cp.portal/site
at the end of the application route to create the URL of the SAP Fiori launchpad site.
For example, if:
The application route is:
mytenant-space1-approuter1.cfapps.eu10.hana.ondemand.com
then the SAP Fiori launchpad site URL would be:
https://mytenant-space1-approuter1.cfapps.eu10.hana.ondemand.com/cp.portal/site
-
Launch the SAP Fiori launchpad site in a browser. You should see a SAP Fiori notification alert.
-
Click the alert icon and the SAP Fiori notification panel will be opened.
Step 6: Launch application from SAP Fiori notification
Please complete the tutorial Building the Decision Support UI in the Web IDE before continuing with this step.
In SAP Fiori notification panel, click the High Greenhouse Temperature Alert
notification. If you do not see any notification in Panel, please follow in instructions in step 3 to generate a new notification.
The decision support application will be launched.
Here’s a summary of screen elements:

Step 7: Initiate quick create option
-
Click the option Service Ticket Quick Create
.
-
Enter a description in the field Description.
-
Click Initiate Action
.
-
The quick create action is executed and the action history is saved in execution result.
-
Click Details to see additional information about the executed action.
Step 8: Initiate SAP Fiori navigation option
-
Click the option SAP Fiori Navigation
-
Click Initiate Action
.
-
A new browser tab is opened to the home page of the SAP Fiori launchpad site.
-
Open the previous browser tab, a new action history is saved in execution result.
Step 9: Test with device simulator
-
Start the Node.js simulator for greenhouse. This Node.js simulator was created in step 6 of the tutorial Create a Simple IoT Device Model .
-
If the device simulator starts correctly, your console log should look like this:
-
(Optional) You can check the temperatures that are generated by the simulator in IoT Service Cockpit. To open IoT Service Cockpit, go to the Cloud Foundry space of your sub-account in SAP Cloud Platform Cockpit. In Service Instances, click the Open Dashboard
icon in the Actions column of the InternetOfThings
entry in the table.
Log in to the IoT Service Cockpit. Select your tenant.

Go to the Devices section, select your device.

In the Data Visualization section, select the sensor type, temperature properties and table mode. Click the refresh icon to refresh the data.

-
Launch the SAP Fiori launchpad site.
-
When a generated temperature satisfies our rule, you should see a new notification alert in the launchpad site. Select the notification and launch the decision support application.