Skip to Content
avatar image
Former Member

Extending HCM People Profile Fiori app

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

c1.JPG (28.1 kB)
c2.JPG (73.7 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Oct 16, 2015 at 06:39 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 11, 2015 at 11:19 AM

    Hi,

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

    Best regards,

    Maarten

    Add comment
    10|10000 characters needed characters exceeded