SAP S/4HANA Cloud
Visier can retrieve data through this connector if the following requirements are met.
Overview
Visier connects to SAP S/4HANA Cloud through its Open Data Protocol (OData) APIs. The connector discovers and extracts OData V2 and OData V4 services. SAP exposes these services through separate catalogs. The services available to you depend on your SAP release, communication arrangements, and permissions. SAP screen labels and communication scenarios vary by S/4HANA Cloud release and tenant. Work with an SAP administrator to confirm the scenarios and authentication methods in your system.
Prerequisites
Before you create the connector in Visier, ask an SAP administrator to do the following:
- Create a communication user and business user.
- Grant the business user the required business catalogs, read permissions, and business roles.
- Configure OAuth 2.0 identity provider settings and the signing certificate.
- Create a communication system to represent Visier.
- Create and activate communication arrangements for catalog discovery and each business API you need.
- Allow network and data traffic between Visier and your source system. For more information, see Allow Visier Connections.
Create integration users
The connector uses a communication user and a business user.
|
SAP identity |
Purpose |
Instructions |
|---|---|---|
|
Communication user |
Authenticates catalog discovery and the OAuth client at the token endpoint. |
In Maintain Communication Users, create a user. Set a password, store it securely, and confirm the account is valid and unlocked. |
|
Business user |
Acts as the identity named in the signed SAML assertion. SAP issues an access token on behalf of this user. Its roles and restrictions determine which metadata and data Visier can read. |
Create or select a user through your organization's SAP provisioning and licensing process. Don't use an administrator's personal account. An administrator role doesn't necessarily include every business catalog that the APIs require. Visier doesn't need this user's password. |
Configure the OAuth 2.0 client application
In SAP, register an OAuth 2.0 client application. The Visier connector credential uses OAuth 2.0 SAML Bearer authentication. The communication system trusts a public X.509 certificate. Visier signs a SAML assertion with the matching private key to request an access token for the integration business user.
Generate the X.509 certificate
Generate an unencrypted RSA private key and a matching self-signed X.509 certificate in PEM format. In the following sample command, OpenSSL creates a 2048-bit key and a certificate that is valid for 365 days.
openssl req -keyout private.pem -out public.pem -x509 -sha256 -nodes \
-days 365 -newkey rsa:2048 \
-subj "/CN=visier-s4-connector/O=Visier"
The command generates the following files:
- private.pem: The private X.509 signing key. Keep it confidential. Enter its complete contents only in the Visier connector credential.
- public.pem: The public X.509 certificate. Upload its complete contents to the SAP communication system. This is a signing certificate, not a Transport Layer Security (TLS) client certificate or a certificate signing request.
Record the certificate expiry date. Before the certificate expires, replace the certificate that SAP trusts and the matching certificate values in Visier at the same time.
Create a communication system
- In SAP, open Communication Systems.
- Navigate to Technical Data > General, and then select Inbound Only. Visier sends OData requests to SAP, so you don't need outbound communication.
Note: The Inbound Only option is in the General section, not the OAuth 2.0 settings.
- Under Users for Inbound Communication, add the communication user and configure User ID and Password authentication.
- Turn on OAuth 2.0 Identity Provider, and then upload public.pem as the signing certificate.
- In OAuth 2.0 SAML Issuer, type an identifier such as visier-s4-connector. Record it exactly because you need it for the Visier connector credential.
- Set User ID Mapping Mode to User Name.
- Save the communication system.
You don't need the separate SAML Bearer Assertion Provider and OpenID Connect Provider options for this OAuth token exchange configuration.
Create catalog discovery arrangements
Create and activate the catalog communication arrangements that link to the Visier communication system. The connector needs these arrangements to discover the OData services and tables available for extraction. Use the following scenarios for the catalogs in your tenant:
- SAP_COM_0449: Custom Services for Citizen Integration/Custom Services for Integration. Exposes the OData V2 catalog.
- SAP_COM_0181: OData Metadata Integration. Exposes the OData V4 catalog.
For each scenario, select the communication user's User ID and Password inbound authentication entry. Then, save or activate the arrangement. An unsaved draft isn't sufficient. Scenario names and availability vary by tenant and release.
The connector calls the following catalog endpoints. Replace {api-host} with the API host that your SAP administrator provides. Include any client parameters that your system requires.
- https://{api-host}/sap/opu/odata/IWFND/CATALOGSERVICE;v=2/ServiceCollection
- https://{api-host}/sap/opu/odata4/iwfnd/config/default/iwfnd/catalog/0002/ServiceGroups
Visier follows catalog paging and uses the service locations that SAP returns. You don't enter individual API URLs in the credential.
Configure business APIs
Complete the following steps for each business API that you plan to extract.
Set the communication arrangements
Each business API you'll extract through the data connector must use the Visier communication system you made in Create a communication system.
- Find the API's communication scenario, and then create or update its communication arrangement.
- Select the Visier communication system.
- If the scenario supports OAuth, select the communication user's OAuth 2.0 inbound authentication entry. Authentication methods vary by scenario and SAP release.
- Save or activate the arrangement.
- Open OAuth 2.0 Details and record the Client ID, User Name, Token Service URL, and SAML2 Audience.
- Note the API's scopes and business catalogs for the role setup.
Copy the values exactly as SAP displays them. For example, SAP might show the following values:
- API host: myXXXXXX-api.s4hana.cloud.sap
- Token Service URL: https://myXXXXXX-api.s4hana.cloud.sap/sap/bc/sec/oauth2/token
- SAML2 Audience: https://myXXXXXX.s4hana.cloud.sap
Note:
- The Client ID and User Name may be the same, but do not assume they match.
- The API host and SAML2 Audience may be the same, but do not assume they match.
- The Token Service URL must be the complete HTTPS URL. Visier uses its hostname as the API host for catalog discovery, metadata, and extraction. There is no separate domain field.
Grant access to the business user
The business user needs API access and data access for each business API you'll extract through the data connector.
- In the communication arrangement, open OAuth 2.0 Details. Review the API scopes and the Granted by Business Catalogs information. If relevant, also review Granted by IAM Apps.
- Identify the business catalogs and authorizations that your planned data extraction requires.
- Create customer-managed business roles that contain the required catalogs. You can group related permissions into roles, such as Sales Read or Purchasing Read.
- Apply organizational restrictions that match your data requirements. For a read-only integration, set Write Access to No Access where SAP supports it.
- Review the API dependencies for the operations that you use. Requirements vary by API and operation.
- Assign the roles to the integration business user, and then save.
- Confirm that the user is valid and unlocked and that the authorizations are current.
Create connector credentials
- In the Global Workspace, on the navigation bar, click Data > Connector Credentials.
- Click Add Connector Credential.
- Select SAP S/4HANA, and then click Next.
- Type a display name and description. Click Next.
- In Authentication method, select OAuth 2.0 SAML Bearer.
Note: This connector also supports Password authentication. If you select Password, enter the SAP username and password instead of the OAuth connector credentials.
- Enter the following OAuth connector credentials.
- Communication Username: The username of the communication user that authenticates catalog discovery and the OAuth client.
- Communication User Pasword: The password of that communication user. This isn't the business user's password.
- SAP Business Username: The exact SAP User Name of the integration business user. SAP maps the SAML assertion to this user by using the configured user name mapping mode.
- Client ID: The client ID from the OAuth 2.0 Details of the business API arrangement. For more information, see Configure business APIs.
- Token Service URL: The complete HTTPS token endpoint from OAuth 2.0 Details. Visier derives the API hostname from this URL. For more information, see Configure business APIs.
- OAuth 2.0 SAML Issuer: The issuer that you configured in the communication system.
- SAML2 Audience: The exact audience from OAuth 2.0 Details. It can differ from the API host. For more information, see Configure business APIs.
- Private X509 Key: The complete contents of private.pem, including the PEM begin and end delimiters. For more information, see Generate the X.509 certificate.
- Public X509 Certificate: The complete contents of public.pem, including the PEM begin and end delimiters. For more information, see Generate the X.509 certificate.
- If the connector supports table sources, select a source type for the connector. You cannot change the source type after creating a credential. To use a different source type, create a new credential.
- File sources: Updates require reprocessing and overwriting entire files. For more information, see Sources.
- Table sources: Supports incremental updates and SQL transformations during sync. For more information, see Use SQL with Table Sources.
- Click Authenticate to ensure your credentials work as intended. In OAuth mode, the connection test checks catalog access with the communication user's username and password. It also performs an OAuth token exchange. It doesn't test every business API, table, or data permission.
- Click Create.
Next, create the connector. For more information, see Create a connector. Then, preview a selected table or run a small extraction to validate access to the intended data.
How the connector loads data
The connector reads OData V2 and OData V4 services and follows the paging links that SAP returns. It retrieves the selected extraction fields and applies any configured user filter.
On later extractions, Visier can request only changed records. This requires a filterable change-date field in the source metadata and the complete entity key in the connector. If an entity doesn't have both, Visier uses a full load for that entity. SAP permissions and organizational restrictions still determine which records and fields SAP returns.
Include services without C2 release
Many SAP OData V4 remote business APIs aren't marked as released under SAP's C2 compatibility contract. By default, the connector excludes these services. Use the following steps to include them.
- Open the connector settings.
- Turn on Include services without C2 release.
- Save and refresh the connector so Visier rediscovers the available tables. Discovery can take longer.
Caution: SAP can change or remove services that aren't marked C2 released between updates. Verify each service before you rely on it. This setting doesn't grant SAP permissions.