---
parser: v2
auto_validation: true
primary_tag: software-product>sap-btp--abap-environment
tags: [  tutorial>beginner, programming-tool>abap-development, software-product>sap-business-technology-platform, software-product>sap-business-application-studio]
time: 15
author_name: Merve Temel
author_profile: https://github.com/mervey45
slug: abap-environment-deploy-cf-production
canonical_url: https://developers.sap.com/tutorials/abap-environment-deploy-cf-production
---

# Create a SAP Fiori App and Deploy it to SAP BTP, ABAP Environment
<!-- description --> Create a 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.

## Prerequisites  
- **Trial:** You need an SAP BTP, ABAP environment [trial user](abap-environment-trial-onboarding) 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​
    - The SAP Business Application Studio and the SAP BTP, ABAP environment instance must be under same subaccount.
    - Read following blog post to get an overview on [Connecting from SAP Business Application Studio to SAP BTP Cloud Foundry environment](https://blogs.sap.com/2021/04/21/connecting-from-sap-business-application-studio-to-sap-btp-cloud-foundry-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


### Assign role collection to user


  1. Login to [SAP BTP Trial cockpit](https://cockpit.hanatrial.ondemand.com/) and click **Enter Your Trial Account**.

      ![assign role collection](https://raw.githubusercontent.com/sap-tutorials/abap-core-development/main/tutorials/abap-environment-deploy-cf-production/bas1.png)

  2. Select your subaccount **trial**.

      ![assign role collection](https://raw.githubusercontent.com/sap-tutorials/abap-core-development/main/tutorials/abap-environment-deploy-cf-production/bas2.png)

  2. Now you are in the trial overview page. Click **Users** and select your user.

      ![assign role collection](https://raw.githubusercontent.com/sap-tutorials/abap-core-development/main/tutorials/abap-environment-deploy-cf-production/user2.png)

  4. Click **Assign Role Collection**.

      ![assign role collection](https://raw.githubusercontent.com/sap-tutorials/abap-core-development/main/tutorials/abap-environment-deploy-cf-production/user3.png)

  5. Select `Business_Application_Studio_Developer` and click **Assign Role Collection**.

      ![assign role collection](https://raw.githubusercontent.com/sap-tutorials/abap-core-development/main/tutorials/abap-environment-deploy-cf-production/bas7x.png)
 


### Create dev space


  1. On the left menu scroll to the top and select **Instances and Subscriptions** and open SAP Business Application Studio.

      ![dev](https://raw.githubusercontent.com/sap-tutorials/abap-core-development/main/tutorials/abap-environment-deploy-cf-production/instance.png)

  2. Now the SAP Business Application Studio has started. Click **Create Dev Space**.

      ![dev](https://raw.githubusercontent.com/sap-tutorials/abap-core-development/main/tutorials/abap-environment-deploy-cf-production/studio3.png)

  3. Create a new dev space:
       - Name: **Fiori**
       - Type: **SAP Fiori**
 
       Click **Create Dev Space**.

     ![dev](https://raw.githubusercontent.com/sap-tutorials/abap-core-development/main/tutorials/abap-environment-deploy-cf-production/studio4.png)

  4. When your status is **Running**, select your dev space **Fiori**.

      ![dev](https://raw.githubusercontent.com/sap-tutorials/abap-core-development/main/tutorials/abap-environment-deploy-cf-production/studio5.png)


### Set up organization and space

  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](https://raw.githubusercontent.com/sap-tutorials/abap-core-development/main/tutorials/abap-environment-deploy-cf-production/studio6.png)

  2. Select **`/home/user/projects/`** and click **OK**.

  <!-- In S4C : You don't switch back to Trial (!)
   -->

  3. Switch to SAP BTP Trial and select your trial subaccount.

  4. Copy your **Cloud Foundry Environment API endpoint** for later use.      

      ![organization](https://raw.githubusercontent.com/sap-tutorials/abap-core-development/main/tutorials/abap-environment-deploy-cf-production/api2.png)

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

  6. Search for **CF: Login to Cloud Foundry** and select it.

      ![organization](https://raw.githubusercontent.com/sap-tutorials/abap-core-development/main/tutorials/abap-environment-deploy-cf-production/s9.png)

  7. Paste your Cloud Foundry API endpoint, enter your credentials and click **Sign in**.

      ![organization](https://raw.githubusercontent.com/sap-tutorials/abap-core-development/main/tutorials/abap-environment-deploy-cf-production/s10.png)

  8. 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](https://raw.githubusercontent.com/sap-tutorials/abap-core-development/main/tutorials/abap-environment-deploy-cf-production/s11.png)

      Click **Apply**.


### Create list report object page


  1. Select the menu on the left side and click **View > Command Palette**.

      ![object](https://raw.githubusercontent.com/sap-tutorials/abap-core-development/main/tutorials/abap-environment-deploy-cf-production/s8.png)

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

      ![object](https://raw.githubusercontent.com/sap-tutorials/abap-core-development/main/tutorials/abap-environment-deploy-cf-production/sg.png)

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

      ![object](https://raw.githubusercontent.com/sap-tutorials/abap-core-development/main/tutorials/abap-environment-deploy-cf-production/listreport.png)

  4. Configure data source, system and service:
     - Data source: **Connect to a System**
     - System: **`ABAP Environment on SAP Business Technology Platform`**
     - ABAP Environment: **`default_abap-trial`**
     - Service: **`ZUI_C_TRAVEL_M_XXX(1) - OData V2`**

     ![object](https://raw.githubusercontent.com/sap-tutorials/abap-core-development/main/tutorials/abap-environment-deploy-cf-production/s13.png)

     Click **Next >**.

     A destination for the `abap-trial` service instance is generated automatically.

  5. Select your main entity **`TravelProcessor`** and click **Next >**.

      ![object](https://raw.githubusercontent.com/sap-tutorials/abap-core-development/main/tutorials/abap-environment-deploy-cf-production/s14.png)

  6. Configure project attributes:  
     - Name: **`ztravel_app_xxx`**
     - Title: **Travel App XXX**
     - Description: **A Fiori application.**
     - Add deployment configuration: Yes
     - Add FLP configuration: Yes
     - Configure advanced options: No

     Click **Next >**.

      ![object](https://raw.githubusercontent.com/sap-tutorials/abap-core-development/main/tutorials/abap-environment-deploy-cf-production/s15.png)

   >Your **application name must** begin with a `z letter` and **must** be in **lowercase letters**.

  7. Configure deployment:
       - Target: ABAP
       - Destination: `<your_abap_system_url>`
       - `SAPUI5` ABAP Repository: `ztravel_app_xxx`
       - Package: `ztravel_app_xxx`
       - How do you want to enter Transport Request? Manually
       - Transport Request: `<your_transport_request>`

      ![app](https://raw.githubusercontent.com/sap-tutorials/abap-core-development/main/tutorials/abap-environment-deploy-cf-production/s16.png)

      Click **Next >**.

   >If you want to copy your transport request, please do following: Open Eclipse, search your package `ZTRAVEL_APP_XXX` and open it. Open your transport organizer to see your transport request. Copy your transport request for later use. You can find your transport request underneath the Modifiable folder.
   ![app](https://raw.githubusercontent.com/sap-tutorials/abap-core-development/main/tutorials/abap-environment-deploy-cf-production/deploy3.png)


  8. Configure SAP Fiori launchpad:
       - Semantic object: `ztravel_app_xxx`
       - Action: display
       - Title: Travel App XXX

      ![app](https://raw.githubusercontent.com/sap-tutorials/abap-core-development/main/tutorials/abap-environment-deploy-cf-production/s17.png)

      Click **Finish**.


### Run SAP Fiori application for data preview


  1. Select the menu on the left side, right-click your project `ztravel_app_xxx` and select **Open in Integrated Terminal**.

      ![run](https://raw.githubusercontent.com/sap-tutorials/abap-core-development/main/tutorials/abap-environment-deploy-cf-production/s18.png)

  2. Type `npm start` and press **Enter**.

      ![run](https://raw.githubusercontent.com/sap-tutorials/abap-core-development/main/tutorials/abap-environment-deploy-cf-production/s19.png)

  3. The preview opens. Click **Go**.

     ![run](https://raw.githubusercontent.com/sap-tutorials/abap-core-development/main/tutorials/abap-environment-deploy-cf-production/s20.png)

  4. Now check your result.

     ![run](https://raw.githubusercontent.com/sap-tutorials/abap-core-development/main/tutorials/abap-environment-deploy-cf-production/s21.png)


### Deploy your application


1. Select the menu on the left side, right-click your project `ztravel_app_xxx` and select **Open in Integrated Terminal**.

    ![deploy](https://raw.githubusercontent.com/sap-tutorials/abap-core-development/main/tutorials/abap-environment-deploy-cf-production/s18.png)

2. Enter **`npm run deploy`** to deploy your application. When prompted, check deployment configuration and press y. Open the URL at the end of the deployment log in browser to preview the application.

    ![deploy](https://raw.githubusercontent.com/sap-tutorials/abap-core-development/main/tutorials/abap-environment-deploy-cf-production/s22.png)

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

    >**Hint:** If an error message appears, use the [Environment Check](https://help.sap.com/docs/SAP_FIORI_tools/17d50220bcd848aa854c9c182d65b699/75390cf5d81e43aea5db231ef4225268.html).


### Check BSP library and SAP Fiori Launchpad app descriptor item in Eclipse


  1. Open Eclipse and check the **BSP library** and **SAP Fiori Launchpad app descriptor item folder** in your package **`ZTRAVEL_APP_XXX`**. If you are not able to see BSP applications and SAP Fiori Launchpad app description items, refresh your package `ZTRAVEL_APP_XXX` by pressing `F5`.

     ![library](https://raw.githubusercontent.com/sap-tutorials/abap-core-development/main/tutorials/abap-environment-deploy-cf-production/bsp.png)



### Create IAM App and business catalog


  1. In Eclipse right-click your package **`ZTRAVEL_APP_XXX`** and select **New** > **Other Repository Object**.

      ![iam](https://raw.githubusercontent.com/sap-tutorials/abap-core-development/main/tutorials/abap-environment-deploy-cf-production/iam.png)

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

      ![iam](https://raw.githubusercontent.com/sap-tutorials/abap-core-development/main/tutorials/abap-environment-deploy-cf-production/iam2.png)

  3. Create a new IAM App:
     - Name: **`ZTRAVEL_IAM_XXX`**
     - Description: IAM App

      ![iam](https://raw.githubusercontent.com/sap-tutorials/abap-core-development/main/tutorials/abap-environment-deploy-cf-production/iam3.png)

      Click **Next >**.

  4. Click **Finish**.

      ![iam](https://raw.githubusercontent.com/sap-tutorials/abap-core-development/main/tutorials/abap-environment-deploy-cf-production/iam4.png)

  5. Select **Services** and add a new one. 

      ![iam](https://raw.githubusercontent.com/sap-tutorials/abap-core-development/main/tutorials/abap-environment-deploy-cf-production/iam5.png)

  6. Select following:
      - Service Type: `OData V2 (deprecated)`
      - Service Name: `ZUI_C_TRAVEL_M_XXX_0001`    

      ![iam](https://raw.githubusercontent.com/sap-tutorials/abap-core-development/main/tutorials/abap-environment-deploy-cf-production/iam6x.png)

      Click **OK**.

      Right-click your IAM App and click **Activate**.

   >If you can't find your service name, you can press **CTRL + space** to search for it.

  7. Right-click your package **`ZTRAVEL_APP_XXX`** and select  **New** > **Other Repository Object**.

      ![catalog](https://raw.githubusercontent.com/sap-tutorials/abap-core-development/main/tutorials/abap-environment-deploy-cf-production/catalog.png)

  8. Search for **Business Catalog**, select it and click **Next >**.

      ![catalog](https://raw.githubusercontent.com/sap-tutorials/abap-core-development/main/tutorials/abap-environment-deploy-cf-production/catalog2.png)

  9. Create a new business catalog:
     - Name: **`ZTRAVEL_BC_XXX`** 
     - Description: Business catalog

      ![catalog](https://raw.githubusercontent.com/sap-tutorials/abap-core-development/main/tutorials/abap-environment-deploy-cf-production/catalog3.png)

      Click **Next >**.

 10. Click **Finish**.
 
      ![catalog](https://raw.githubusercontent.com/sap-tutorials/abap-core-development/main/tutorials/abap-environment-deploy-cf-production/catalog4.png)

 11. Select **Apps** and add a new one.

      ![catalog](https://raw.githubusercontent.com/sap-tutorials/abap-core-development/main/tutorials/abap-environment-deploy-cf-production/catalog5.png)

 12. Create a new business catalog:
     - IAM App: `ZTRAVEL_IAM_XXX_EXT`
     - Name: `ZTRAVEL_BC_XXX_0001`

      ![catalog](https://raw.githubusercontent.com/sap-tutorials/abap-core-development/main/tutorials/abap-environment-deploy-cf-production/catalog6.png)

      Click **Next >**.

 13. Click **Finish**.

       ![catalog](https://raw.githubusercontent.com/sap-tutorials/abap-core-development/main/tutorials/abap-environment-deploy-cf-production/catalog7.png)

 14. Click **Publish Locally** to publish your business catalog.

       ![catalog](https://raw.githubusercontent.com/sap-tutorials/abap-core-development/main/tutorials/abap-environment-deploy-cf-production/catalog8.png)




### Run SAP Fiori application


  1. Go back to SAP Business Application Studio and deploy your changes. Select the menu on the left side, right-click your project `ztravel_app_xxx` and select **Open in Integrated Terminal**.

      ![deploy](https://raw.githubusercontent.com/sap-tutorials/abap-core-development/main/tutorials/abap-environment-deploy-cf-production/s18.png)


  2. Enter **`npm run deploy`**. When prompted, check deployment configuration and press y.

      ![url](https://raw.githubusercontent.com/sap-tutorials/abap-core-development/main/tutorials/abap-environment-deploy-cf-production/s22.png)

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

      ![url](https://raw.githubusercontent.com/sap-tutorials/abap-core-development/main/tutorials/abap-environment-deploy-cf-production/s23.png)

  4. Log in to ABAP Trial.

      ![url](https://raw.githubusercontent.com/sap-tutorials/abap-core-development/main/tutorials/abap-environment-deploy-cf-production/url4.png)

  5. Click **Go**.

      ![url](https://raw.githubusercontent.com/sap-tutorials/abap-core-development/main/tutorials/abap-environment-deploy-cf-production/url5.png)

  6. Check your result.

      ![url](https://raw.githubusercontent.com/sap-tutorials/abap-core-development/main/tutorials/abap-environment-deploy-cf-production/url6.png)



### Test yourself
