Skip to Content
0

SAP Cloud platform Web IDE Project

Apr 07 at 08:07 AM

53

avatar image

hi,

I imported the project ES4SalesOrders.zip into the cloud Web IDE (trial)

as the ES4 is shut down and ES5 is active, how I change the destination in this file ?

I already checked the neo-app.json but it didn't help.

Pls see attached.

-bhakti.

neo-app.json has below code, I replaced ES4 with ES5.

{
"authenticationMethod": "none",
"routes": [
{
"path": "/webapp/resources",
"target": {
"type": "service",
"name": "sapui5",
"entryPath": "/resources"
},
"description": "SAPUI5 Resources"
},
{
"path": "/webapp/test-resources",
"target": {
"type": "service",
"name": "sapui5",
"entryPath": "/test-resources"
},
"description": "SAPUI5 Test Resources"
},
{
"path": "/resources",
"target": {
"type": "service",
"name": "sapui5",
"entryPath": "/resources"
},
"description": "SAPUI5 Resources"
},
{
"path": "/test-resources",
"target": {
"type": "service",
"name": "sapui5",
"entryPath": "/test-resources"
},
"description": "SAPUI5 Test Resources"
},
{
"path": "/sap/opu/odata",
"target": {
"type": "destination",
"name": "ES5",
"entryPath": "/sap/opu/odata"
},
"description": "ES5"
},
{
"path": "/sap/opu/odata/sap/ZTG_TEST_SRV",
"target": {
"type": "destination",
"name": "ES5",
"entryPath": "/sap/opu/odata/sap/ZTG_TEST_SRV"
},
"description": "ES5"
},
{
"path": "/destinations/northwind",
"target": {
"type": "destination",
"name": "northwind"
},
"description": "northwind"
}
],
"cacheControl": [
{
"directive": "public",
"maxAge": 0
}
]
}

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

2 Answers

Michal Keidar
Apr 07 at 12:50 PM
0

You should make sure the manifest.json file is also adjusted.

Show 11 Share
10 |10000 characters needed characters left characters exceeded

Hello Michal

how do I access the manifest.json file ? my project does not have it.

t2kmp.png (64.5 kB)
0

Have you checked in the 'webapp' folder?

0

Hi Michal, I couldn't find the destination ES4 or the url anywhere so I simple changed the names , I replaced es4 with es5 everywhere in the code. The error has changed now . does it mean that it has connected to ES5 but it didn't find the application there? probably because my profile file was meant to be run in ES4 ?

cojbg.png (55.6 kB)
0

I saw the manifest.json file. I cannot see where is the url https://sapes4.sapdevcenter.com

what should I change ?

thanks,

bhakti.

0

Hi, there will be no full url to the system in your app... This is what destinations are for, to avoid CORS.

In the manifest you should change the service name (or full path) if it's different in ES5.

If not then there nothing to change other than the destination name in the neo-app.json.

You should verify the service you're using indeed exists in ES5.

0

Hello Michal, I got this project from open sap training for SCP. I am trying on very elementary level. is there any place I can get an example project file for ES5 ?

I have created the destination for ES5 in my Web IDE with correct url. how do I know what is the service name or full path in ES5? How do I verify the service exists in ES5 or not .

thanks for your help.

bhakti.

0

You can create a new project from template and select the Fiori Master-Detail for example, then in the next step you need to select the service, so choose the ES5 system and you will see all its services. Select a service and bind the UI to its properties. Then you will have a working app against a service from ES5.

0

Hello Michal,

I tried in the SAP Web IDE, I followed your steps. I got stuck at data binding. how do I know what to give in databinding ? if you know of any blog with step by step method it would be a great help!

thanks a lot

bhakti.

0

Hi,

It is your choice which property to bind to which field. There's no right or wrong here.. Select the service you want, then the entity-set you want, and bind the fields you want.

Regards,
Michal.

0

thanks Michal, ill try.

0

hi Michal, thanks a lot. Actually i could not manage it alone and i found a friend who helped me in person. So this time i got lucky.

thanks for your help.

0
Boris Tsirulnik
Apr 08 at 10:29 AM
0

Make sure you also maintain a destination named ES5 which is pointing to the ES5 system.

This is done from the CP cockpit.

You have references to this destination in your neo-app.json.

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Hello, I did both the things. but I was not able to make it work. probably these services might not be existing in ES5.

thanks

bhakti.

0