cancel
Showing results for 
Search instead for 
Did you mean: 

Fiori ODATA Service URL

venkateswaran_k
Active Contributor
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

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

Answers (1)

Answers (1)

former_member185875
Contributor
0 Kudos

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.