Skip to Content
0

Data is not shown after deploy webIDE project to SAPUI5 ABAP repository

Jul 19, 2017 at 08:30 AM

71

avatar image

Dear experts,

I've developed fiori like application using webIDE, and it's working fine while testing using Run->index.html or Run->Component.js.

But after deploying to SAPUI5 ABAP repository no data is displayed also metadata file is not loaded in network tab in developer tools.

So I suspect it's something wrong with the destination in neo-app or manifest.

here is my code

neo-app.json

"routes": [
    ...
   {
      "path": "/destination/dest1",
      "target": {
        "type": "destination",
        "name": "dest1"
      },
      "description": "alnasser OData Service"
    }
  ],

manifest.json

"sap.app": {
        ...
	"dataSources": {
	"test": {
	"uri": "/destination/dest1/sap/opu/odata/sap/ZPAYMENT_REQ_SRV",
	"type": "OData"}
		}
},
...
"models": {
	"i18n": {
	"type": "sap.ui.model.resource.ResourceModel",
	"settings": {
		"bundleName": "PayTestPayTest.i18n.i18n"}
	},
	"": {
		"dataSource": "test"
	}
},

Regards

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
saurabh vakil Jul 19, 2017 at 08:43 AM
0

Before deploying the app to the ABAP Repository on your front end system, remove the reference to the destination in the service URL in the manifest.json file. The gateway system does not know anything about the destination you create on the Cloud Platform. This is only required to run the app in Web IDE.

Replace

"uri": "/destination/dest1/sap/opu/odata/sap/ZPAYMENT_REQ_SRV",

with

"uri": "/sap/opu/odata/sap/ZPAYMENT_REQ_SRV",
Show 1 Share
10 |10000 characters needed characters left characters exceeded

Thank you for your answer.

this solution worked. and I also found the SAPUI5 version is 1.23.0 in ABAP repository. so it needed some modifications on referenced liberaryies

0