cancel
Showing results for 
Search instead for 
Did you mean: 

Extending Fiori PO Approval standard app

former_member195698
Active Contributor
0 Kudos
515


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 Found sap-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

View Entire Topic
former_member253524
Participant
0 Kudos

Hello Abhishek,

Are you able to resolve your issue?