cancel
Showing results for 
Search instead for 
Did you mean: 

Extending HCM People Profile Fiori app

Former Member
0 Kudos

We are trying to extend the standard SAP HCM People Profile app.

We are following the DOCUMENT from SDN.

After creating an Extension project on WebIDE and seeing the following screen and run the application

Instead of the application showing up (as in the document), we are getting a BLANK screen with the following errors in the console.

Any help is appreciated.

- PC

Accepted Solutions (1)

Accepted Solutions (1)

FaizaAnjum
Explorer
0 Kudos

Hello,

This is happening because people Profile app and Employee look up apps are dependent on common lib. So when you try to extend, it is unable to fetch the lib.

To overcome this you need to mention following piece of code in Component.js file.

(function() {

    jQuery.sap.registerModulePath("sap.hcm.lib.common", "/sap/bc/ui5_ui5/sap/hcm_common/sap/hcm/lib/common/");

}());

In the Component.js of the extension project, so that it will look like this:

jQuery.sap.declare("hcm.people.profile.HCM_PEP_PROFILEExtension.Component");

(function() {

    jQuery.sap.registerModulePath("sap.hcm.lib.common", "/sap/bc/ui5_ui5/sap/hcm_common/sap/hcm/lib/common/");

}());

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

sap.ui.component.load({..... etc

....

We have to specifically mention the location of common file. Hope this helps.

Kind Regards,

Faiza

Former Member
0 Kudos

Thank you for your help Faiza. Now I am able to run extension project on Web IDE.

-PC

0 Kudos

Hi,

In order for the library to be accessible you also have to make sure "/sap/bc/ui5_ui5/sap/hcm_common" node is activated in SICF.

(Do not look for the the full library path "/sap/bc/ui5_ui5/sap/hcm_common/sap/hcm/lib/common/" in SICF.

Best regards,

Sandor

Answers (1)

Answers (1)

maartenf
Participant
0 Kudos

Hi,

Are you able to run the standard Fiori app from the WEB IDE?

Best regards,

Maarten