avatar image
Former Member

Extension of Request Supplier FIori App

Hi,

I am starting setting up the Extension of Standard Fiori app i.e "Request Supplier" Fiori App.

The Following Steps which i had done

1.Created a appconfig Dynamic Web project and created a fioriSandboxConfig.json file and written the below code

{ "applications" : { "MDG_REQ_SUPPL-display" : { "additionalInformation" : "SAPUI5.Component=fcg.mdg.requestsupplier", "applicationType" : "URL", "url" : "/MDG_REQ_SUPPL", "description" : "Request Supplier" } } }

2)In the se38 in ABAP i had downloaded the code of Request Supplier FIori App

3)created SAPUi5 project and copied and pasted the code which i had downloaded from SAP

4)In the Configuration.js i had changed the ServiceUrl as below

serviceUrl : "/mdg_req_suppl/proxy/sap/opu/odata/sap/mdg_supplier_srv",

5)In the web.xml and i had added the code

com.sap.ui5.proxy.REMOTE_LOCATION http://s4heyia1.ey.com:8000

6) Now the Request Supplier FIori App is displaying in the FIori Launchpad and when i click on the Tile and i am getting the below error message.

When i click on the Request Supplier Fiori App and i am getting the error message "Could not open App' and in the log i am getting the below error message "Failed to load UI5 component with properties '{"componentData":{"startupParameters":{}},"asyncHints":{"waitFor":[]},"name":"fcg.mdg.requestsupplier","url":"/MDG_REQ_SUPPL","async":true,"id":"application-MDG_REQ_SUPPL-display-component"}'. - Error: failed to load 'sap/fcg/mdg/lib/bp/library.js' from ../../../../../resources/sap/fcg/mdg/lib/bp/library.js: 404 - Not Found"

Failed to load U5 component for navigation intent #MDG_REQ_SUPPL-display - Error: failed to load 'sap/fcg/mdg/lib/bp/library.js' from ../../../../../resources/sap/fcg/mdg/lib/bp/library.js: 404 - Not Found sap.ushell.renderers.fiori2.Shell.controller

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • avatar image
    Former Member
    Jun 21, 2017 at 05:03 PM

    Hello Durga,

    Did you find any resolution of the issue, Even I too facing same issue while importing standard application (MDG_REQ_SUPPL) into WebIDE after running the application using the run configuration as SAP Fiori Content Sandbox . Some libraries missing which is dependent (MDG_LIB_BP) . If you shot it out please answer the query. It would be great help to me. thanks for your help in advance.

    BR//

    CBR

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 21, 2017 at 05:03 PM

    Hello Durga,

    Did you find any resolution of the issue, Even I too facing same issue while importing standard application (MDG_REQ_SUPPL) into WebIDE after running the application using the run configuration as SAP Fiori Content Sandbox . Some libraries missing which is dependent (MDG_LIB_BP) . If you shot it out please answer the query. It would be great help to me. thanks for your help in advance.

    BR//

    CBR

    Add comment
    10|10000 characters needed characters exceeded

  • Jun 22, 2017 at 02:17 AM

    It is not able to find the library file - sap/fcg/mdg/lib/bp/library.js

    You may have used relative URL in the index.html. Try to use the absolute url for the library.js file and it should work.

    Regards,

    Sharath

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 26, 2017 at 01:58 PM

    Hello Sharath,

    Thanks for the reply.

    In standard import application I could not find out the index.html file in application folder structure. I have checked the component.js where the code written to find out the library which is dependent.

    **** peace of code ****

    jQuery.sap.require("fcg.mdg.requestsupplier.Configuration");

    (function() { var p = jQuery.sap.getModulePath("fcg.mdg.requestsupplier");

    if (p.indexOf("/ui5_ui5/") !== -1)

    { var i = p.indexOf("/ui5_ui5/");

    p = p.slice(0, i + 8);

    p += "/sap/MDG_LIB_BP/sap/fcg/mdg/lib/bp";

    jQuery.sap.registerModulePath("sap.fcg.mdg.lib.bp", p);

    } }());

    *********** code end ************

    Could you review the same and help me out please.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 07, 2017 at 05:04 AM

    Hello Experts,

    Issue is resolved after maintaining URL parameters under run configuration Tab.

    Add comment
    10|10000 characters needed characters exceeded

Skip to Content