Register and Scan a SAP S/4HANA source
This article outlines how to register an SAP S/4HANA source in Purview and set up a scan.
The SAP S/4HANA source supports Full scan to extract metadata from a SAP S/4HANA instance and fetches Lineage between data assets.
Set up the latest self-hosted integration runtime. For more information, see Create and configure a self-hosted integration runtime.
Make sure the JDK 11 is installed on your virtual machine where self-hosted integration runtime is installed.
Make sure "Visual C++ Redistributable 2012 Update 4" is installed on the self-hosted integration runtime machine. If you don't yet have it installed, download it from here.
Download the 64-bit SAP Connector for Microsoft .NET 3.0 from SAP's website and install it on the self-hosted integration runtime machine. During installation, make sure you select the Install Assemblies to GAC option in the Optional setup steps window.
The connector reads metadata from SAP using the SAP Java Connector (JCo) 3.0 API. Hence make sure the Java Connector is available on your virtual machine where self-hosted integration runtime is installed. Make sure that you are using the correct JCo distribution for your environment. For example, on a Microsoft Windows machine, make sure the sapjco3.jar and sapjco3.dll files are available.
The driver should be accessible to all accounts in the VM. Do not install it in a user account.
Deploy the metadata extraction ABAP function module on the SAP server by following the steps mentioned in ABAP functions deployment guide. You will need an ABAP developer account to create the RFC function module on the SAP server. The user account requires sufficient permissions to connect to the SAP server and execute the following RFC function modules:
- STFC_CONNECTION (check connectivity)
- RFC_SYSTEM_INFO (check system information)
Setting up authentication for a scan
The only supported authentication for SAP S/4HANA source is Basic authentication
Register SAP S/4HANA source
To register a new SAP S/4HANA source in your data catalog, do the following:
Navigate to your Purview account.
Select Data Map on the left navigation.
On Register sources, select SAP S/4HANA. Select Continue
On the Register sources (SAP S/4HANA) screen, do the following:
Enter a Name that the data source will be listed within the Catalog.
Enter the Application server name to connect to SAP S/4HANA source. It can also be an IP address of the SAP application server host.
Enter the SAP System number. This is a two-digit integer between 00 and 99.
Select a collection or create a new one (Optional)
Finish to register the data source.
Creating and running a scan
To create and run a new scan, do the following:
In the Management Center, click on Integration runtimes. Make sure a self-hosted integration runtime is set up. If it is not set up, use the steps mentioned here to create a self-hosted integration runtime
Navigate to Sources.
Select the registered SAP S/4HANA source.
Select + New scan
Provide the below details:
a. Name: The name of the scan
b. Connect via integration runtime: Select the configured self-hosted integration runtime.
c. Credential: Select the credential to connect to your data source. Make sure to:
- Select Basic Authentication while creating a credential.
- Provide a user ID to connect to SAP server in the User name input field.
- Store the user password used to connect to SAP server in the secret key.
d. Client ID: Enter here the SAP system client ID. The client is identified with three-digit numeric number from 000 to 999.
e. JCo library path: Specify the path to the folder where the JCo libraries are located.
f. Maximum memory available: Maximum memory (in GB) available on customer's VM to be used by scanning processes. This is dependent on the size of SAP S/4HANA source to be scanned.
As a thumb rule, please provide 1GB memory for every 1000 tables
Click on Continue.
Choose your scan trigger. You can set up a schedule or ran the scan once.
Review your scan and click on Save and Run.
Viewing your scans and scan runs
Navigate to the management center. Select Data sources under the Sources and scanning section.
Select the desired data source. You will see a list of existing scans on that data source.
Select the scan whose results you are interested to view.
This page will show you all of the previous scan runs along with metrics and status for each scan run. It will also display whether your scan was scheduled or manual, how many assets had classifications applied, how many total assets were discovered, the start and end time of the scan, and the total scan duration.
Manage your scans
To manage or delete a scan, do the following:
Navigate to the management center. Select Data sources under the Sources and scanning section then select on the desired data source.
Select the scan you would like to manage. You can edit the scan by selecting Edit.
You can delete your scan by selecting Delete.