Skip to Content

Create an SAP Fiori App and Deploy it to SAP BTP, ABAP Environment

Create an SAP Fiori app for a RAP business object from SAP BTP, ABAP Environment in SAP Business Application Studio and deploy it to SAP BTP, ABAP Environment.
You will learn
  • How to assign role collections
  • How to create dev spaces
  • How to set up organization and space
  • How to create list report object pages
  • How to run SAP Fiori applications
  • How to deploy applications
  • How to check BSP library in Eclipse
  • How to create IAM apps and business catalogs
mervey45Merve TemelOctober 31, 2023
Created by
mervey45
October 31, 2023
Contributors
mervey45

Prerequisites

  • Trial: You need an SAP BTP, ABAP environment trial user or a license.
  • Licensed system:
    • The business catalog SAP_A4C_BC_DEV_UID_PC (Development - UI Deployment) needs to be assigned to a business role of the developer user. For an existing ABAP systems, the business catalog needs to be added manually to the existing developer business role.
    • You need to be a member at the used global account​
    • You need to be an organization manager at the used Cloud Foundry subaccount
    • You need to be a security administrator at the used Cloud Foundry Subaccount​
  • You have created the Travel App Mission. Mandatory is only the first tutorial of this tutorial mission Create Database Table and Generate UI Service.
  • Step 1
    1. Login to SAP BTP Trial cockpit and click Enter Your Trial Account.

      assign role collection
    2. Select your subaccount trial.

      assign role collection
    3. Now you are in the trial overview page. Click Users and >.

      assign role collection
    4. Select the menu and click Assign Role Collection.

      assign role collection

      Hint: If you are using a licensed system, make sure you have the trust administrator role assigned to your user.

    5. Select Business_Application_Studio_Developer and click Assign Role Collection.

      assign role collection
    6. Check your result. Now your user should have the Business_Application_Studio_Developer role collection assigned.

      assign role collection
  • Step 2
    1. Select trial.

      dev
    2. Select Service Marketplace and search for SAP Business Application Studio. Select actions and click Go to Application.

      dev
    3. Check the privacy statement and click OK.

      dev
    4. Now the SAP Business Application Studio has started. Click Create Dev Space.

      dev
    5. Create a new dev space:

      • Name: Fiori
      • Type: SAP Fiori

      Click Create Dev Space.

      dev
    6. When your status is Running, select your dev space Fiori.

      dev
  • Step 3
    1. Now you are in your Fiori dev space in SAP Business Application Studio.
      Select the menu on the left side and click Open Folder to set your workspace.

      organization
    2. Select /home/user/projects/ and click OK.

      organization
  • Step 4
    1. Switch to SAP BTP Trial and select your trial subaccount.

      organization
    2. Copy your Cloud Foundry Environment API endpoint for later use.

      organization
    3. Switch to SAP Business Application Studio, select the menu on the left side and click View > Command Palette.

      organization
    4. Search for CF: Login to Cloud Foundry and select it.

      organization
    5. Paste your Cloud Foundry API endpoint, enter your credentials and click Sign in.

      organization
    6. Now you can see, that you are logged in. Set now your cloud foundry target:

      • Cloud Foundry Organization: <your_global_account>
      • Cloud Foundry Space: dev
      organization

      Click Apply.

  • Step 5
    1. Select the menu on the left side and click View > Command Palette.

      object
    2. Search for Fiori: Open Application Generator and select it.

      object
    3. Select List Report Page and click Next >.

      object
    4. Configure data source, system and service:

      • Data source: Connect to a System
      • System: <your_abap_trial_system>
      • Service: ZRAP100_UI_TRAVEL_O4_### (0001) - OData V4
      object
      Click Next >.
    5. Select your main entity Travel, check Yes for adding automatically table columns and click Next >.

      object
    6. Configure project attributes:

      • Name: ZRAP100_###
      • Title: Travel App ###
      • Description: A Fiori application.
      • Add deployment configuration: Yes
      • Add FLP configuration: Yes
      • Configure advanced options: No

      Click Next >.

      object
      Hint: Your application name must begin with a z letter and must be in lowercase letters.
    7. Configure deployment:

      • Target: ABAP
      • Destination: <your_abap_trial_system>
      • SAP UI5 ABAP Repository: ZRAP100_###
      • Package: ZRAP100_###
      • Transport Request: <your_transport_request>
      app

      Click Next >.

      Hint: If you want to copy your transport request, please do following: Open Eclipse, search your package ZRAP100_### and open it. Open your transport organizer to see your transport request. The transport request of the superior folder needs to be chosen. Copy your transport request for later use. You can find your transport request underneath the Modifiable folder.

      app

    8. Configure Fiori Launchpad:

      • Semantic Object: ZRAP100_###
      • Action: display
      • Title: Travel App ###
      app

      Click Finish.

    9. Now all files have been generated.

  • Step 6
    1. On the Application Information overview page select Preview Application.

      run

      >**Hint.** You can open the Application Information through the menu > View > Command Palette > search and select Application Information.

    2. Select the first entry.

      run
    3. You browser opens. Click Go and check your result.

      run
  • Step 7
    1. On the Application Information overview page select Deploy Application.

      deploy
    2. When prompted, check deployment configuration and press y.

      deploy

    3. When the deployment is successful, you will get these two information back as a result: UIAD details and deployment successful.

      deploy
  • Step 8
    1. Open Eclipse and check the BSP library and SAP Fiori Launchpad app descriptor item folder in your package ZRAP100_###. If you are not able to see BSP applications and SAP Fiori Launchpad app description items, refresh your package ZRAP100_### by pressing F5.
      library
  • Step 9
    1. In Eclipse right-click your package ZRAP100_### and select New > Other Repository Object.

      iam
    2. Search for IAM App, select it and click Next >.

      iam
    3. Create a new IAM App:

      • Name: ZTRAVEL_IAM_###
      • Description: IAM App for travel app
      iam
      Click Next >.
    4. Click Finish.

      iam
    5. Select Services and add a new one.

      iam
    6. Select following:

      • Service Type: OData V4
      • Service Name: ZRAP100_UI_TRAVEL_O4_###
      iam

      Hint: With CTRL + Space you can search for your Service.

      Click OK.

      Save and activate your IAM app.

      iam
  • Step 10
    1. Right-click your package ZRAP100_### and select New > Other Repository Object.

      catalog
    2. Search for Business Catalog, select it and click Next >.

      catalog
    3. Create a new business catalog:

      • Name: ZTRAVEL_BC_###
      • Description: Business catalog for travel app
      catalog
      Click Next >.
    4. Click Finish.

      catalog
    5. Select Apps and add a new one.

      catalog
    6. Create a new business catalog:

      • IAM App: ZTRAVEL_IAM_###_EXT
      • Name: ZTRAVEL_BC_###_0001
      • Description: Business Catalog to IAM App assignment
      catalog
      Click Next >.
    7. Click Finish.

      catalog
    8. Click Publish Locally to publish your business catalog.

      catalog
  • Step 11
    1. On the Application Information overview page select Deploy Application.

      deploy
    2. When prompted, check deployment configuration and press y.

      deploy
    3. Press CTRL and click the following link to open the URL in a browser.

      deploy
    4. Log in to your system.

      url
    5. Click Go and check your result.

      url
  • Step 12

    Where do you enter your API endpoint of your subaccount?

Back to top