Write a comment
Writing comments is only allowed to registered users, registration is free and does not require an email address and can be done quickly here.
Writing comments is only allowed to registered users, registration is free and does not require an email address and can be done quickly here.
Doing this blog in an On Premise 2023 SP02
Hello
I´m trying to do this exercice in an On Premise 2023 SP02 (Cloud developer trial 2023) but the problem is that the "Data validation" custom section is always empty. I´m using Vscode local (not BAS).
Apparently, (according with the Fiori library) this reuse library sap.nw.core.applogs.lib.reuse should work in On Premise 2023: https://fioriappslibrary.hana.ondemand.com/sap/fix/externalViewer/index.html#/detail/Apps('F1487')/S29OP
As there are no IAM apps in On Premise I have included authorizations in my user role for the flp, no problem including the sales app in the flp, the authorization objects in the role are:
R3TR G4BA ZBS_UI_GLOBALSALE_O4 R3TR IWSV APL_LOG_MANAGEMENT_SRV 0001
Assigned authorization to object A_APPL_LOG (and my user has profile SAP_ALL)
Not any failed authorization problem in STAUTHTRACE "Apparently" not any suspicious message in the browser debugger. I have done different tests (like trying to modify in Vscode the SAPUI5 version) , however the Sapui5 version once deployed is always 1.120.15 (the one installed in the Cloud trial 2023) but always the same problem.
Any ideas? Thanks
Hello Alfredo,
so the control is not loading in the UI? There seems to be a problem with the Fiori Library. All the authorization problems should occure, when the control is there and tries to load the data. So there seems to be a problem with the implementation of the component in the app or system.
Have never tested Developer Trial, maybe the Library have to be activated? Is the custom section visible? Have you checked if the Library is loaded?
Greetings Björn
Hi Bjorn
The library is loaded. There is an error in Chrome debugger: "setAssociation(): sId must be a string, an instance of sap.ui.base.ManagedObject or null"
and following it I have found that it happens when the framework tries to compose the ObjectPage including the reuse Application Log, then is not included due to this error. I´ve tried to do a little change in the position of embedded sections (RichTextEditorFragment and ApplicationLogComponent) but no luck. Cloud trial developer edition includes SAPUI5 1.120.14 which is lower than the one in your blog. I think that with the next edition of Clod trial developer edition, hopefully 2025, it will be solved. Thank you Bjorn , software Heroes collections of blogs to learn RAP are the best articles in the Internet about this subject, no question about.
Thank you for the feedback. The v4 support for the components was added late, don't know if it is also for this component. But when you have followed the series, it sound like this problem.
Hi again Björn
Sorry for this new message, I wouldn´t like to take up too much of your time . I´m very interested in finishing this blog (and after the following closely related blogs with Excel, Change documents etc.), then I decided to use "Cloud Trial Cockpit" to make it work
https://account.hanatrial.ondemand.com/trial/#/home/trial , Region US East (VA) - AWS
using BAS and the default_abap-trial (Abap TRL instance) instead of my local Abap Cloud Developer Trial 2023 and local Vscode. There are still some problems (libraries not loaded):
Log-dbg.js:497 2026-06-17 17:13:05.456699 failed to load JavaScript resource: sap/nw/core/applogs/lib/reuse/applogs/Component-preload.js - sap.ui.ModuleSystem
Log-dbg.js:497 2026-06-17 17:13:05.642000 failed to load JavaScript resource: sap/nw/core/applogs/lib/reuse/applogs/Component.js - sap.ui.ModuleSystem 2 Log-dbg.js:497 2026-06-17 17:13:05.642099 The following error occurred while displaying routing target with name 'swh.test.zbsglobalsales::SASaleObjectPage--fe::CustomSubSection::ApplicationLogComponent::component': ModuleError: failed to load 'sap/nw/core/applogs/lib/reuse/applogs/Component.js' from https://ui5.sap.com/1.145.3/resources/sap/nw/core/applogs/lib/reuse/applogs/Component.js: script load error -
3 index.html#/SASale(S…umnsBeginExpanded:1 Uncaught (in promise) ModuleError: failed to load 'sap/nw/core/applogs/lib/reuse/applogs/Component.js' from https://ui5.sap.com/1.145.3/resources/sap/nw/core/applogs/lib/reuse/applogs/Component.js: script load error
It´s possible that even using the "Cloud Trial Cockpit" it´s necessary an additional setting not included in the blog? I have compared my manifest.json and ui5.yaml and your Git files ans are quite silmilar.
Maybe solutión is here: https://community.sap.com/t5/technology-q-a/fiori-reuse-library-application-log-script-load-error/qaq-p/13854193
Then I have added to ui5.yaml
But no luck, any idea?
Thank you so much
Hi Alfredo,
a Trial system is also a bit limited, for example if you want to read users. And I could also imagine that authorization and the access to logs could be limited. Have never tested it. So, what is the trial system you are using? A shared trial ABAP Environment or what type?
In the article is everything I have done so far, so no hidden magic there. Maybe you can try to use an OData v2 service in the backend and implement the v2 version of the Re-Use component. That version is older and could work in 2023. Only for test and if you want to do this.
I'll try to get some informations for the availability.
Greetings Björn