Skip to Content

Fiori ODATA Service URL

Dear All,

We have developed a custom Fiori App.

The respective URL that connects to our Developmetn system is like this

http://xx.xx.xx.xx:8000/sap/opu/odata/sap/ZHCM_EMP_MREQ_SRV/requestSet

It is working fine

But, When I transport it to QAS or PRD,  I need to change the port from 8000  to  8002 for QAS, 8004 for PRD.

So, I need to change it in dev system and transport it to appropriate server.

How I can achieve this without doing so, what changes i should put in SAPUI5 so that the base url will automatically picks up

Kindly give me a help/direction.

Regards,

Venkat

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Nov 01, 2015 at 06:04 AM

    var url = "/sap/opu/odata/sap/ZHCM_EMP_MREQ_SRV/requestSet"

    i think this will be enough if i understand you right.

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 01, 2015 at 06:42 AM

    Hi Venkat,

    url =  "sap/opu/odata/sap/ZHCM_EMP_MREQ_SRV/requestSet"


    host and port not need to maintain in UI5 application.


    Normally UI5 application will be deployed on the same gateway system, where Odata service will be registered using (/iwfnd/maint_service) .


    when you run the UI5 application on browser, it automatically call the Odata service hosted on same system.



    Thanks,

    Lakshman Balanagu.




    Add comment
    10|10000 characters needed characters exceeded