No slash command · from erpl
Provides operations and troubleshooting commands for the erpl DuckDB extension: tracing, diagnosing empty/wrong BW results, connection leaks, ODP cursor/subscription housekeeping, APE subscriptions, BICS session management, and common error messages. Use when erpl queries fail, hang, return nothing or too much, or when SAP resources pile up.
Ships in erpl. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
erpl_trace_* at WARN carries counts and BW messages; the BICS
protocol trace (erpl_bics_trace) and the SAP SDK trace (dev_rfc*.trc) contain cell values, keys and
texts. Share those privately or redact them.subscriber_process, and confirm with the user before any
sap_odp_drop, sap_ape_drop, sap_bics_end or sap_bics_gc.ILLEGAL_REQ_STATE_…).
It is harmless for other subscribers; do not try to "fix" it by restarting SAP. Use a new
subscriber_process if the old one is unusable.sap_rfc_live_connections() should be 0 between queries. Anything else holds SAP work processes.SET erpl_trace_enabled = true;
SET erpl_trace_level = 'WARN'; -- TRACE, DEBUG, INFO, WARN, ERROR
SET erpl_trace_output = 'console'; -- 'file' or 'both' with erpl_trace_file_path
-- re-run the failing statement, then:
SELECT sap_rfc_backend(), sap_rfc_live_connections();
SELECT extension_name, extension_version FROM duckdb_extensions() WHERE extension_name LIKE 'erpl%';
/erpl:diagnose runs this collection and assembles a ticket-ready summary.
| Symptom / message | Likely cause | Next step |
|---|---|---|
RFC_COMMUNICATION_FAILURE, timeout | Network, SAProuter, SAP down/overloaded | PRAGMA sap_rfc_ping; check host/port/router |
RFC_LOGON_FAILURE, user locked | Credentials; lock after repeated failures | Fix the secret; unlock in SU01 |
no RFC authorization | S_RFC missing for a function group | sap_rfc_authorizations() → Basis |
Secret '*' not found in a CLI one-liner | Statements in one duckdb -c string | Pipe a script through stdin |
sap_read_table fails on a string column | No ET_DATA support | READ_TABLE_FUNCTION; see erpl-rfc-tables |
| ODP numbers look aggregated | columns on a BW provider | See gotcha 1 of erpl-odp-replication |
| APE read waits long, then times out | SAP prepare job not finished | Check the application log named in the error; erpl_ape_prepare_timeout |
Every APE read times out; DHCDC log says Cannot start ACP daemon | No job waits for event SAP_DHCDC_RT_START_ACP_DAEMON | Basis schedules that job (technical job repository) |
| BICS result empty / all NULL | Authorizations, variables, budget | sap_bics_result_stats (below) |
| BICS "too large to read in one go" | Cell budget | Filter, or the suggested erpl_bics_max_result_memory |
sap_bics_result_stats-- check:skip-live (needs an open session)
SELECT error, e_state, e_max_message_type, bw_messages, no_authority,
n_rows, data_cells, cells_placed, cells_null_valued, rfc_user, bw_release
FROM sap_bics_result_stats('q1');
| Field | Reading |
|---|---|
e_state | 1 data, 2 executed but empty, 4 over the cell budget |
e_max_message_type, bw_messages | E/A = BW refused; messages say why (variables, authorizations) |
no_authority | The RFC user lacks analysis authorization |
data_cells = 0 with n_rows > 0 | Layout without values — usually authorizations of rfc_user |
cells_dropped_* > 0 | A mapping problem in erpl — report it |
The row has no business data and can be pasted into a public ticket. Compare with RSRT as the same user.
More: erpl_bics_stream_result_tables = false for a comparison read, and the protocol trace
(SET erpl_bics_trace = true; SET erpl_bics_trace_dir = '/tmp/bics_trace';).
-- ODP: your cursors and subscriptions
SELECT queue_name, subscriber_proc, pointer, is_closed, request_date
FROM sap_odp_show_cursors() WHERE subscriber_proc LIKE 'DWH_%';
SELECT queue_name, subscriber_name, subscriber_proc FROM sap_odp_show_subscriptions(ERPL_ONLY => true);
-- APE: erpl's subscriptions (prefix ERPL_), and the local replay buffer
SELECT cds_name, subscriber_process, created_at, status FROM sap_ape_show_subscriptions();
-- BICS: stored sessions
SELECT state_id, versions, query, stored_bytes, last_saved FROM sap_bics_sessions();
| Resource | Release (confirm first) |
|---|---|
| Finished ODP delta pipeline | PRAGMA sap_odp_close_delta_cursor(ctx, proc, odp_name) — resumable |
| Obsolete ODP subscription | PRAGMA sap_odp_drop(ctx, subscriber_name, proc, odp_name) — next read is a full load |
| Obsolete APE subscription | PRAGMA sap_ape_drop(cds, proc) — DROPPED / NOT_FOUND / STILL_PRESENT |
| APE "still in use by a running graph" | A killed client left the graph running; SAP's retention clears it — involve Basis |
| Applied APE batches | DELETE FROM erpl_ape.delta_spill WHERE subscriber_process = '…'; |
| BICS session | sap_bics_end('id') |
| BICS history / stale sessions | sap_bics_gc(keep_versions => 1), sap_bics_gc(older_than => INTERVAL '7 days') |
/erpl:bics-sessions lists and cleans BICS sessions interactively.
-- check:skip-live (writes trace files)
PRAGMA sap_rfc_set_trace_dir('/tmp/rfc_trace');
PRAGMA sap_rfc_set_trace_level(2); -- 0 off … 3 full
PRAGMA sap_rfc_ping;
PRAGMA sap_rfc_set_trace_level(0);
sap_bics_result_stats row.[WARN] lines of the erpl trace.duckdb_extensions() versions, DuckDB client (CLI/Python/…) and OS, sap_rfc_backend().See also: erpl-performance, erpl-odp-replication, erpl-ape-cds, erpl-bics-queries, erpl-setup.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub datazoode/erpl --plugin erpl12 skills in this plugin
/erpl-ape-cdsExtracting SAP CDS views and entities with erpl_ape through SAP's ABAP Pipeline Engine: discovery with sap_ape_show, sap_ape_describe and sap_ape_preview; full snapshots with sap_ape_read_full (columns, chunk_size, wireformat; server-side filters are refused); delta reads with deletes via sap_ape_read_delta(cds, subscriber_process) and the /1DH/OPERATION column (U after-image, D delete); recovering an interrupted delta from the local erpl_ape.delta_spill with recover => true; subscriptions (sap_ape_show_subscriptions, PRAGMA sap_ape_drop, the ERPL_ prefix); readiness checks with PRAGMA sap_ape_ping, sap_ape_system_info and sap_ape_check_authorizations (read verdict); erpl_ape_allow_unreleased and erpl_ape_prepare_timeout. Use when extracting a CDS view (I_*, C_*, Z*), building an incremental CDS load that must see deletes, or when an APE read is slow to start, refused or unauthorised.
/erpl-bics-metadataExploring SAP BW models, data flows and lineage with erpl_bics metadata functions: InfoProviders and their fields (sap_bics_meta_providers, sap_bics_meta_provider_fields), DataSources (sap_bics_meta_datasources, sap_bics_meta_datasource_fields), transformations and rules (sap_bics_meta_transformations, sap_bics_meta_transform_fields), CompositeProviders (sap_bics_meta_hcpr_components, sap_bics_meta_hcpr_mapping), queries, their elements, usage and runtime statistics (sap_bics_meta_queries, sap_bics_meta_query_elements, sap_bics_meta_query_usage, sap_bics_meta_query_stats), InfoObjects (sap_bics_meta_infoobjects, sap_bics_describe_infoobject), the cross reference sap_bics_meta_objxref, and lineage / impact analysis (sap_bics_lineage_edges, sap_bics_lineage_graph_json, sap_bics_lineage_trace, sap_bics_query_lineage). Use when documenting or auditing a BW system, answering "where does this key figure come from" or "what breaks if I change this InfoObject/DataSource", finding unused queries, or preparing a BW migration.
Other plugins' skills for the same job