Deploying an App

Objective

After completing this lesson, you will be able to manually deploy your SAP Fiori elements app to your account on SAP BTP

Deploy the Manage Travels App to SAP BTP

In this exercise, you will manually deploy the Manage Travels app to your trial account on SAP BTP, ABAP environment. You will do the following in SAP Business Application Studio:

  • Login to the corresponding Cloud Foundry endpoint
  • Add a deploy configuration
  • Create an MTA archive from your project
  • Deploy your app

Prerequisites

You have completed the exercise Add a Field Building Block to Your Custom Section in the unit Examining the Flexible Programming Model (lesson: Using Building Blocks).

Watch the Simulation and Perform the Steps

This exercise contains a simulation that takes you through detailed steps. You can find all the steps after the simulation. You can follow the simulation and perform the steps using your own trial account.

Steps

  1. Open SAP Business Application Studio.

  2. Select the first icon from the left-hand side menu.

  3. Select View from the list.

  4. Choose Command Palette from the subsequent menu.

  5. Log in to the corresponding Cloud Foundry endpoint

    1. Search for CF:LOGIN TO CLOUD FOUNDRY in the command palette.

    2. Select CF:Login to Cloud Foundry from the list.

    3. Choose Credentials from Select authentication method option on the Cloud Foundry Sign In and Targets view.

    4. Enter your username and password in the respective fields.

    5. Select Sign in from the bottom of the view.

    6. Select the dropdown for the Select Cloud Foundry Organization field once you sign in.

    7. Select the trial account that you have created.

    8. Select dev for the Select Cloud Foundry Space field.

    9. Select Apply from the bottom of the view. You have logged in to the corresponding Cloud Foundry endpoint.

  6. Add a deployment configuration.

    1. Right-click travels from the EXPLORER.

    2. Select Open Application Info from the subsequent menu.

    3. Select Add Deploy Config from the Application Info - travels.

    4. Select the dropdown for the Please choose the target field in the Deploy Configuration view.

    5. Choose Cloud Foundry from the list.

    6. Select the dropdown for the Destination name field.

    7. Select abap-cloud-default link for your trial account.

    8. Select Finish from the bottom of the view.

    9. A popup message confirms that the files containing deployment configuration have been generated. You can see them within the travels project.

  7. Create an MTA archive from your project.

    1. Right-click mta.yaml from within the webapp on your EXPLORER.

    2. Choose Build MTA Project from the subsequent menu. You can see that the mta_archives are built within the travels project.

  8. Deploy your app.

    1. Select Deploy from the Application Info - travels view.

    2. The app is deployed. You can see the progress at the bottom of the view.

Result

You successfully deployed your app to your trial account on SAP BTP, ABAP environment.

View the Deployed App in Your Trial Account on SAP BTP

In this exercise, you will launch the deployed app from your trial account on SAP BTP.

Prerequisites

You have completed the exercise Deploy the Manage Travels App to SAP BTP in the same unit (lesson: Deploying an App).

Watch the Simulation and Perform the Steps

This exercise contains a simulation that takes you through detailed steps. You can find all the steps after the simulation. You can follow the simulation and perform the steps using your own trial account.

Steps

  1. Open the SAP BTP Cockpit using the https://account.hanatrial.ondemand.com/ link.

  2. Select Go To Your Trial Account.

  3. Select trial from the Subaccounts tab of your Global Account view.

  4. Select Subscribe to SAP Build Work Zone, standard edition from Subaccounts.

  5. Select Create from the subsequent view.

  6. Choose the dropdown for the Plans field from the New Instance or Subscription dialog.

  7. Select the standard option from the dropdown.

  8. Select Create from the bottom of the New Instance or Subscription dialog.

  9. Select View Subscription from the Creation in Progress dialog. You have now subscribed to the SAP Build Work Zone.

  10. Select HTML5 Applications from the left-hand side menu of your trial account.

  11. Select travels from the Subaccount: trial - HTML5 Applications view. The Manage Travels app opens in your browser.

Result

You successfully launched the previously deployed Manage Travels app in your browser from your trial account on SAP BTP .

Log in to track your progress & complete quizzes