cancel
Showing results for 
Search instead for 
Did you mean: 

Extending a SAP Fiori App service url

Former Member
0 Kudos

Hi experts,

I would like to extend/modify the Fiori paystub app service url. Therefore I changed the metadataUrl variable in the Service.js from


if(jQuery.sap.getUriParameters().get("local")){this.metadataUrl="sap/opu/odata/sap/SRA006_SRV"

}else{this.metadataUrl="/sap/opu/odata/sap/SRA006_SRV"

to


if(jQuery.sap.getUriParameters().get("local")){this.metadataUrl="http://myserver.otherhost.com/sap/opu/odata/sap/SRA006_SRV"

}else{this.metadataUrl="http://myserver.otherhost.com/sap/opu/odata/sap/SRA006_SRV"

The changed Service.js file is successfully loaded to the browser (confirmed with browser dev tools), so the old file is not cached.

But the pdfs are still requested from


http://server.applicationRunsOn.com/sap/opu/odata/sap/SRA006_SRV/PDFPayslips(12)/$value

instead of


http://myserver.otherhost.com/sap/opu/odata/sap/SRA006_SRV/PDFPayslips(12)/$value

Any hints, what is missing here?

Thank you!

Tags edited by: Michael Appleby

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos


Hi,

I had the same issue, Did you manage to get any answer for this why the it picks up the gateway server name  ?

Thanks Uma.