Create a SAP Fiori App in Visual Studio Code and Deploy it to SAP BTP, ABAP Environment
Create a SAP Fiori Elements app for a RAP business object from SAP BTP, ABAP Environment in Visual Studio Code and deploy it to SAP BTP, ABAP Environment.
HINT: If you are not able to see the Fiori Application Generator, please install the generator again by opening the terminal and adding following: npm install -g yo.
Step 1Create SAP Fiori application
โ
Open Visual Studio Code and select View > Command Palette.
app
Search Fiori: Open Application Generator and select it.
app
Select SAP Fiori elements as application type, List Report Object Page as floorplan and click Next >.
app
Select Data Source and Service:
Data source: Connect to an SAP System
System: New System
System type: ABAP Environment on SAP Business Technology Platform
ABAP environment definition source: Upload a Service Key File
Service key file path: <your_service_key>
System name: <your_system_name>
Service: <your_service_definition>
app
Click Next >.
You have downloaded the service key earlier in the SAP BTP Trial Cockpit.
Is this an SAP Business Technology Platform system? Yes
Target System URL: <your_abap_system_url>
Name: ztravel_app_xxx
Package: ztravel_app_xxx
Transport Request: <your_transport_request>
Deployment description: deployment xxx
app
Click Next >.
HINT: 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.deploy
Configure Fiori Launchpad:
Semantic Object: ztravel_app_xxx
Action: display
Title: Travel App XXX
app
Click Finish.
Now all files have been generated.
app
Step 2Start SAP Fiori application
+
Right-click ztravel_app_xxx and select Open in Integrated Terminal.
start
Start your application with npm start and press enter.
start
Press Go and check your result.
start
Step 3Deploy SAP Fiori application
+
Open your terminal and enter npm run deploy. When prompted, check deployment configuration and press y.
deploy
Now your application is deployed.
deploy
HINT: If you want to update your SAP Fiori Launchpad configuration, then you can do following steps:
Open your terminal, enter npx fiori add flp-config and press enter.deploy
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.
Open your terminal, enter npx fiori add deploy-config and press enter. Enter following:
- Target: ABAP
- SAP BTP System: Y
- Target System URL: <your_target_system_url>
- Name: (press enter)
- Package: ztravel_app_xxx
- Transport Number: <your_transport_number>
deploy
Your yaml file should be written after entering all information.
Step 4Check BSP library and SAP Fiori Launchpad app descriptor item in Eclipse
+
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
Step 5Create IAM App and business catalog
+
In Eclipse right-click your package ZTRAVEL_APP_XXX and select New > Other Repository Object.
iam
Search for IAM App, select it and click Next >.
iam
Create a new IAM App:
Name: ZTRAVEL_IAM_XXX
Description: IAM App
iam
Click Next >.
Click Finish.
iam
Select Services and add a new one.
iam
Select following:
Service Type: OData V2
Service Name: ZUI_C_TRAVEL_M_XXX_0001
iam
Click OK.
Save and activate your IAM app.
Right-click your package ZTRAVEL_APP_XXX and select New > Other Repository Object.
catalog
Search for Business Catalog, select it and click Next >.
catalog
Create a new business catalog:
Name: ZTRAVEL_BC_XXX
Description: Business catalog
catalog
Click Next >.
Click Finish.
catalog
Select Apps and add a new one.
catalog
Create a new business catalog:
IAM App: ZTRAVEL_IAM_XXX_EXT
Name: ZTRAVEL_BC_XXX_0001
catalog
Click Next >.
Click Finish.
catalog
Click Publish Locally to publish your business catalog.
catalog
Step 6Run SAP Fiori application
+
Switch to Visual Studio Code and open the integrated terminal. Enter npm run deploy. When prompted, check deployment configuration and press y.
deploy
Press CTRL and click the following link to open the URL in a browser.
deploy
Log in to your system and press go to see your result.
Share feedback on this tutorial or join the conversation in SAP Community.
Submit detailed feedbackDiscuss in Community
Steps
Step 1 of 7
1. Create SAP Fiori application2. Start SAP Fiori application3. Deploy SAP Fiori application4. Check BSP library and SAP Fiori Launchpad app descriptor item in Eclipse5. Create IAM App and business catalog6. Run SAP Fiori application7. Test yourself
Joule
AI Notice
Joule is an AI assistant. Generative AI may produce inaccurate, incomplete, or biased information. Always verify important details before acting on them.
Conversations are sent to SAP-hosted large language models for processing. Do not include personal data, credentials, or confidential information in your messages.
Joule's responses are based on the SAP tutorial catalog and may not reflect the latest product changes. For authoritative guidance, consult the linked tutorials and official SAP documentation.