UX Extension: Part 2-Exposing API to SCP
In This Part
In this part, we are going to setup SAP Cloud Connector on the back-end server to connect to SCP and create a new Destination on SCP to allow connection from SCP to back-end.
SAP Cloud Connector Check
Note: Even you already SCC installed but it is likely an old version. I recommend to follow these steps anyway:
- Download SAP Cloud Connector (Linux)
- Transfer ZIP to Linux VM using psftp (installed with PuTTY).
- Use command
sudo unzip sapcc-XXX-linux-x64.zip(replace placeholder
XXXwith the given release version, e.g.
184.108.40.206) to unzip the file.
- Then use
sudo rpm -i --force com.sap.scc-ui-XXX.x86_64.rpmand wait until the installation finished.
- Use command
sudo service scc_daemon statusand you should see the SAP Cloud Connector is started
scc_daemon.service — LSB: LJS Daemon
Loaded: loaded (/etc/init.d/scc_daemon)
Active: active (exited) since Wed 2017–05–03 12:56:03 UTC; 1h 46min ago
Process: 1525 ExecStart=/etc/init.d/scc_daemon start (code=exited, status=0/SUCCESS)
May 03 12:56:01 sid-npl scc_daemon: Starting scc_Daemon
May 03 12:56:02 sid-npl su: (to sccadmin) root on none
May 03 12:56:03 sid-npl su: pam_unix(su:session): session opened for user sccadmin by (uid=0)
May 03 12:56:03 sid-npl scc_daemon: scc_Daemon started.
May 03 12:56:03 sid-npl systemd: Started LSB: LJS Daemon.
May 03 12:56:11 sid-npl scc_daemon: osgi>
May 03 12:56:33 sid-npl scc_daemon: osgi> SAP HANA Cloud Connector 2.7.2 started on https://localhost:8443 (instance role is undefined)
Connect SCC to SCP
- Go to https://vhcalnplci.dummy.nodomain:8443/
- Login with username
- Select Master (Primary Installation) and change password
- Select Landscape Host to
- Input you Account Name e.g. p1942128127trial
- Input Display Name for your reference in SCP
- Input your Account User e.g. P1942128127 and password
- After connect, you should see the connection is working
Check the connection on SCP at Connectivity → Cloud Connectors
Add Access to Back-end System
- On SCC Admin Console, go to Cloud To On-Premise
- Click + to Add System Mapping
- Select ABAP System
- Protocol HTTPS
- Local Host:
- Input Virtual Host and Port as you want. (This is to hide back-end technical detail from the cloud for security reasons)
- Click + to Add Resource
- Input URL Path
Path and all sub-pathsand Save. This allows access to all resources from the cloud.
Go back to SCP and now you should see the back-end system you’ve just exposed.
Create HTTP Destination on SCP
- On SCP, go to Connectivity → Destination
- Click New Destination
- Input the following:
S/4HANA HTTP APIURL:
- Input back-end’s user/password
- Add two additional properties:
- Click Check Connection and you should see this:
Test OData Service in Web IDE
- Go to New → Project from Template
- Select List Report Application
- Enter Project Name
- In Service Catalog, select
S/4HANA HTTP APIand input back-end username and password
- You should see the list of all available services. Search for
PRODand select EPM_REF_APPS_PROD_MAN_SRV. You will see the Products entity like you see on the back-end.