Skip to Content

403 Error in accessing Gateway oData using Cloud Platform Destination in SAPUI5

Hi All

I have this UI5 App which is deployed on Cloud Platform, which will access oData service from a backend Gateway System. For this, a destination has been created. For accessing the Service, I have defined the models and path as follows

manifest.json

-------

"dataSources": {
"RGT_INSPRES_SRV": {
"uri": "destinations/gateway/sap/opu/odata/<odata_service>",
"type": "OData",
"settings": {
"odataVersion": "2.0",
"localUri": "localService/metadata.xml"
}
}
}

The Path entry in the neo-app.json

 {
      "path": "destinations",
      "target": {
        "type": "destination",
        "name": "gateway",
        "entryPath": "/sap/opu/odata"
      },
      "description": "<<someDescription>>"
    }

Accessing the App after a fresh deployment gives 403 error on the metadata

Any inputs what could be wrong here?

Thanks

Sandip

error.jpg (61.3 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Jun 12, 2017 at 07:54 AM

    Hello Sandip,

    I am afraid your your path entry in neo-app.json does not look right.

    If you were new to SAPUI5, I would suggest that you build an SAPUI5 application from one of the templates and examine the neo-app.json it creates. This will give you an isight how to confugure your own.

    Very best regards

    Farnk

    Add comment
    10|10000 characters needed characters exceeded

  • Jun 12, 2017 at 06:46 PM

    Hi Sandip,

    Please try updating your manifest.json as below :

    "dataSources": {
    			"GWSAMPLE_BASIC": {
    				"uri": "/es4/sap/opu/odata/IWBEP/GWSAMPLE_BASIC/",
    				"type": "OData",
    				"settings": {
    					"odataVersion": "2.0",
    					"localUri": "localService/metadata.xml",
    					"annotations": []
    				}
    			}
    		}
    

    In Uri parameter put '/' at end.

    Thanks-

    Abhishek

    Add comment
    10|10000 characters needed characters exceeded

  • Jun 14, 2017 at 10:20 AM

    Hello Frank, Abhishek

    The path mentioned in the neo-app wasn't right. Now it works fine.

    {"path": "/sap/opu/odata","target": {"type": "destination","name": "gateway","entryPath": "/sap/opu/odata"},"description": "<<someDescription>>"}
    

    Thanks

    Sandip

    Add comment
    10|10000 characters needed characters exceeded