on 09-10-2020 1:09 PM
Hi ptharsos,
Have you read this blog?
In your xs-app.json, the route would look like below.
{
"source": "^/SF_PROXY",
"destination": sap_hcmcloud_core_odata,
"authenticationType": "none",
"csrfProtection": false
}
And the OData URL would be simply:
"/SF_PROXY"
Regards,
Mio
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ptharsos,
Also try this.
{
"source": "^/SF_PROXY/(.*)$",
"target": "$1",
"destination": sap_hcmcloud_core_odata,
"authenticationType": "none",
"csrfProtection": false
}
Plus, specify OData service name when creating an OData Model.
new sap.ui.model.odata.v2.ODataModel("/SF_PROXY/<OData service name>", ...)
"/SF_PROXY" will be replaced by the destination and the actual call will be like below.
https://<host>/odata/v2/<OData service name>/...
Regards,
Mio
@mioyasutake, BAS does not have a well-defined way of importing applications developed into the NEO environment. I've been trying for weeks to migrate a single application to BAS and every hour an extra difficulty appears. The BAS environment is not a modern and easy thing. It seems to me much easier to use the NEO environment that apparently presents less problems to the developer. These SAP environments are very complex and greatly decrease development productivity even with all built-in facilities.
Also the official Migration guide can be helpful:
https://help.sap.com/viewer/b98f42a4d2cd40a9a3095e9f0492b465/Cloud/en-US
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Finally i resolved this MIGRATION using this configutarions:
in destination:
in xs-app.json:
in manifest.json:
The code was copied from https://github.com/ptharso/talentsview_bas
Thanks to @mioyasutake and @yuval.morad that help me in some points.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Paulo,
Has your issue resolved?
Otherwise, let me answer some of your questions.
1. where can i get the <OData service name>?
If you can access "user" entity with the following url, then <OData service name> is not required.
https://<hostname>/odata/v2/user
I thought there would be a service name before entity name as below.
https://<hostname>/odata/v2/<service name>/user
2. Route references unkown destination "sfc" error
When you create a run configuration, a file named '.env + number' (such as .env1) is created.
The error may indicate that your .env file is still holding old configuration for "sap_hcmcloud_core_odata".
Try removing the .env file and re-create run configuration.
Regards,
Mio
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mio, thanks for your attention....nothing resolved yet
First, i can access the https://apisalesdemo8.successfactors.com/odata/v2/User and $metadata normally by browser.
Second, the original NEO code is this https://github.com/ptharso/talentsview and i´m trying to migrate to CF but i cannot yet.
The actual code is this but dont works https://github.com/ptharso/talentsview_bascf .. i changed somethings like names of destination.
I deleted all .env and vscode (a lot) and tried to renew the RUN configuration but dont appears the destination list in the box of SAP services.
I think that is not possible to be so complicated.
Your help is a great thing to me.
Hi Paulo,
I would recommend creating a new project (simple one) in Business Application Studio from scratch.
Just showing a list of users would be enough. You can find instructions below.
When you look at the generated project, you'd see how manifest.json and xs-app.json should be configured.
Regards,
Mio
User | Count |
---|---|
87 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.