Wednesday 5 April 2023

Build and Deploy your SAPUI5 application using SAP Business Application Studio to ABAP repository (on-premise system).

In this blog post, I will guide you through the process of building and deploying an SAPUI5 application using SAP Business Application Studio to an ABAP repository in an on-premise system.

Lets get started.

1) Activate and maintain the repository service in backend system.

◉ Go to t-code /n/iwfnd/maint_services.

SAPUI5, ABAP Development, SAP Business Application Studio, SAP Fiori

◉ Next add the service as indicated in the below snap, /UI5/ABAP REPOSITORY SRV.

SAPUI5, ABAP Development, SAP Business Application Studio, SAP Fiori

◉ Choose the needed package by clicking on the service.

SAPUI5, ABAP Development, SAP Business Application Studio, SAP Fiori

◉ Now that the repository service has been added.

SAPUI5, ABAP Development, SAP Business Application Studio, SAP Fiori

2) Configuration of the Cloud Connector.

3) Creating the Destination in BTP.

◉ While creating the destinations in BTP please make sure that.

1. Your WebIDEUsage includes dev_abap for deploying to the SAPUI5 ABAP Repository. (For example, your WebIDEUsage includes odata_abap,dev_abap).
2. Make sure to add the HTML5.Timeout= 60000 additional property to your destination.
3. For deploying to SAP S/4HANA on-premise, you should add the sap-client additional property to your destination.

◉ Refer to the image below for the destination.

SAPUI5, ABAP Development, SAP Business Application Studio, SAP Fiori

4) Development of simple ui5 app in business application studio.

◉ Go to your business application studio click on Menu->File->New Project From Template–>click on SAP Fiori application.

SAPUI5, ABAP Development, SAP Business Application Studio, SAP Fiori

◉ Choose the application type, then the application.

SAPUI5, ABAP Development, SAP Business Application Studio, SAP Fiori

◉ Choose the needed ODATA service.

SAPUI5, ABAP Development, SAP Business Application Studio, SAP Fiori

◉ After configuring the chosen service, click next.

SAPUI5, ABAP Development, SAP Business Application Studio, SAP Fiori

◉ Together with choosing Yes for the radio option “Add deployment configuration,” complete the project attributes.

SAPUI5, ABAP Development, SAP Business Application Studio, SAP Fiori

◉ Add the deployment configuration as displayed in the following image, then press Finish.

SAPUI5, ABAP Development, SAP Business Application Studio, SAP Fiori

◉ The project and deployment configuration have now both been generated.

The app can be tested and operated locally.

SAPUI5, ABAP Development, SAP Business Application Studio, SAP Fiori

5) SAPUI5 application deployment on SAP ABAP repository.

◉ As the deployment configuration was added when we created the application (You can also add the configuration manually using command npm run deploy-config).

SAPUI5, ABAP Development, SAP Business Application Studio, SAP Fiori

◉ To deploy the application into the SAP UI5 ABAP repository, run the npm run deploy command.

SAPUI5, ABAP Development, SAP Business Application Studio, SAP Fiori

◉ The application will be deployed into our ABAP repository once you choose Yes to begin the deployment.

SAPUI5, ABAP Development, SAP Business Application Studio, SAP Fiori

◉ Now the application has been deployed to ABAP repository go to T-Code SICF and test your application.

SAPUI5, ABAP Development, SAP Business Application Studio, SAP Fiori

◉ Congratulations! You have successfully deployed and tested your SAPUI5 application.

SAPUI5, ABAP Development, SAP Business Application Studio, SAP Fiori

6) Troubleshooting

There are a variety of virus scan errors:

◉ Virus scan server error
◉ No virus scan profile is selected as the default.
◉ Virus scan errors should not block the deployment process. The virus scan should be configured in such a way so as not to disturb the deployment process.
◉ Also, a default virus scan profile should be selected in the system or switched off entirely.

No comments:

Post a Comment