SAP OData V4 Connector > Connections for SAP OData V4 > Connect to SAP OData V4
  

Connect to SAP OData V4

Let's configure the SAP OData V4 connection properties to connect to SAP OData V4 services and read from OData V4-compliant applications in SAP.

Before you begin

Before you get started, you'll need to get information from your SAP account to configure the authorization code authentication type.
Check out Prepare for authentication to learn more about the authentication prerequisites.

Connection details

The following table describes the basic connection properties:
Property
Description
Connection Name
Name of the connection.
Each connection name must be unique within the organization. Connection names can contain alphanumeric characters, spaces, and the following special characters: _ . + -,
Maximum length is 255 characters.
Description
Description of the connection. Maximum length is 4000 characters.
Type
SAP OData V4
Runtime Environment
The name of the runtime environment where you want to run tasks.
Select a Secure Agent.
Service Type
The service type of the OData V4 application endpoint to which you want to connect.
When you create a connection, the agent connects to the SAP Datasphere service type of the OData V4 application endpoint.
Default is SAP Datasphere.
Service URL
The service URL for the SAP Datasphere service type.
Enter the service URL in the following format:
https://<Host name of the SAP server>/api/v1/dwc/consumption/relational/<Space name of SAP Datasphere>/<Asset name of SAP Datasphere>/
For example, if you want to connect to the ZALLDATATYPES asset in the INFA_DEV space of SAP Datasphere, enter the following service URL:
https://example.us01.hcs.cloud.sap/api/v1/dwc/consumption/relational/INFA_DEV/ZALLDATATYPES/

Authentication types

Configure the authorization code authentication type to access OData V4-compliant applications in SAP.
Select the authorization code authentication method and then configure the authentication-specific parameters.

Authorization code authentication

Authorization code authentication is the default type which requires at a minimum the SAP client ID, client secret, authorization token URL, access token URL, and access token.
The following table describes the basic connection properties for authorization code authentication:
Property
Description
Authorization Token URL
The SAP authorization token endpoint of the OAuth 2.0 authorization server that is used to authorize the user request.
Enter the authorization token URL in the following format:
https://<Host name of the server>/oauth/authorize
For example, If the host name is example.authentication.us01.hana.ondemand.com, enter the following authorization token URL:
https://example.authentication.us01.hana.ondemand.com/oauth/authorize
Access Token URL
The SAP access token endpoint of the OAuth 2.0 authorization server that is used to exchange the authorization code to get an access token.
Enter the access token URL in the following format:
https://<Host name of the server>/oauth/token
For example, If the host name is example.authentication.us01.hana.ondemand.com, enter the following access token URL:
https://example.authentication.us01.hana.ondemand.com/oauth/token
Client ID
The client identifier of your application generated when you configure the application for OAuth.
Client Secret
The client secret generated for the client ID.
Access Token
The access token granted by the authorization server to access the SAP data.
Enter the populated access token value that you get from the OAuth endpoint, or click Generate Access Token to populate the access token value.