Hi Ritesh,
Following are the steps I followed in extending a Fiori App.
I am trying to extend HCM_LR_APV(Approve Leave request ) app.
So I downloaded HCM_LR_APV BSP Application.
I uploaded in Eclipse IDE .I created an Extension Project(ZHCM_LR_APV) for this.
For testing I tried to change the Icon in one of the view.
So I replaced the S3 view by placing the Original Code same and changing the Icon only.
In Component.js file I gave the path to the parent application in Load function.See the below code for your reference.
jQuery.sap.declare("hcm.mgr.approve.leaverequests.CUST_HCM_LR_APV_EXT.Component");
sap.ui.component.load({
name: "hcm.mgr.approve.leaverequests",
url:"/sap/bc/ui5_ui5/sap/hcm_lr_apv",
});
hcm.mgr.approve.leaverequests.Component.extend("hcm.mgr.approve.leaverequests.CUST_HCM_LR_APV_EXT.Component", {
metadata: {
version : "1.0",
config : {
"sap.ca.i18Nconfigs": {
"bundleName":"hcm.mgr.approve.leaverequests.CUST_HCM_LR_APV_EXT.i18n.i18n"
},
},
customizing: {
"sap.ui.viewReplacements": {
"hcm.mgr.approve.leaverequests.view.S3": {
viewName: "hcm.mgr.approve.leaverequests.CUST_HCM_LR_APV_EXT.view.S3Custom",
type: "XML",
},
},
}
}
});
Then I submitted the changes and tested the Custom BSP Application.But I am getting the error as below
Error Message:
Failed to load resource: the server responded with a status of 404 (NOT FOUND)http://sapfiorisrvr.domain.com:portno/sap/bc/ui5_ui5/sap/zhcm_lr_apv_ext/Component-preload.js
Thanks&Regards,
Akhil Das