Skip to Content
avatar image
Former Member

/resources/sap/cus/crm/lib/reuse/library.js 404 (Not Found) when running the extended application

Case 1:  removing the "/  " to   "resources/sap-ui-core.js"  in index.htm file of the extened application

<script id="sap-ui-bootstrap"

  src="resources/sap-ui-core.js"

  data-sap-ui-preload=""

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

  data-sap-ui-theme="sap_bluecrystal"

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

  data-sap-ui-compatVersion="1.16"

  data-sap-ui-resourceroots='{"cus.crm.opportunity.CRM_OPPRTNTYExtension1": "./"}'>

</script>

Case 2: added  " ../ to   resources/sap-ui-core.js"  in index.htm file of the extened application

<script id="sap-ui-bootstrap"

  src="../resources/sap-ui-core.js"

  data-sap-ui-preload=""

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

  data-sap-ui-theme="sap_bluecrystal"

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

  data-sap-ui-compatVersion="1.16"

  data-sap-ui-resourceroots='{"cus.crm.opportunity.CRM_OPPRTNTYExtension1": "./"}'>

</script>

Any solution on how to resolve this ??...

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Oct 29, 2015 at 10:09 AM
    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hello Prashanth.

      Try the following 

      In Component.js of the extension app, the function below :

      jQuery.sap.require("cus.crm.opportunity.CRM_OPPRTNTYExtension.util.Formatter");

      jQuery.sap.declare("cus.crm.opportunity.CRM_OPPRTNTYExtension.Component");

      (function() {

        jQuery.sap.registerModulePath("sap.cus.crm.lib.reuse", "/sap/bc/ui5_ui5/sap/crm_lib_reuse/sap/cus/crm/lib/reuse");

      }());

      // use the load function for getting the optimized preload file if present

      sap.ui.component.load({

        name: "cus.crm.opportunity",

        // Use the below URL to run the extended application when SAP-delivered application is deployed on SAPUI5 ABAP Repository

        url: "/sap/bc/ui5_ui5/sap/CRM_OPPRTNTY"

        // we use a URL relative to our own component

        // extension application is deployed with customer namespace

      });

      best regards

      Emmanuel

  • avatar image
    Former Member
    Feb 08, 2016 at 06:47 PM

    This message was moderated.

    Add comment
    10|10000 characters needed characters exceeded