Publishing the Extension App

Objective

After completing this lesson, you will be able to deploy the Extension App.

Publish the Extension App

Once the project reaches a milestone that indicates it’s worth viewing the app in its intended environment, it’s time to publish the project. In this context, publishing does not mean that the app will automatically be made publicly available; rather, it allows you to view the app outside of SAP Build Apps in Preview mode. Even if the app hasn’t reached its final development stage, publishing can be beneficial for testing purposes.

Additionally, publishing the app is a prerequisite for embedding it into SAP Sales and Service Cloud Version 2. Due to technical and security reasons, it is not possible to embed the app in Preview mode. The publishing process takes place in the Build Service, which can be accessed by clicking the Publish button located in the upper right corner under Publish Your App.

Screen capture of SAP build Apps showing the Publish button and menu options Create Release Version and Build and Deploy highlighted.

The publishing process in SAP Build Apps consists of two steps which are explained in the following sections:

  1. Building the app.
  2. Deploying the app.

The publishing menu also allows you to Create a Release Version. While this is an optional step for the publishing process, it creates a new entry in the version history and can be helpful if you need to look into specific details of this version later.

Build the App

The build process prepares the app for deployment on a particular target platform. It usually consists of steps like transforming, optimizing, and bundling all required source files into a single file.

In SAP Build Apps, you need to create a Configuration that gathers all required details for the build process, such as a name, target platform, and target platform-specific parameters.

Screen capture of the Build Service with No Configuration hint and Create Configuration button highlighted.

To create a new configuration and start the build process, do the following:

  1. Select the Create Configuration (as highlighted in the previous screen capture) and choose your desired target platform. In this course, SAP Build Work Zone is used, which can be seen as an alternative name for web deployment. This will lead to an MTAR-file, which can be deployed to both SAP Build Work Zone and the Cloud Foundry run-time of SAP BTP. Choose Web for the configuration name (for this course example).Screen capture of the Build Service with Target Platform selection and SAP Build Work Zone highlighted.
  2. After creating the new configuration, start the build process by selecting it and entering the details of this build. Begin with the version number. You can either select an existing release version or enter a version number directly in the dialog. Then, choose a run-time version, which is by default set to Latest and can usually be kept as is. It's common for small IT tests to create builds without a release version. However, it’s recommended to create release versions for official builds, which shall be used for business user tests or released to production.Screen capture of the Build Service with Web configuration highlighted and the build details dialog visible and highlighted.
  3. The build process takes a while and runs in the background. The progress is visible in the Build Service overview. You can select the row to see more details of the build process.Screen capture of the Build Service screen. Build in progress highlighted.
  4. Once the build process is finished, the Deploy button will become visible on the details screen. From there, you can start the deployment process or download the build as an MTAR-file.Screen capture of the Build details screen with the Download and Deploy button highlighted.

Deploy the App

The deployment process covers all steps that are required to make the app available in the target environment. The process differs depending on the target platform. In this course, the sample app is deployed to the web platform SAP Build Work Zone. You can find more information in the SAP Help Portal.

During the deployment, you'll need the API Endpoint of your SAP BTP sub-account. You can find it on the Overview screen of the BTP Cockpit, under Cloud Foundry Environment.

Screen capture showing the Overview section of the SAP BTP Cockpit with the sub-account's API Endpoint highlighted.

Follow these steps to deploy the app to SAP Build Work Zone:

  1. On the Build Details screen of your build, choose Deploy. A dialog appears that asks you for an API Endpoint, the organization, and the space where the app will be deployed. After choosing the endpoint, you’ll need to log in to BTP.Screen capture of the Build details screen in the back with the Deploy button highlighted and the Deploy to Work Zone dialog in the foreground also highlighted.
  2. Your log-in at SAP BTP is necessary to grant SAP Build Apps permissions to deploy the app directly. The following dialog will be shown. Screen capture of the Authorization screen.
  3. Once you’ve given SAP Build Apps permission to access SAP BTP, you can choose the Organization, which is the sub-account where you’ll deploy the app and desired space. Choose Continue to begin the deployment.Screen capture of the Deployment Details screen with all the fields completed.
  4. The deployment process takes some time, and you can track the process on the progress bar. You can view the detailed commands running in the background by choosing the Details button. Keep this dialog open until the deployment is finished as it will give you further details.Screen capture with the Deployment in Progress.
  5. After the deployment has finished, the dialog will display the URL where the app can be accessed. If you’ve connected SAP Build Apps with SAP Sales and Service Cloud Version 2, you will also see a button Publish Mashup. Using this feature, you can create the mashup in SAP Sales and Service Cloud Version 2 with the right URL. However, you’ll still need to adapt the parameters and take care of displaying it on the desired screen in the cloud solution. You’ll learn about this in the next unit.Screen capture of the Deployment finished dialog box that highlights the app URL and the Publish Mashup button.

Finding Deployed Apps in the SAP BTP Cockpit

You can find deployed apps in your SAP BTP sub-account in the HTML5 Applications section. This can be useful if you’ve closed the deployment dialog in SAP Build Apps without noting your app’s access URL.

Screen capture of the BTP cockpit with the HTML5 Applications section and a deployed app highlighted.

Lesson Summary:

This lesson demonstrated and discussed how to deploy the extension app. You have now completed units 1 and 2 of this course. In the next and final unit, you'll learn how to embed and test the extension app created in this course.

Log in to track your progress & complete quizzes