The deployment to ABAP task allows deploying SAP Fiori applications to SAP systems using the SAPUI5 Repository OData service.
-
SAP component SAP_UI 7.53 or higher is installed in your SAP system.
For systems below 7.53, the alternative is to upload the application.
-
Service needs to be enabled and accessible from your development environment (activate and maintain services).
-
For operations on a SAPUI5 ABAP repository, you need the S_DEVELOP authorization.
- The task does not create ABAP transports, therefore, it requires an existing transport if the target ABAP package requires a transport.
- Basic Authentication (user and password based authentication) is supported for all back-end systems. Additional support for OAuth2 authentication is provided for ABAP systems on SAP Business Technology Platform.
In order to create deployment configuration, launch the deployment configuration wizard from the Command Palette entry: Fiori: Add Deployment Configuration and chose the SAP Fiori project you would like to configure, or you can launch from the command line using the command: npx fiori add deploy-config
while in the required SAP Fiori project folder.
You are prompted for the required information and then the ui5-deploy.yaml
file is created based on your input and the content of the existing ui5.yaml
file used for preview. In addition to creating the configuration, the create deployment command will also update your package.json
file so that you can execute npm run deploy
afterwards to deploy your application. See Deployment of Application.
When prompted, add or choose:
Please choose the target |
ABAP |
Select Target System |
Choose a system from your SAP saved systems or provide a Target system URL(VS Code only). |
Destination |
Choose the deployment destination from list provided (SAP Business Application Studio only). |
Enter client |
Add a new client or leave as default. |
SAPUI5 ABAP Repository |
Add a name for the deployed application. |
Deployment Description |
Add the optional description for the deployed application. |
Package |
Add a valid package name. |
How do you want to enter Transport Request |
|
Transport Request |
When prompted, either choose a transport request from the list or add a valid transport request. |
Executing ui5 build --config ui5-deploy.yaml
in your project with the configuration below in a ui5-deploy.yaml
file manually added to the project, would deploy all files of your dist
folder except files ending with .test.js
and the internal.md
file. The target system is XYZ
with client 200. Username and password for authentication is read from the environment variables XYZ_USER
and XYZ_PASSWORD
.
Based on this example, the application is created and updated as /TEST/SAMPLE_APP
in package /TEST/UPLOAD
and all changes is recorded in transport request XYZQ300582
.
Sample content of the ui5-deploy.yaml
file:
builder: customTasks: - name: deploy-to-abap afterTask: replaceVersion configuration: target: url: https://XYZ.sap-system.corp:44311 client: 200 auth: basic credentials: username: env:XYZ_USER password: env:XYZ_PASSWORD app: name: /TEST/SAMPLE_APP package: /TEST/UPLOAD transport: XYZQ300582 exclude: - .*\.test.js - internal.md
For example, you can add additional settings params such as sap-language
to your yaml
file.
Sample content of the ui5-deploy.yaml
file:
builder: customTasks: - name: deploy-to-abap afterTask: replaceVersion configuration: target: url: https://XYZ.sap-system.corp:44311 client: 200 auth: basic params: sap-language: en credentials: username: env:XYZ_USER password: env:XYZ_PASSWORD app: name: /TEST/SAMPLE_APP package: /TEST/UPLOAD transport: XYZQ300582 exclude: - .*\.test.js - internal.md