Matthijs Mennens
Matthijs Mennens

Reputation: 1145

Extending S/4HANA OData service to SCP

I want to extend a custom OData service created in a S/4HANA system. I added a Cloud Connector to my machine, but I don't know how to go from there. The idea is that I want people to access the service from SCP and that I don't need multiple accounts accessing the service on the S/4 system, but just the one coming from SCP. Any ideas?

Upvotes: 0

Views: 371

Answers (1)

Jorg
Jorg

Reputation: 7250

Ok I feel silly doing this but it seems to work. My test is actually inconclusive because I don't have a cloud connector handy, but it works proxy-ing google.

I'm still thinking about how to make it publicly accessible. There might be people with better answers than this.

  1. create the cloud connector destination.
  2. make a new folder in webide
  3. create file neo-app.json.

content:

{
    "routes": [{
        "path": "/google",
        "target": {
            "type": "destination",
            "name": "google"
        },
        "description": "google"
    }],
    "sendWelcomeFileRedirect": false
}

path is the proxy in your app, so myapp.scp-account/google here. the target name is your destination. I called it just google, you'll put your cloud connector destination.

  1. Deploy.

My test app with destination google going to https://www.google.com came out looking like this. Paths are relative so it doesn't work but google seems proxied.

You'll still have to authenticate etc.

enter image description here

enter image description here

Upvotes: 1

Related Questions