Configuring SAP Connector
Set up the SAP Connector's MySQL adapter database and certificate.
Follow the steps below to configure the SAP Connector:
1. MySQL Adapter Database Setup
Follow the steps below to set up the MySQL adapter database:
a. The SAP adapter uses the dataadapter_sap database.
b. Execute on the MySQL server:
CREATE DATABASE dataadapter_sap;
CREATE USER IF NOT EXISTS 'appsone'@'%' IDENTIFIED WITH mysql_native_password BY 'password';
GRANT ALL PRIVILEGES ON dataadapter_sap.* TO 'appsone'@'%';
USE dataadapter_sap;
c. Then execute:
adapter.sql and sap-adapter-create.sql
2. Navigate to the conf directory:
cd <SAP build>/conf/
3. Import the HEAL certificate:
- Generate the SSL certificate from the server using the following command.
echo -n | openssl s_client -connect '<SERVERIP>:<PORT>' | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > /tmp/<servicename>.crt
<SERVERIP>:<PORT>: Provide the IP address and port number of gRPC or HAPROXY.
- Import the certificate into the Java cacerts keystore using the following command.
keytool -import -trustcacerts -keystore cacerts -storepass changeit -noprompt - alias <servicename> -file /tmp/<servicename>.crt
Note:
This is needed to push KPI to HEAL over SSL
3. Update the client values obtained in Adapter Framework Tables (from adapter.sql).
Heal Instance Mapping#
INSERT INTO a1_logscan_heal_instance_mapper VALUES
('SAP_Node1',
'69279e63-bc77-4ef7-8362-abd0930099fc', -- Heal agent UUID
'16ea5052-847a-48c8-97da-f50b2d1ef5a1'); -- Heal instance UUID
The logscan_instance_name must match sap_instance.heal_name.
Implementation Checklist#
Before handing the adapter to operations, confirm the following:
- sap_connection contains one complete property set per file_name.
- sap_instance.file_name matches a valid connection file_name.
- Each required FM exists in the functional_module.
- Each FM is linked to the instance in sap_instance_functional_module_mapping.
- Input, option, and field mappings exist for the enabled FMs.
- KPI fields have kpi = 1 in sap_field.
- Transaction fields have transaction = 1 in the sap_field.
- sap_kpis.kpi_string exactly matches the final extractor output key (case-sensitive).
- Worker parameters include file_path and temp_filePath.
- The transaction worker explicitly sets the response to the field used for transaction totals.
- libsapjco3.so is on LD_LIBRARY_PATH.
- Network connectivity verified: adapter host → SAP message server port → SAP app server RFC ports.
- a1_logscan_heal_instance_mapper populated with correct Heal agent/instance UUIDs.The
- The heal_kpis and domain_to_heal_kpi_mappings tables are populated.