Skip to Content

Consume OData with eclipse and RFC comunication between servers

Hello community,

i need some help, i have my odata service already running and i have de url https://myclient:port/sap/opu/odata/SAP/servicename_SRV/MaterialListSet

so in eclipse to consume my odata in my manifest.json

"dataSources": {
   "invoiceRemote": {
      "uri": "https://myclient:port/sap/opu/odata/SAP/servicename_SRV/",
      "type": "OData",
      "settings": {
	  "odataVersion": "2.0"
"models": {
   "invoice": {
      "dataSource": "invoiceRemote"

it it ok this config???? be cause i'm getting this two errors:

Failed to load resource: the server responded with a status of 401 (Unauthorized)


Failed to load https://client:port/sap/opu/odata/SAP/odata_SRV/$metadata?sap-language=ES: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:port' is therefore not allowed access. The response had HTTP status code 401.


i solved las problem with
[here-your-path-to-chrome-installation-dir]\chrome.exe --disable-web-security --user-data-dir


after that iwas getting an error of url be cause i was calling the entity not the entitySet but right now i'm checking be cause in my rfc fetch material and type material but in my program comes 0000 and when exceute the rfc i debuged and it's 'VEHI' the types os my structure it's ok, but i don't know what can be

and my other part of this ask it's: i created and rfc in my backend and my odata service through segw but very simple and what if i pass some parameter or for exmaple a material this material it's catch in my odata and should i pass it to the rfc ????

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers