SAP UI5 Fiori applications are fundamental in crafting intuitive user interfaces akin to state-of-the-art applications built on the robust UI5 framework, providing a seamless and engaging user experience.
Generally, to connect your Cloud Application to Backend (Internal or External System), you need to deploy the solution to BTP so that BTP Infrastructure will take care of the connection securely.
However, during the design and development phase of the BTP application, if you would like to preview the application locally, so that you can run/debug locally without deployment, then SAP Fiori tools offer the sap/ux-ui5-tooling npm package.
In this guide, I will delve into the essential approaches for achieving this goal, assuming you already have the necessary prerequisites and configurations in place, excluding UI5 CLI Tooling and @sap/ux-ui5-tooling setup.
To enable BAS to detect the destination, add the destination at the BTP Sub Account level, at least for the Development sub-account. This helps for local debugging/running the application locally to connect to external service APIs before you deploy to BTP. For other environments like QA and Prod, you can maintain instance-based (inside space) services.
For more information see: https://github.com/SAP-docs/btp-business-application-studio/blob/main/docs/connecting-to-external-sy...
Add the following additional properties to the created destination:
Destination Type and Properties
Destination Type WebIDEUsage Value Description
ABAP System | odata_abap, dev_abap |
|
SAP Cloud for Customer | odata_c4c | Used to explore SAP Cloud for Customer catalogs. |
Service URL | odata_gen | For an absolute URL, use the full URL option (WebIDEAdditionalData property with full_url as the value). For a service host, add the relative URL upon login. |
SAP Business Accelerator Hub | apihub_sandbox | For accessing API Hub in a sandbox environment. |
If you are using an ABAP system from SAP BTP, ABAP environment, or SAP S/4HANA Cloud, follow these integration steps:
If you are using an on-premise system, configure the Cloud Connector to expose your system correctly. Refer to Cloud Connector.
If you don’t have a Cloud Connector, set one up on your local machine or VM.
In the Access Control tab of the Cloud Connector, grant access to all relevant URL paths (Resources) to access the system. Select the "Path and all sub-paths" option for Access Policy.
Example paths:
Once the destination is created, SAP Business Application Studio developers can use it in their dev spaces. See Accessing On Premise Systems.
If you cannot access the on-premise system and there is an allowlist in your network, make sure to allow BAS inbound IPs as described in SAP Business Application Studio Availability.
When you start the debug server, SAP Business Application Studio will open the application in a new tab. As demonstrated in the screenshot below, you can view $metadata of the Northwind service in the Network tab.
For a customized approach to running your SAP UI5 Fiori application, you can configure specific run settings based on your project requirements. This allows for greater control and flexibility in your local development process.
Running and debugging SAP UI5 Fiori applications locally using SAP Business Application Studio (BAS) with UI5 tooling provides an efficient way to develop and preview applications without immediate deployment to SAP BTP. By following the steps and configurations outlined in this guide, developers can enhance productivity and streamline the development process.
If you found this blog post beneficial in your learning journey, please click the Like 👍 button and share your feedback in the Comments section below. Additionally, follow me for more valuable content. Your support means a lot to me!
If you encounter any problems, have feedback, or need help, feel free to leave a comment or contact the SAP Community for assistance.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
30 | |
18 | |
10 | |
9 | |
8 | |
8 | |
7 | |
7 | |
6 | |
6 |