cancel
Showing results for 
Search instead for 
Did you mean: 

Fiori app 'CRM_OPPRTNTY' extension error.

abhishek_it28
Explorer
0 Kudos

Hi,


We are not able to extend fiori app 'CRM_OPPRTNTY'. We have even tried

WEB IDE. We uploaded it as a new project and just created a new

extension project but on running, it is not even showing the blank

layout.

We tried Eclipse Juno as well. In all options we get the blank screen

and

in console we get the below error message.

"Uncaught Error: failed to load 'sap/cus/crm/lib/reuse/library.js' from

./../orion/file/p1028406trial$P1028406-

OrionContent/crm_opprtnty/crm_opprtnty/../crm_lib_reuse/sap/cus/crm/lib/r

euse/library.js: 404 - Not Found"

In short I would request you to extend fiori app 'CRM_OPPRTNTY'. It

seems a product issue after the recent server upgrade as we are not finding

much post on this issue in SCN.

Accepted Solutions (0)

Answers (3)

Answers (3)

gill367
Active Contributor
0 Kudos

Hi Abhishek;

I tried in webide and it iw working fine for me there.

Following is the neo-app.json

"

{

  "welcomeFile": "/webapp/index.html",

  "routes": [

    {

      "path": "/resources",

      "target": {

        "type": "service",

        "name": "sapui5",

        "version": "1.28.16",

        "preferLocal": true,

        "entryPath": "/resources"

      },

      "description": "SAPUI5 Resources"

    },

    {

      "path": "/sap/public/bc/themes/UI5",

      "target": {

        "type": "service",

        "name": "sapui5",

        "version": "1.28.16",

        "preferLocal": true,

        "entryPath": "/resources"

      },

      "description": "SAPUI5 Themes"

    },

    {

      "path": "/sap/opu/odata",

      "target": {

        "type": "destination",

        "name": "FIORI_BACKEND",

        "entryPath": "/sap/opu/odata"

      },

      "description": "OData services backend"

    },

    {

      "path": "/collectUsageStats",

      "target": {

        "type": "destination",

        "name": "trial_usage_tracking",

        "resolutionType": "localAccount"

      },

      "description": "FLP API for trial usage tracking"

    },

    {

      "path": "/resources/sap/cus",

      "target": {

        "type": "application",

        "name": "cuscrmlibreuse",

        "entryPath": "/sap/cus"

      },

      "description": "HCM Lib Reuse"

    },

    {

      "path": "/sap/ui5/1/resources/sap/cus",

      "target": {

        "type": "application",

        "name": "cuscrmlibreuse",

        "entryPath": "/sap/cus"

      },

      "description": "HCM Lib Reuse"

    },

    {

      "path": "/webapp/parent",

      "target": {

        "type": "application",

        "preferLocal": true,

        "name": "cuscrmopportunity"

      },

      "description": "Original Application"

    },

    {

      "path": "/webapp/resources",

      "target": {

        "type": "service",

        "name": "sapui5",

        "version": "1.28.16",

        "preferLocal": true,

        "entryPath": "/resources"

      },

      "description": "SAPUI5 Resources"

    },

    {

      "path": "/webapp/resources/sap/cus",

      "target": {

        "type": "application",

        "name": "cuscrmlibreuse",

        "entryPath": "/sap/cus"

      },

      "description": "HCM Lib Reuse"

    },

    {

      "path": "/webapp/test-resources",

      "target": {

        "type": "service",

        "name": "sapui5",

        "entryPath": "/test-resources"

      },

      "description": "SAPUI5 Test Resources"

    },

    {

      "path": "/test-resources",

      "target": {

        "type": "service",

        "name": "sapui5",

        "entryPath": "/test-resources"

      },

      "description": "SAPUI5 Test Resources"

    }

  ],

  "sendWelcomeFileRedirect": true

}

"

Regards,

Sarbjeet Singh

jamie_cawley
Advisor
Advisor
0 Kudos

Hi Abhishek,

In Web IDE for this to work you need to add another entry to your neo-app.json to tell the app where to load the reuse library.  You can achieve this by adding the following.


{

      "path": "/webapp/resources/sap/cus/crm",

      "target": {

        "type": "destination",

        "name": "GM4_Virtual",

        "entryPath": "/sap/bc/ui5_ui5/sap/crm_lib_reuse/sap/cus/crm"

      },

      "description": "CRM Lib Reuse"

    },

Make sure to change the target name to your destination name.

Regards,

Jamie

SAP - Technology RIG

abhishek_it28
Explorer
0 Kudos

Thanks Jamie.. which file I do require to include the code.. is it index.htm ?? or other.. and by "Make sure to change the target name to your destination name" I could not understand.. what do you mean by destination name.. pl elaborate..

Thanks,

Abhishek

jamie_cawley
Advisor
Advisor
0 Kudos

Projects in Web IDE have a file named neo-app.json.  This file contains a listing of routes where resources needed to run the app are located.  The code I provided should be included in this file.  For apps to run in Web IDE you need to also have destinations defined in the hana cloud cockpit.  So in my case I have a destination named GM4_Virtual.  You would need to replace this value with the name of a destination pointing to your backend which most likely involves the hana cloud connector. 

If you are new to Web IDE then I suggest you visit

Regards,

Jamie

SAP - Technology RIG

abhishek_it28
Explorer
0 Kudos

But the destination of the server can be pointed only if it is open. In my case the server access is not open and firewall barrier is there which I cannot request to provide right now. If I want to run my extension project of the app to show the blank layout without data, so in this case what would be the destination ?? Please suggest.

Thanks,

Abhisehk

jamie_cawley
Advisor
Advisor
0 Kudos

Please see the getting started section of the link I provided, it should answer your questions.

Regards,

Jamie

SAP - Technology RIG

abhishek_it28
Explorer
0 Kudos

Hi Experts,

Masayuki Sekihara , Claudia Polster , Jeremy Good

any solution ??

agentry_src
Active Contributor
0 Kudos

As near as I can determine there is no Fiori App named CRM_OPPRTNTY.  Please check the app and provide the true name.  You may want to visit the Fiori Apps Library and look for the app there.  I would also recommend a little patience before bumping your Discussion. 

Regards, Mike (Moderator)

SAP Technology RIG

abhishek_it28
Explorer
0 Kudos

Hi,

By 'CRM_OPPRTNTY' I mean the BSP application for the fiori app 'My Opportunity'.. And by the way please look into the issue as what you have suggested to look into the Fiori library is very initial thing for someone who is challenging the SAP product loop hole. So please check before saying ' 'BUMPING' word......

THANKS>>>>>>>>