You can manually import an existing SAP Fiori application from the SAPUI5 ABAP repository to SAP Business Application Studio or Visual Studio Code (VS Code).
Before importing an application, in your workspace in either SAP Business Application Studio or VS Code, create new folders with the following names:
Name |
Description |
---|---|
|
This folder contains the restored app. |
|
This folder will contain the content of the downloaded |
The BSP application code is normally minified before deployment, and so the resulting code that is downloaded is also the minified version. We recommend that you only use this import procedure if the application code is not already available under source control.
The
-dbg.js
file, such as(Component-dbg.js)
, contains the original un-minified code. You can copy its contents into the corresponding.js
file, for example, Component-dbg.js > Component.js for more human readable code.Remove
-dbg.js
,-preload.js
and.js.map
before running UI5 CLI build, otherwise they are recreated in thedist
folder.
To import SAP Fiori apps from the SAPUI5 ABAP repository, perform the following steps:
-
Login to your SAPUI5 ABAP back-end system and navigate to the transaction
SE80
. -
Run the report
/UI5/UI5_REPOSITORY_LOAD
. -
Provide the name of the SAPUI5 application and click Download.
-
Choose an empty folder for the download target.
-
From the resulting view, download the files as a
.zip
file using the button Click here to Download at the end of the page. -
Extract the
.zip
file into the folderrestore-from-exported/webapp
.- Verify that the
manifest.json
is located atrestore-from-exported/webapp/manifest.json
.
- Verify that the
-
Create a
package.json
in the folderrestore-from-exported
. Thename
value should match the application name inmanifest.json
.{ "name": "sap.fe.demo.awesomeapp", }
You can see the original application name and namespace in the
manifest.json
file. For example:{ "sap.app": { "id": "sap.fe.demo.awesomeapp", .. }
-
In SAP Business Application Studio or VS Code workspace, start the migration command
Fiori: Migrate Project for use in Fiori tools
if not already prompted to do so. -
The project should be found in
restore-from-exported
and listed for migration. -
Choose the appropriate options and migrate the project.
-
The project is now compatible with SAP Fiori tools.