No slash command · from erpl
Guides deploying erpl in production: pinning DuckDB/erpl versions, installing on servers/containers/CI, choosing RFC backend, handling secrets, configuring SAP-side authorizations, network paths, and telemetry. Use when moving erpl from laptop to server or preparing SAP user for go-live.
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.
INSTALL/LOAD fail. Upgrade DuckDB and erpl together.INSTALL downloads from get.erpl.io; production jobs
should only LOAD. Bake the extension into the image or install it in a provisioning step.~/.duckdb/extensions/<duckdb>/<platform>/, or
SET extension_directory): the first LOAD extracts the SAP SDK libraries and sub-extensions there, so
that directory must be writable by the service user at least once.threads, partitions, several
processes): every RFC connection holds a work process.-- check:skip-live (network install)
INSTALL erpl FROM 'https://get.erpl.io';
LOAD erpl;
SELECT extension_name, extension_version FROM duckdb_extensions() WHERE extension_name LIKE 'erpl%';
# Container (sketch): pin DuckDB, install erpl at build time
FROM python:3.12-slim
RUN pip install duckdb==1.5.6
RUN python -c "import duckdb; c = duckdb.connect(config={'allow_unsigned_extensions': 'true'}); \
c.execute(\"INSTALL erpl FROM 'https://get.erpl.io'\"); c.execute('LOAD erpl')"
ENV DATAZOO_DISABLE_TELEMETRY=1
Air-gapped: download erpl-<duckdb-version>-extension-<os>-<arch>.tar.gz from the GitHub release, unpack,
INSTALL '/opt/erpl/erpl.duckdb_extension';. Python, Node and R hosts need allow_unsigned_extensions in
the connection config (see erpl-setup).
nwrfc (default) | proto | |
|---|---|---|
| Implementation | SAP NetWeaver RFC SDK, bundled | erpl-proto, pure Rust |
| Choose | default | SET erpl_rfc_backend = 'proto'; before the first SAP call, or ERPL_RFC_BACKEND=proto |
| wsRFC client certificate | PSE (tls_client_pse) | PEM/DER files (ws_client_cert, ws_client_key) |
| SNC | yes (with an SNC library) | see the erpl-proto docs |
Verify with SELECT sap_rfc_backend();. The choice is fixed per process; there is no silent fallback.
-- check:skip-live (illustrates a per-run secret from the environment)
CREATE SECRET prod_sap (
TYPE sap_rfc,
ASHOST getenv('SAP_ASHOST'), SYSNR getenv('SAP_SYSNR'), CLIENT getenv('SAP_CLIENT'),
USER getenv('SAP_USER'), PASSWD getenv('SAP_PASSWORD'), LANG 'EN'
);
getenv is available in the DuckDB CLI; in Python/Node pass the values as parameters from your secret
store instead. Alternatives: CREATE PERSISTENT SECRET in a secret directory only the service user can
read (SET secret_directory = '/etc/erpl/secrets'), SNC/Kerberos (no password at all), or X.509/SSO2
tickets. Always name the secret in production SQL (secret => 'prod_sap').
| Need | Source of truth |
|---|---|
S_RFC function groups/modules erpl calls | SELECT DISTINCT rfc_function_module FROM sap_rfc_authorizations() WHERE … (static, no connection) |
| APE authorization objects and whether the user has them | sap_ape_check_authorizations('<entity>') — read verdict |
| Table reads | S_TABU_DIS/S_TABU_NAM for the tables read with sap_read_table |
| BW data | BW analysis authorizations of the RFC user (BICS returns layout without data otherwise) |
| ODP | Authorizations for the ODP context, e.g. S_RO_OSOA for DataSources |
| S/4HANA Cloud | Communication arrangement + wsRFC; UCON may need to release the RFC function modules |
/erpl:basis-handout turns this into a document for the Basis team from the functions you actually use.
| Situation | Approach |
|---|---|
| Direct reach to the application server (port 33NN) | ashost + sysnr |
| Through a SAProuter | saprouter field in the secret |
| Behind a bastion, VPN or mesh | the erpl_tunnel extension (skill erpl-tunnel-import; /plugin marketplace add DataZooDE/erpl-tunnel → /plugin install erpl-tunnel@erpl-tunnel) |
| S/4HANA Cloud | wsRFC (wshost, wsport 443) |
Anonymous usage telemetry is on by default (TELEMETRY.md lists every field; no SAP names, data or SQL). For
production policy set DATAZOO_DISABLE_TELEMETRY=1 in the service environment or
SET erpl_telemetry_enabled = false; in every session.
LOAD erpl works as the service user without network.PRAGMA sap_rfc_ping(secret = 'prod_sap') returns PONG.S_RFC scoped from sap_rfc_authorizations(); APE verdict all ok where used.erpl-pipelines), backups for it and for erpl_ape.delta_spill.subscriber_process names documented; one scheduler entry per subscriber.sap_rfc_live_connections() returns 0 after jobs; logs kept (erpl-operate).erpl-performance).See also: erpl-setup, erpl-pipelines, erpl-operate, erpl-performance. To serve landed data as an
API, the flapi plugin (flapi-deploy, flapi-rest).
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.
/erpl-bics-queriesRunning SAP BW queries and cubes from DuckDB with erpl_bics (BICS, the protocol behind Analysis for Office): finding queries with sap_bics_show_queries / sap_bics_show_cubes / sap_bics_show(obj_type => 'QUERY'), describing them with sap_bics_describe and sap_bics_variables, the stateful session workflow sap_bics_begin (id, variables, hierarchy_variables, variant, rows, columns, filters) → sap_bics_rows / sap_bics_columns / sap_bics_filter / sap_bics_set_char_prop (DISPLAY KEY|TEXT|BOTH, SORT, TOTALS) / sap_bics_attributes / sap_bics_hidden_members → sap_bics_result, structure members, BW hierarchies with sap_bics_hierarchy, result shape and pivoting, the result cell budget (erpl_bics_max_result_memory), sap_bics_result_stats for empty results, and session cleanup with sap_bics_end / sap_bics_sessions / sap_bics_gc. Use when someone wants numbers from a BW query or InfoCube/aDSO, needs to fill BEx variables, drill down, filter or swap axes, or gets an empty, rejected or too-large BW result.
/erpl-choose-interfaceChoosing the right erpl interface for an SAP object or task before writing SQL: transparent table or DDIC view → sap_read_table / ATTACH (erpl_rfc); BAPI or function module → sap_rfc_invoke; CDS view or entity → sap_ape_read_full / sap_ape_read_delta (erpl_ape) or the ODP context ABAP_CDS; extractor (DataSource, 2LIS_*, 0FI_*), SLT or BW InfoProvider replication → sap_odp_read_full / sap_odp_read_delta (erpl_odp); SAP BW query or cube with its business logic → sap_bics_begin / sap_bics_result (erpl_bics); BW modelling metadata and lineage → sap_bics_meta_* / sap_bics_lineage_*. Covers full vs delta (including deletes), discovery functions per interface, and editions. Use when a user names an SAP object (table, CDS view, extractor, query) and asks how to get it into DuckDB, or when deciding between ODP, APE and RFC for a recurring or incremental load.
/erpl-odp-replicationExtracting and replicating SAP data through ODP (Operational Data Provisioning) with erpl_odp: sap_odp_show_contexts, sap_odp_show, sap_odp_describe (supports_delta), sap_odp_preview, sap_odp_read_full (threads, columns, filters as SIGN/OP/LOW/HIGH ranges), sap_odp_read_delta with a stable subscriber_process (auto DELTAINIT, resume, recover => true), ODQ_CHANGEMODE / ODQ_TSN change columns, the cheap probe sap_odp_get_last_modified, subscription and cursor management (sap_odp_show_subscriptions, sap_odp_show_cursors, sap_odp_get_subscriptions, PRAGMA sap_odp_close_delta_cursor, PRAGMA sap_odp_drop), and why the columns argument aggregates BW providers. Use when reading SAP extractors/DataSources (SAPI), BW InfoProviders (BW context), extraction-enabled CDS views (ABAP_CDS) or SLT, when building an incremental (delta) load, or when ODP row counts look wrong.
/erpl-operateOperating and troubleshooting erpl: tracing (erpl_trace_enabled / erpl_trace_level / erpl_trace_output / erpl_trace_file_path, the BICS protocol trace erpl_bics_trace, the SAP SDK trace sap_rfc_set_trace_level), diagnosing empty or wrong BW results with sap_bics_result_stats, connection leaks with sap_rfc_live_connections, housekeeping of ODP cursors and subscriptions (sap_odp_show_cursors, sap_odp_show_subscriptions, sap_odp_close_delta_cursor, sap_odp_drop), APE subscriptions (sap_ape_show_subscriptions, sap_ape_drop, erpl_ape.delta_spill), the BICS session store (sap_bics_sessions, sap_bics_gc, sap_bics_end, erpl_bics_state_database), common error messages and what to put in a bug report. Use when an erpl query fails, hangs, returns nothing or too much, when SAP resources pile up (cursors, subscriptions, sessions, connections), or when preparing a support ticket.
Other plugins' skills for the same job