Quantcast
Channel: SCN : Discussion List - SAP for Mobile
Viewing all articles
Browse latest Browse all 5806

Extending Fiori PO Approval standard app

$
0
0


Hello All ,

 

We are trying to extend a wave 2 app .  Did the following

 

1)  Downloaded the PO approval from ECC and created a project in Eclipse

     UI5_MM_PO_APVL).

2) Tested it by launching it in the sandbox . It works fine .

3) Created an extension project UI5_MM_PO_APVLExtension for the above parent application .

4) Made changes to component.js of extn project specifying the parent URL .

     However , the extension app does not work .

 

When debugged in Chrome , we are basically getting the below error .

 

Uncaught Error: failed to load 'sap/mm/purchaseorder/approve/uilib/UI5_MM_PO_APVLExtension/Component.js' from ./Component.js: Error: failed to load 'sap/mm/purchaseorder/approve/uilib/Component.js' from ./../UI5_MM_PO_APVL/Component.js: 404 - Not Foundsap-ui-core.js:80

 

Basically we want to know whenever an extension project is launched , how does the content of the parent project's component load ?

 

Details of Component.js .

 

jQuery.sap.declare("sap.mm.purchaseorder.approve.uilib.UI5_MM_PO_APVLExtension.Component");

// use the load function for getting the optimized preload file if present
sap.ui.component.load({
name: "sap.mm.purchaseorder.approve.uilib", 
url: jQuery.sap.getModulePath("sap.mm.purchaseorder.approve.uilib.UI5_MM_PO_APVLExtension") + "/../UI5_MM_PO_APVL" // provide parent project url
// we use a URL relative to our own component; might be different if
// extension app is deployed with customer namespace
});

sap.mm.purchaseorder.approve.uilib.Component.extend("sap.mm.purchaseorder.approve.uilib.UI5_MM_PO_APVLExtension.Component", {
metadata: {
  version : "1.0",
  config : {
   "sap.ca.i18Nconfigs": {
    "bundleName":"sap.mm.purchaseorder.approve.uilib.UI5_MM_PO_APVLExtension.i18n.i18n"
   },
  
  },
 
  customizing: {
  }  
}
});

 

Any help in fixing the above issue would be helpful !!

 

Thanks

Abhishek

 

Tags edited by: Michael Appleby [also moved to SAP for Mobile community]

 

Message was edited by: Michael Appleby


Viewing all articles
Browse latest Browse all 5806

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>