Expose Your ABAP OData Services with the SAP Cloud Connector
- How to create CDS views
- How to expose CDS views as OData Services
A cloud connector comes pre-installed in the ABAP Developer Edition, so that you can expose what you create to the cloud, especially to SAP Business Technology Platform, where our SAP Conversational AI Enterprise Edition instance resides.
Our chatbot in the SAP Conversational AI Enterprise Edition will want to call the OData services from our CDS views within our ABAP Developer Edition on-premise system (i.e., that is, on our laptop).
- Step 1
Open a command prompt and run the following:ShellCopy
docker exec -it a4h bash
Now run the following:ShellCopy
It may take a few minutes for the cloud connector to start. You will get a message when it starts:
When it is ready, go to the following URL to open the browser interface:
- Step 2
Log into the cloud connector.
Out of the box, the user is
Administratorand password is
manage. You will have to change this after your first login.
- Step 3
You will now specify the SAP BTP subaccount to which you want to expose your on-premise system.
Click Add Subaccount.
Fill out the subaccount details.
You will need the subaccount ID (not name), which you can find on the subaccount Overview page.
You will have to be an administrator in the subaccount.
If you have 2-factor authentication enabled for your SAP ID account, you will have to append your token to your password.
Your subaccount will be added to the left menu.
- Step 4
On the menu, click your subaccount, and then select Cloud to On-Premise.
In the Access Control tab, click the + sign next to Mapping Virtual to Internal System.
Go through the wizard and fill out the following details:
Field Name Value Back-end Type
Fill the other fields with the defaults, and at the end, click Finish.
Select your system mapping, and then click the + sign to add a resource.
Fill in the following:
Field Name Value URL Path
Path and All Sub-Paths
You can make the resource more restrictive.
- Step 5
The cloud connector allows who to access our on-premise service?