SAP S/4HANA SSL Auth Account

Overview

Use this account type to connect the SAP S/4HANA Snaps to an SAP S/4HANA On-Premise instance using SSL-based authentication.



Prerequisites

  • Valid gateway system (which includes Host, Port, Client, Logon Language, Path prefix, and Service collection URL).
  • Valid certificates (Key store, Trust store, Key/Trust store password, and Key alias).

Account settings

Field/Field set Description
Label*

String

Required. Unique name for the account.

Default value: N/A

User Id

String
Required. The user name to connect to the SAP S/4HANA On-Premise server.

Default value: N/A

Example: newaccountuser

Passphrase

String
Required. The password of the entered user name to connect to the SAP S/4HANA On-Premise server.

Default value: N/A

Example: z00md0g!pack@Heavy/

Host

String
Required. The host server name of the SAP S/4HANA On-Premise server.

Default value: N/A

Example: newhost.example.com

Port

String
Required. The port of the SAP S/4HANA On-Premise server.

Default value: N/A

Example: 35004

Client

String
Required. The client ID of the SAP S/4HANA On-Premise server to which the user has access.

Default value: N/A

Example: 100

Logon Language

String
Required. The logon language for the specified Application Server.

Default value: N/A

Example: EN

Path prefix

String
Required. The prefix of the gateway endpoint path. Path prefix specifies a text element to add to the start of the URL used for connections to the service. Path prefix is used to build a Catalog URL and fetch the associated service collection.
Note:

Syntax

http(s)://<host>:<port>/<Path prefix>

Default value: /sap/opu/odata

Example: /sap/opu/odata

Service collection URL

String
Required. The service collection URL of the gateway endpoint path. Service collection URL specifies the relative path from where the catalog service is retrieved. Also, specify the sap-client following the URL.

Default value: /iwfnd/catalogservice/ServiceCollection

Example: /iwfnd/catalogservice/ServiceCollection

Key store

String
Required. The location of the key store file. It can be in the SLDB or any other unauthenticated endpoint such as https://...

Default value: N/A

Example: https://example.com/keystore_path/file.p12

Trust store

String
Required. The location of the trust store file. It can be in the SLDB or any other unauthenticated endpoint such as https://...

Default value: N/A

Example: https://example.com/truststore_path/file.jks

Key/Trust store password

String
Required. Password for the key/trust store. It is used for both Key store and Trust store, if both are defined.

Default value: N/A

Example: z00mD0g!/

Key alias

String
Required. The alias for the Key/Trust store password.

Default value: N/A

Example: 0017017439

Troubleshooting

Error Cause Resolution
IO/Error Cause: File not found on at <--- path --->. The file path entered is incorrect. Ensure that the file path is correct.
IO/Error Failed to decrypt safe contents entry: javax.crypto.BadPaddingException: Given final block not properly padded. Key store password is incorrect. Such issues can arise if an incorrect key is used during decryption.
  • Ensure that the files (key store or trust store) exist and are readable.
  • Ensure that you enter the correct password.
PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target. Valid certification path to the requested target is not found.
  • Verify that your key/trust store format is correct (JKS, JCEKS, and PKCS12 are supported).
  • Verify that the uploaded key/trust store files are correct.
  • Ensure that the files (key store or trust store) exist and are readable.
IO/Error Cause: toDerInputStream rejects tag type <--- type number --->. toDerInputStream rejects tag type <--- type number --->, the input file is rejected.
  • Verify that your key/trust store format is correct (JKS, JCEKS, and PKCS12 are supported).
  • Verify that the uploaded key/trust store files are correct.
  • Ensure that the files (key store or trust store) exist and are readable.
Detect premature EOF. The file is empty.
  • Ensure that the files (key store or trust store) exist and are readable.
/IWBEP/CX_MGW_TECH_EXCEPTION No service found for namespace /IWFND/, name CATALOGSERVICE, version 0001 /IWBEP/CM_MGW_RT/026 By default, S/4HANA uses version 1 of the catalog service. However, in this specific scenario, version 1 is not available, and only version 2 is available. Specify version 2 in the Service collection URL field as shown: /iwfnd/catalogservice;v=2/ServiceCollection
Note: If the catalog service is not enabled, you must access the S/4HANA instance, configure the catalog service, and ensure it is available.

SAP Gateway

SAP Gateway, an integral part of SAP NetWeaver, lets you connect devices, environments, and platforms to SAP systems. It uses the Open Data Protocol (OData) so you can use any programming language or model to connect to SAP and non-SAP applications. SAP S/4HANA uses SAP Gateway and OData services to bring business data to compelling SAP Fiori apps. Snaps in the SAP S/4HANA Snap Pack use an SAP Gateway URL to access the S/4HANA services.

SAP S/4HANA Gateway URL
Format http(s)://<host>:<port>/<Path Prefix>/<Service collection URL>?sap-client=<Client Entry Number>&sap-language=<Logon Language>
Example https://s4hana.example.com:44300/sap/opu/odata/iwfnd/catalogservice/ServiceCollection?sap-client=100&sap-language=EN

SSL Connection

SAP S/4HANA allows users to access the SAP gateway and APIs using X509 certificate authentication. To implement this certificate-based authentication (SSL), you need to upload the key/trust store files on your SnapLogic tenant and configure this account accordingly. Refer to the following resources for more details about SAP security and SAP SSL certificate settings.