cancel
Showing results for 
Search instead for 
Did you mean: 

How to solve the “found in negative cache: 'opensap/myapp/Component.js' from …” problem?

Former Member
0 Kudos

Hi Experts,

I have built a SAPUI5 application in SAP Web IDE and deployed to HCP and registered to SAP Fiori Launchpad successfully. Then I deployed my application into SAP UI5 ABAP Repository from SAP Web IDE using the context menu as shown below:

Up to this I did not face any problem. Now I am trying to launch my application from Fiori Launch Pad within SAP UI5 ABAP Repository and getting the following error every time I click on the tile:

Console (F12) on Chrome:

I have followed this document suggested in the discussion Adding home button to custome app(fiori)


I have skipped section 1.1 Upload the SAPUI5 Application to the Gateway Server as a BSP application as I have deployed the application from SAP Web IDE and found my application under transaction SE80 as shown below:

So, I started from section 1.2 Create a Launchpad Role in LPD_CUST and followed up to 1.5 Create a PFCG Role for the Catalog and Group.

After completing section 1.2 Create a Launchpad Role in LPD_CUST my Launchpad Configuration looks like below:



After completing section 1.3 Create a Semantic Object in /UI2/SEMOBJ my semantic object looks like below:

After completing 1.4 Create Catalog, Target Mapping and a Static Tile my target mapping configuration looks like below:

My tile configuration looks like below:


I have put the catalog in a group as shown below:

After completing 1.5 Create a PFCG Role for the Catalog and Group I have assigned catalog and groups to the role as shown below:


And also assigned the user to the PFCG role as shown below:

After completing all these steps I am getting the following error after clicking the tile as mentioned at the beginning:

I am also sharing my directory structure of the application below:

Here is my Component.js file:


sap.ui.define([

  "sap/ui/core/UIComponent"

], function(UIComponent) {

  "use strict";

return UIComponent.extend("opensap.myapp.Component", {

  metadata: {

  manifest: "json"

  },

init: function() {

  // call the init function of the parent

  UIComponent.prototype.init.apply(this, arguments);

this.getModel().setUseBatch(false);

  }

  });

});

Here is the manifest.js file


{

  "_version": "1.3.0",

  "sap.app": {

  "_version": "1.3.0",

  "id": "opensap.myapp",

  "type": "application",

  "i18n": "i18n/i18n.properties",

  "title": "{{appTitle}}",

  "description": "{{appDescription}}",

  "applicationVersion": {

  "version": "1.0.0"

  },

  "dataSources": {

  "GWD100": {

  "uri": "/sap/opu/odata/sap/ZUSER02_SRV/",

  "type": "OData",

  "settings": {

  "odataVersion": "2.0"

  }

  }

  }

  },

  "sap.ui": {

  "_version": "1.3.0",

  "technology": "UI5",

  "deviceTypes": {

  "desktop": true,

  "tablet": true,

  "phone": true

  },

  "supportedThemes": [

  "sap_bluecrystal"

  ]

  },

  "sap.ui5": {

  "_version": "1.2.0",

  "rootView": {

  "viewName": "opensap.myapp.view.App",

  "type": "XML",

  "id": "app"

  },

  "handleValidation": true,

  "autoPrefixId": true,

  "dependencies": {

  "minUI5Version": "1.34",

  "libs": {

  "sap.ui.core": {

  "minVersion": "1.34.0"

  },

  "sap.m": {

  "minVersion": "1.34.0"

  },

  "sap.ui.layout": {

  "minVersion": "1.34.0"

  }

  }

  },

  "models": {

  "i18n": {

  "type": "sap.ui.model.resource.ResourceModel",

  "settings": {

  "bundleName": "opensap.myapp.i18n.i18n"

  }

  },

  "": {

  "dataSource": "GWD100"

  }

  },

  "contentDensities": {

  "compact": true,

  "cozy": true

  }

  },

  "sap.platform.hcp": {

  "uri": "webapp",

  "_version": "1.1.0"

  },

  "sap.platform.abap": {

  "uri": "/sap/bc/ui5_ui5/sap/z_poc_p1_2/webapp",

  "_version": "1.1.0"

  }

}

Attached index.html file.


<!DOCTYPE html>

<html>

  <head>

  <meta http-equiv="X-UA-Compatible" content="IE=edge"/>

  <meta charset="UTF-8">

  <title>openSAP - Developing Web Apps with SAPUI5</title>

  <script

  id="sap-ui-bootstrap"

  src="https://sapui5.hana.ondemand.com/resources/sap-ui-core.js"

  data-sap-ui-xx-bindingSyntax="complex"

  data-sap-ui-theme="sap_bluecrystal"

  data-sap-ui-libs="sap.m"

  data-sap-ui-compatVersion="edge"

  data-sap-ui-preload="async"

  data-sap-ui-resourceroots='{

  "opensap.myapp": "./"}'>

  </script>

  <script>

  sap.ui.getCore().attachInit(function () {

  new sap.ui.core.ComponentContainer({

  name : "opensap.myapp"

  }).placeAt("content");

  });

  </script>

  </head>

  <body class="sapUiBody" id="content"></body>

</html>

Please advise how to get rid of this problem. Thanks in advance.


Kind Regards,


-Zia

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi All,

Finally my colleague got the Solution.

By changing the URL from "/sap/bc/ui5_ui5/sap/z_poc_p1_2/" to "/sap/bc/ui5_ui5/sap/z_poc_p1_2/webapp" in LPD_CUST. Although I tried this URL before but it did not work for me.

Anyway thanks a lot Shin !!!

Answers (0)