cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

OpenUI5 deployment

JakubG_2024
Explorer
0 Likes
2,368

Hello everyone,

For the past few days I have been struggling with the deployment of the openui5 application to the abap test server (docker image). I tried several options, but unfortunately none of them meet my expectations. Here is some brief info about my environment and what attempts I have made:

I use VSCode + Fiori Tools, not all Fioti tools are working. i.e. I can't use fiori deployment features. I guess it's because im working on OpenUi5. All upload attempts were done on the generated "Build" folder.

The methods I tried:
1. for deployment I first tried to use this guide:
https://community.sap.com/t5/technology-blogs-by-members/deploy-ui5-application-into-abap-repository...

Upload took 11 hours and at some point I got an error and gave up.

2 The second method was to manually upload via the /UI5/UI5_REPOSITORY_LOAD transaction, but here too I unfortunately failed. SAP GUI stutters on compilation at 5%. I left everything for 24 hours for testing, but nothing changed.

3. the method that, let's say, gives any results is tranzaction: /UI5/ABAP_REPOSITORY_SRV and using bilbiotech https://github.com/pfefferf/ui5-nwabap-deployer/blob/master/packages/ui5-nwabap-deployer-cli/README....

With this method, the main problem is that not the entire repository deplants. After some time I get the error "Error code: ICMETIMEOU". Searching for answers on the Internet, I found information that I should increase the limits in the profile using RZ10 transaction. I did so, which caused the entire server to crash and for the next few days I struggled not to lose all my data.

The only thing left for me at this point was to repeat the deployment attempt every few minutes and upload files to the abap server.

I am very much asking you guys for information. Is there any better method to deploy openUI5 application on abap server? I have run out of ideas and don't know what to do. I also don't want to believe that deployment is so slow and clumsy.

Thank you for any help you can provide.

Accepted Solutions (1)

Accepted Solutions (1)

matthias_schmalz
Product and Topic Expert
Product and Topic Expert

Hello,

please avoid uploading the UI5 library sources to the UI5 ABAP Repository.
The content of UI5 core is far too big and the repository is not intended for this.

Please only deploy your app content, which must use the UI5 core which is installed on the ABAP system.

Best regards
Matthias

JakubG_2024
Explorer
0 Likes
Hello Matthias, thanks for the answer. Can you tell me one more thing? What is the proper way to deploy app content written with typescript?
matthias_schmalz
Product and Topic Expert
Product and Topic Expert
0 Likes
The correct way is to configure the build step to produce plain js code and not include dependencies.
matthias_schmalz
Product and Topic Expert
Product and Topic Expert
0 Likes
The correct way is to configure the build step to transpile and produce plain js code and not include dependencies. After the build the dist folder should just contain the js files and resources of your app. Unfortunately I am not an expert for the build configuration of this.

Answers (2)

Answers (2)

matthias_osswald
Product and Topic Expert
Product and Topic Expert
0 Likes

How do you produce the build result? Which commands / tools / extensions are you using?

When using UI5 Tooling / CLI, please make sure to NOT use a flag that includes dependencies into the build result (e.g. via "--all or "-a"): https://sap.github.io/ui5-tooling/v3/pages/CLI/#ui5-build

Otherwise you will end up deploying the UI5 framework itself or other dependencies that should rather be deployed independently and then consumed/referenced at runtime.

 

JakubG_2024
Explorer
0 Likes

Writing OpenUI5 app I meant, application made with openui5 components https://openui5.org/

abap-platform-trial:1909

Database system: HDB
Database release: 2.00.044.00.1571081837
ABAP platform: 1909
SAP S/4HANA FOUNDATION: 1909
SAP FIORI FRONT-END SERVER: 6.0

Cheers!


junwu
SAP Champion
SAP Champion
0 Likes
How the file(you are uploading) look like? hopefully you are not uploading whole ui5 lib...