cancel
Showing results for 
Search instead for 
Did you mean: 

Fiori: Reuse Components not found

fabian_krger
Participant
0 Kudos

Hello guys,

I have a S/4HANA FPS02 instance and trying to get the best practice content running.

To be more specific, I want to create a purchase order using the fiori app "create purchase order".

Unfortunately I always get the error message that the app cannot be startet.

Using the developer tools I can see that this is the issue:


abap.js:2 GET https://[myhost]/sap/bc/ui5_ui5/ui2/ushell/resources/~20160504081100~/sap/se/mi/plm/lib/attachmentse... 404 (NOT FOUND)

and also


core-min-0.js:92 2016-07-28 11:35:08.310479 Failed to load UI5 component with properties '{"name":"ui.ssuite.s2p.mm.pur.po.create.s1","self":{"name":"ui.ssuite.s2p.mm.pur.po.create.s1"},"messages":[{"severity":"error","text":"Anwendung ui.ssuite.s2p.mm.pur.po.create.s1 hat Fehler und wird möglicherweise nicht richtig ausgeführt."}],"componentData":{"startupParameters":{}},"asyncHints":{"libs":["sap.ca.scfld.md","sap.ca.ui","sap.me","sap.ui.unified"],"waitFor":[]},"url":"/sap/bc/ui5_ui5/sap/mm_po_cres1/~D672144C1827143B3DE185FC96F9A4AD~C","async":true,"id":"application-PurchaseOrder-create-component"}'. - Error: failed to load 'sap/se/mi/plm/lib/attachmentservice/library.js' from /sap/bc/ui5_ui5/ui2/ushell/resources/~20160504081100~/sap/se/mi/plm/lib/attachmentservice/library.js: 404 - NOT FOUND

So basically the app is trying to load sap/se/mi/plm/lib/attachmentservice/library.js, but since there is no resource-path registered, it is trying to load it from the ushell/resources directory.

In transaction SICF I found the plm_ath_cres1 ("Attachment Service Reusable Component") and it is activated. This means that the command


jQuery.sap.registerResourcePath("sap/se/mi/plm/lib/attachmentservice","/sap/bc/ui5_ui5/sap/plm_ath_cres1/");

Would need to be executed. When I execute it manually, the attachment service library is loading without any issues, but then I immediately get the next problem, since it is load

/sap/bc/ui5_ui5/sap/sd_prc_reusecom/sap/cus/sd/lib/pricing/library.js

while in SICF I can see that the sd pricing reuse component is called sd_prc_reusels1 in my system instead of sd_prc_reusecom. It would need to be

/sap/bc/ui5_ui5/sap/sd_prc_reusels1/library.js

instead.


What is the issue here? Do I need to update a component?

All BSPs are in Component UIS4HOP1 where my Release is 100 SP2.

I didn't find any (further) SAP Notes on this...

Any help is appreciated!

Fabian

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello Fabian,

You could try implement instructions which be contained in SAP note 2288841.

On our system this steps, helped resolve problem.

Best Regards

fabian_krger
Participant
0 Kudos

Thanks, I already executed report /UI5/APP_INDEX_CALCULATE, but it didn't solve the problem.

I ended up with adjusting the code of the affected apps. When you edit the BSP you just need to consider that there are several files to be changed - also preload and debug file which are some of the UI5[GUID] files...

After that - clear caches and execute the mentioned report and the apps are working!

Former Member
0 Kudos

Fabian,

We had the same issue with the Manage Purchase Order Fiori app on a S/4 HANA system.

Scheduling the report "/UI5/APP_INDEX_CALCULATE" fixed this issue for us too so please mark this question as answered.

Thanks!

Answers (0)