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

Fiori Reuse Library Application Log 'script load error'

mkerschb
Explorer
0 Likes
1,844

Hi all, 

I have created a FIORI application with the Business Application Studio using the Freestyle Template. My intention was to integrate the Fiori Reuse Library to get the Application Log component. 

I used the SAP hel page Freestyle App Integration to do so.

When using the Terminal and executing 'npm run build' and afterwards 'npm run start-local' the application opens in a browser window. The problem here is, that the page is empty.

mkerschb_0-1725447886951.png

When I open the developer tools with F12, I get following error.

mkerschb_1-1725447970257.png

It says: 'ModuleError: failed to load 'sap/nw/core/applogs/lib/reuse/applogs/Component.js' from ../resources/sap/nw/core/applogs/lib/reuse/applogs/Component.js: script load error'

What did I wrong? I inserted every part mentioned in the help page.

Best Regards,
Martin

Accepted Solutions (0)

Answers (2)

Answers (2)

abdullahgunes
Participant

Hi All,

The same requirement existed for a Fiori Elements application in SAP BAS, and I solved it by comparing it with WebIDE.

Firstly, I added a Reuse Library with the selecting source type ABAP at WebIDE. Then, I converted it in BAS using the Fiori Tools Migration Tool and checked what had changed. After that, I successfully used the Reuse Library in BAS by adding the following commands to ui5.yaml.

Reuse Library Name : sap.nw.core.applogs.lib.reuse

ICF Path/sap/bc/ui5_ui5/sap/nw_aps_apl_lib (From Fiori Library) 

abdullahgunes_0-1755600849744.png

 

 

gregorw
SAP Mentor
SAP Mentor

Hi Martin,

as the requested path /sap/nw suggests the Fiori Reuse Library is not part of the SAPUI5 Version hosted in the CDN but only delivered with SAP NetWeaver ABAP. So you would need to define a destination to an on premise ABAP System to make use of it. What is your plan for the deployment of the app? Cloud or on Premise?

Best Regards
Gregor

mkerschb
Explorer
0 Likes

Hi Gregor,
thanks for your prompt answer.

My intention was to deploy the app on a a cloud system. I am checking the possibility to use application logs on the BTP.

Best Regards,
Martin

gregorw
SAP Mentor
SAP Mentor
0 Likes
Maybe you provide further details on your usecase so the correct solution can be suggested.
mkerschb
Explorer
0 Likes

I have developed a cloud application on the Business Technology Platform. I want to write and read logs from there (like I am doing on the on premise system using the /scwm/log object for writing logs and the transaction SLG1 for reading them ).

gregorw
SAP Mentor
SAP Mentor
0 Likes
Where do you persist your logs? What BTP Environment do you use?
ivan_budi
Newcomer
0 Likes
I have sap hana system and already deployed my app to the system. But still the deployed app trying to find reused component (changedocscomponent) to resources? I already put in the manifest.json in the dependency libs
johnpraveenj
Discoverer
0 Likes
Hi All, I am facing the same issue, Is there any solution or Workaround for using Reuse component Application log in onpermis system.