Skip to Content

Connecting SAPUI5 app deployed in Fiori FES to OData service in ECC Backend.

Hi all,

I have developed a SAPUI5 app using eclipse tools for such development. The tricky part is connecting from Fiori launchpad app to the backend Odata service (which is on a different server than the fiori, another SAP system).

To work on the project, the resource in web.xml (com.sap.ui5.proxy.SimpleProxyServlet) and the config of the proxy's remote location works. As the proxy is intended for local development, this won't work when the app is deployed in Fiori Launchpad. If the app is deployed with proxy configs in the model's URI, it only concatenates /proxy/ to the requisiton in the fiori FES.

I've been wondering if there is anyway to config this connection based on some RFC connection between abap systems (as defined in SM59) from the app in order to call the remote OData. I have seen in some other questions/sites that using SAP WEB-IDE this is acheivable using the neo-app.json (https://answers.sap.com/questions/149001/odata-sapui5.html https://answers.sap.com/questions/632135/add-backend-odata-service-to-frontend-server.html are some related links), but I didn't come across to something similar using eclipse. In this neo-app.json it is even possible to pass credentials to login on the remote server (if no trusted connections or something similar is used in SM59)

Does anybody have already faced this situation? Any pointers will be Greatly appreciated.

Kind Regards,

Erick.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

4 Answers

  • Best Answer
    Apr 11 at 12:59 PM

    even if you want to call odata service exposed in different server, the configuration is done at web dispatcher, your ui5 app(abap server case) don't need to do anything.

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 10 at 05:27 PM

    Hi Erick Simas Grilo,

    You define proxy setting in eclipse and neo-appjson in webide for testing purpose (on premise).

    For SAP gateway(Fiori) to communicate with the backend(ECC or CRM or other SAP systems), SAP defined a very nice process for this using the system alias. For this you need to have trusted connection established between the systems and users to have the required roles. Then you need to register the backend odata service in the gateway system and use that odata service in your project

    YOu can find details in the SAP help, notes and blogs about this.

    https://help.sap.com/saphelp_gateway20sp12/helpdata/en/a7/032722533541109b77a34bb23c6978/frameset.htm

    https://blogs.sap.com/2013/05/14/quick-starter-configuration-guide-sap-gateway/

    https://blogs.sap.com/2013/05/31/how-to-maintain-sap-system-alias-entries-in-productive-systems/

    Best Regards,

    Mahesh

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 10 at 10:30 PM

    web.xml is just for testing in eclipse, means nothing when deployed to abap server.

    odata service and ui5 app are in the same server, you don't have to do anything

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 11 at 12:53 PM

    if I am not wrong, sap recommend embedded deployment now.

    Add comment
    10|10000 characters needed characters exceeded