Adapter Chain Repository
Adapter Chain Repository in SAP Connector Prerequisites.
Adapter Chain Repository#
This ensures secure TLS communication for the JDBC MySQL connection.
UPDATE adapter_chain_repository SET connection_url = 'jdbc:mysql://<ip>:<port>/dataadapter_sap?verifyServerCertificate=false&useSSL=true&requireSSL=true&enabledTLSProtocols=TLSv1.2,TLSv1.3&useServerPrepStmts=true&cacheServerConfiguration=true' where name in ('SapReposetory', 'NameValueRepository', 'LogAnalyzerKPIMaster');
UPDATE adapter_chain_repository SET connection_url = 'jdbc:mysql://<ip>:<port>/appsone?verifyServerCertificate=false&useSSL=true&requireSSL=true&enabledTLSProtocols=TLSv1.2,TLSv1.3&useServerPrepStmts=true&cacheServerConfiguration=true' where name in ('AppsoneRepository');
UPDATE adapter_chain_repository SET user_name = 'dbadmin' where name in ('SapReposetory', 'NameValueRepository', 'LogAnalyzerKPIMaster', 'AppsoneRepository');
UPDATE adapter_chain_repository SET password = '<password>' where name in ('SapReposetory', 'NameValueRepository', 'LogAnalyzerKPIMaster', 'AppsoneRepository');
SAP-Specific Tables#
sap_connection#
Stores JCo destination properties that the adapter uses to build the .jcoDestination file at runtime.
CREATE TABLE `sap_connection` (
id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
file_name VARCHAR(256) NOT NULL, -- groups properties into one destination file
name VARCHAR(256) NOT NULL, -- JCo property key (e.g., jco.client.user)
value VARCHAR(256) NOT NULL -- JCo property value
);
For example: Complete set for ECC,
INSERT INTO sap_connection VALUES
(1, 'ABAP_WITH_POOL_ECC', 'jco.client.group', 'HEAL_APP10'),
(2, 'ABAP_WITH_POOL_ECC', 'jco.client.r3name', 'DE1'),
(3, 'ABAP_WITH_POOL_ECC', 'jco.client.sysnr', '10'),
(4, 'ABAP_WITH_POOL_ECC', 'jco.client.mshost', 'sapsrv-01.example.local'),
(5, 'ABAP_WITH_POOL_ECC', 'jco.client.msserv', '3611'),
(6, 'ABAP_WITH_POOL_ECC', 'jco.client.client', '800'),
(7, 'ABAP_WITH_POOL_ECC', 'jco.client.user', 'BASIS'),
(8, 'ABAP_WITH_POOL_ECC', 'jco.client.passwd', 'BASE64_ENCODED_PASSWORD'),
(9, 'ABAP_WITH_POOL_ECC', 'jco.client.lang', 'en'),
(10, 'ABAP_WITH_POOL_ECC', 'jco.destination.pool_capacity', '3'),
(11, 'ABAP_WITH_POOL_ECC', 'jco.destination.peak_limit', '10');
sap_instance#
Defines SAP instances to monitor and their HEAL service names.
CREATE TABLE `sap_instance` (
id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
name VARCHAR(256) NOT NULL, -- internal instance identifier
heal_name VARCHAR(256) NOT NULL, -- name as used in Heal (must match a1_logscan_heal_instance_mapper)
file_name VARCHAR(256) NOT NULL -- must match sap_connection.file_name group
);
For example:
INSERT INTO sap_instance VALUES (1, 'sapsrv-01', 'SAP_Node1', 'ABAP_WITH_POOL_ECC');
Note: sap_instance.file_name must exactly match the sap_connection.file_name group, otherwise the extractor cannot build the correct destination file for that instance.
functional_module#
Lists SAP RFC function modules to call.
CREATE TABLE `functional_module` (
id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
name VARCHAR(256) NOT NULL, -- RFC function module name
table_name VARCHAR(256) NOT NULL, -- returned table/structure to read
sub_tables VARCHAR(256) DEFAULT 'none', -- nested table IDs (e.g., '1-2')
is_child BOOLEAN NOT NULL
);
Full production function module list:
| ID | Name | Table | Sub-tables | Description |
|---|---|---|---|---|
| 1 | SWNC_GET_WORKLOAD_SNAPSHOT | USERTCODE | none | Dialog/batch workload counts |
| 2 | SWNC_GET_WORKLOAD_SNAPSHOT | MEMORY | none | Memory workload metrics |
| 3 | SWNC_GET_STATRECS_FRAME | ALL_STATRECS | 1-2 | Transaction statistical records |
| 4 | CNV_MBT_READ_ST22_DUMPS | ET_DUMPINFO | none | ABAP dump count |
| 5 | /SDF/GPC_GET_TRFC_ERRORS | ET_ARFCSTATE | none | tRFC error count |
| 6 | /SDF/EWA_GET_UPDATE_ERRORS | I_VBHDR_REPORT_HIST | none | Update error count |
| 7 | TRFC_QOUT_GET_ERROR_QUEUES | QSTATE | none | qRFC outbound error queues |
| 8 | TRFC_QIN_GET_ERROR_QUEUES | QSTATE | none | qRFC inbound error queues |
| 9 | TRFC_QOUT_GET_CURRENT_QUEUES | QVIEW | none | qRFC outbound current queues |
| 10 | TRFC_QIN_GET_CURRENT_QUEUES | QVIEW | none | qRFC inbound current queues |
| 11 | ENQUEUE_READ | ENQ | none | Lock entry count |
| 12 | RFC_READ_TABLE | DATA | none | Background job count (reads TBTCO) |
sub_tables#
Defines the nested table/structure names for ALL_STATRECS handling.
INSERT INTO sub_tables VALUES
(1, 'STATRECS', 'Table'),
(2, 'MAINREC', 'Structure'),
(3, 'BATCHSTEP','table');
For SWNC_GET_STATRECS_FRAME, the functional_module.sub_tables value of 1-2 means the following:
- Priority 0 → STATRECS (table)
- Priority 1 → MAINREC (structure)
BATCHSTEP and HTTPSRECS are read directly by transaction code and are not part of the sub_tables string.
sap_instance_functional_module_mapping#
Decides which function modules run on which instance.
INSERT INTO sap_instance_functional_module_mapping VALUES
(1, 1, 1), -- Instance 1 runs FM 1 (SWNC_GET_WORKLOAD_SNAPSHOT/USERTCODE)
(2, 1, 2), -- Instance 1 runs FM 2 (SWNC_GET_WORKLOAD_SNAPSHOT/MEMORY)
(3, 1, 3), -- Instance 1 runs FM 3 (SWNC_GET_STATRECS_FRAME)
(4, 1, 4), -- ABAP dump count
(5, 1, 5), -- TRFC error count
(6, 1, 6), -- Update error count
(7, 1, 7), -- qRFC out error
(8, 1, 8), -- qRFC in error
(9, 1, 9), -- qRFC out current
(10, 1, 10), -- qRFC in current
(11, 1, 11), -- Lock entries
(12, 1, 12); -- Job count
input_parameter#
Defines function module import parameters. The extractor builds parameter strings based on recognized name patterns.
Recognized parameter name patterns and their handling:
| Pattern match | Action |
|---|---|
| START | Fill with formatted time |
| END | Fill with formatted time |
| IV_FROM_DATE, IV_FROM_TIME | Fill with formatted from-date/time |
| IV_TO_DATE, IV_TO_TIME | Fill with formatted date/time |
| SERVER / SELECT_SERVER | Fill in the SAP server name |
| CLIENT | Fill from jco.client.client value |
| QUERY_TABLE | Use the literal format value (e.g., TBTCO) |
| DEST | Use literal * |
| BEDATUM | Fill with formatted date |
| Others (QNAME, NOLUWCNT, etc.) | Use literal format value (often ‘ ‘ or ‘X’) |
Full input parameter list:
| ID | Name | Format | Used By |
|---|---|---|---|
| 1 | READ_START_DATE | yyyyMMdd | FM 1, 2, 3 |
| 2 | READ_START_TIME | HHmmss | FM 1, 2, 3 |
| 3 | READ_END_DATE | yyyyMMdd | FM 1, 2, 3 |
| 4 | READ_END_TIME | HHmmss | FM 1, 2, 3 |
| 5 | SELECT_SERVER | server_name | FM 1, 2 |
| 6 | IV_FROM_DATE | yyyyMMdd | FM 4 (ABAP dumps) |
| 7 | IV_FROM_TIME | HHmmss | FM 4 |
| 8 | IV_TO_DATE | yyyyMMdd | FM 4 |
| 9 | IV_TO_TIME | HHmmss | FM 4 |
| 10 | IV_TIMESTAMP_FROM | HHmmss | FM 5 (tRFC errors) |
| 11 | IV_TIMESTAMP_TO | HHmmss | FM 5 |
| 12 | BEDATUM | yyyyMMdd | FM 6 (update errors) |
| 13 | DEST | * | FM 7, 9 |
| 14 | CLIENT | jco.client.client | FM 7, 8, 9, 10, 11 |
| 15 | WITH_QSTATE | ‘ ‘ | FM 7, 8 |
| 16 | QNAME | (queue name) | FM 9, 10 |
| 17 | NOLUWCNT | ‘ ‘ | FM 9, 10 |
| 18 | NOSEND | ‘X’ | FM 9 |
| 19 | DIST_GET_QUEUE | ‘ ‘ | FM 9 |
| 20 | QDTABNAME | ‘ ‘ | FM 9 |
| 21 | GCLIENT | jco.client.client | FM 11 (lock entries) |
| 22 | GUNAME | * | FM 11 |
| 23 | QUERY_TABLE | TBTCO | FM 12 (job count) |
sap_field#
Defines SAP response fields and whether each is used for KPI extraction, transaction extraction, or both.
Key fields (55 total – abbreviated):
| ID | Name | KPI | Transaction | Description |
|---|---|---|---|---|
| 1 | TCODE | 0 | 1 | Transaction code |
| 2 | RESPTI | 1 | 1 | Response time |
| 3 | CPUTI | 1 | 0 | CPU time |
| 4 | QUEUETI | 1 | 0 | Queue wait time |
| 5 | PROCTI | 1 | 0 | Processing time |
| 6 | ROLLWAITTI | 1 | 0 | Roll-in wait time |
| 33 | TASKTYPE | 1 | 0 | Task type (dialog/batch/HTTP/RFC) |
| 39 | LOCKTI | 1 | 0 | Lock time |
| 41 | ABAP_DUMP_ROW_COUNT | 1 | 0 | ABAP dump count |
| 42 | TRFC_ERROR_ROW_COUNT | 1 | 0 | tRFC error count |
| 43 | UPDATE_ERROR_ROW_COUNT | 1 | 0 | Update error count |
| 44 | QRFC_OUT_ROW_COUNT | 1 | 0 | qRFC outbound error count |
| 45 | QRFC_IN_ROW_COUNT | 1 | 0 | qRFC inbound error count |
| 46 | QRFC_OUT_CURRENT_ROW_COUNT | 1 | 0 | qRFC outbound current count |
| 47 | QRFC_IN_CURRENT_ROW_COUNT | 1 | 0 | qRFC inbound current count |
| 48 | LOCK_ENTRY_ROW_COUNT | 1 | 0 | Lock entry count |
| 51 | BJ_SUCCESS_JOB_COUNT | 1 | 0 | Background job success count |
| 52 | BJ_FAILURE_JOB_COUNT | 1 | 0 | Background job failure count |
| 53 | TRANSID | 0 | 1 | Transaction ID (groups related steps) |
| 54 | LOCKTI | 0 | 1 | Lock time (for transaction response) |
| 55 | TASKTYPE | 0 | 1 | Task type (for audit step name) |
sap_kpis#
Final KPI names and aggregation methods sent to Heal.
CREATE TABLE `sap_kpis` (
id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
kpi_string VARCHAR(256) NOT NULL, -- must exactly match the final extractor output key
kpi_aggregator VARCHAR(256) NOT NULL, -- 'avg' or 'count'
kpi_type VARCHAR(256) NOT NULL -- 'Core'
);