No slash command · from erpl
Installs the erpl DuckDB extension suite and connects it to SAP via RFC. Covers unsigned extension setup, SAP NetWeaver RFC SDK extraction, CREATE SECRET for all SAP logon types (direct, load-balanced, SAProuter, SNC/Kerberos, SSO2, X.509, WebSocket), persistent secrets, backend selection, and telemetry opt-out.
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.
Read when SKILL.md points to them.
erpl is a DuckDB extension suite that reads SAP data with SQL over RFC. One umbrella extension, erpl,
installs everything: it embeds the SAP NetWeaver RFC SDK and four sub-extensions and extracts them on
first LOAD. Binaries are published to https://get.erpl.io per DuckDB release (currently DuckDB v1.5.6
on linux_amd64, linux_amd64_musl, osx_amd64, osx_arm64 and windows_amd64; CHANGELOG.md has the matrix).
| Sub-extension | What it reads | Skill |
|---|---|---|
erpl_rfc | Tables, RFC/BAPI function modules, DDIC metadata, ATTACH catalog | erpl-rfc-tables, erpl-rfc-functions |
erpl_odp | ODP providers (extractors, CDS, BW, SLT): full and delta | erpl-odp-replication |
erpl_ape | CDS entities via the ABAP Pipeline Engine: full and delta incl. deletes | erpl-ape-cds |
erpl_bics | SAP BW queries and cubes, hierarchies, BW metadata and lineage | erpl-bics-queries, erpl-bics-metadata |
Not sure which interface fits an SAP object? See erpl-choose-interface.
duckdb -unsigned, or pass allow_unsigned_extensions in the client config. Without it
INSTALL/LOAD fails with a signature error.INSTALL resolves the binary for the client's
exact DuckDB version and platform. A client on a version erpl was not built for gets an HTTP 404 /
"extension not found". Check SELECT version(); against the CHANGELOG matrix.LOAD erpl, not the sub-extensions. The trampoline extracts the SDK libraries next to the
extensions in ~/.duckdb/extensions/<duckdb-version>/<platform>/ and loads erpl_rfc, erpl_bics,
erpl_odp, erpl_ape itself.CREATE SECRET only stores parameters; the first SAP call
(e.g. PRAGMA sap_rfc_ping) is where a wrong host, password or authorization shows up.sap_rfc secrets in scope? Name one with secret => 'name' (functions) or
secret='name' (pragmas) — otherwise erpl uses the best match and you may hit the wrong system.SET erpl_rfc_backend = 'proto' must come before
the first SAP call; afterwards a different value is refused. erpl never falls back silently.duckdb -c "…" with several statements binds them together. A LOAD erpl or CREATE SECRET in
that string is not visible to the statements after it (Pragma Function … does not exist,
Secret '*' not found). Pipe a script through stdin instead: duckdb -unsigned < session.sql.-- check:skip-live (network install)
INSTALL erpl FROM 'https://get.erpl.io';
LOAD erpl;
The download goes over HTTPS (DuckDB loads httpfs for it). Use the https:// URL: with unsigned
extensions allowed, nothing else verifies what is installed.
Clients other than the CLI enable unsigned extensions in the connection config:
Python: con = duckdb.connect(config={"allow_unsigned_extensions": "true"})
R: con <- dbConnect(duckdb::duckdb(config = list(allow_unsigned_extensions = "true")))
Node: const db = await DuckDBInstance.create(':memory:', { allow_unsigned_extensions: 'true' })
Then run the same INSTALL/LOAD statements through the client. A successful LOAD prints one
"extracted and saved" and one "installed and loaded" line per sub-extension. Check what got loaded:
-- check:offline
SELECT extension_name, loaded FROM duckdb_extensions() WHERE extension_name LIKE 'erpl%';
Offline or pinned installs: every GitHub release carries
erpl-<duckdb-version>-extension-<os>-<arch>.tar.gz; unpack and INSTALL '/path/to/erpl.duckdb_extension'.
CREATE SECRET … (TYPE sap_rfc, …)All values are strings. A secret is either direct (ashost + sysnr) or load-balanced
(mshost + sysid + group); both need client and user, and a password unless SNC or a ticket logs
on. The full field list is in references/secret-fields.md.
-- Direct logon to one application server
CREATE SECRET my_sap (
TYPE sap_rfc,
ASHOST 'sap.example.com', SYSNR '00', CLIENT '100',
USER 'ERPL_USER', PASSWD 'change-me', LANG 'EN'
);
-- Load-balanced logon through the message server and a logon group
CREATE SECRET my_sap_lb (
TYPE sap_rfc,
MSHOST 'sapms.example.com', SYSID 'PRD', GROUP 'PUBLIC',
CLIENT '100', USER 'ERPL_USER', PASSWD 'change-me'
);
-- Through a SAProuter (string from the Basis team)
CREATE SECRET my_sap_router (
TYPE sap_rfc,
ASHOST 'sap.internal', SYSNR '00', CLIENT '100',
USER 'ERPL_USER', PASSWD 'change-me',
SAPROUTER '/H/router.example.com/S/3299'
);
-- SNC / Kerberos single sign-on, no password
CREATE SECRET my_sap_snc (
TYPE sap_rfc,
ASHOST 'sap.example.com', SYSNR '00', CLIENT '100', USER 'ERPL_USER',
SNC_MODE '1',
SNC_PARTNERNAME 'p:CN=SAP/[email protected]',
SNC_LIB '/usr/lib/libgsskrb5.so'
);
-- S/4HANA Cloud (no gateway): WebSocket RFC over TLS with a client certificate
CREATE SECRET my_sap_cloud (
TYPE sap_rfc,
WSHOST 'my-tenant.s4hana.cloud', WSPORT '443', USE_TLS 'true',
TLS_CLIENT_PSE '/etc/erpl/client.pse', ALIAS_USER 'ERPL_COMM',
CLIENT '100', LANG 'EN'
);
PERSISTENT (CREATE PERSISTENT SECRET …) writes the secret to ~/.duckdb/stored_secrets/ so it
survives restarts — unencrypted, password included. Remove it with DROP PERSISTENT SECRET my_sap;.
Prefer temporary secrets on shared machines; for servers see erpl-deploy.dest reads every parameter from a destination in sapnwrfc.ini instead
(PRAGMA sap_rfc_set_ini_path('/etc/erpl') points at the file).duckdb_secrets() — for secrets created by
erpl v2026.07.30.1 or later. A persistent secret created by an older version shows its password there:
re-create it. Redaction only affects display; never SELECT secret_string (or *) from
duckdb_secrets() in a shared session or transcript.erpl_tunnel extension (skill
erpl-tunnel-import; install with /plugin marketplace add DataZooDE/erpl-tunnel →
/plugin install erpl-tunnel@erpl-tunnel).PRAGMA sap_rfc_ping; -- 'PONG' or a logon error
PRAGMA sap_rfc_ping(secret='my_sap'); -- a specific secret
SELECT sap_rfc_backend(); -- 'nwrfc' (SAP SDK) or 'proto'
SELECT sap_rfc_live_connections(); -- 0 between queries
For the whole check in one go — ping, backend, versions, required authorizations — run the
/erpl:connect-check command.
| Error text contains | Meaning | Fix |
|---|---|---|
RFC_COMMUNICATION_FAILURE, partner … not reached, timeout | Host/port unreachable (sysnr NN → gateway port 33NN) or SAP not responding | Check network, SAProuter string, firewall; tunnel if needed |
RFC_LOGON_FAILURE, Name or password is incorrect | Wrong user/password/client | Correct secret; repeated failures lock the user in SAP |
User is locked | Too many failed logons | SAP admin unlocks in SU01 |
no RFC authorization / S_RFC | Logged on, but the user may not call a function module | Give the Basis team the list from sap_rfc_authorizations() (or /erpl:basis-handout) |
Unknown parameter in CREATE SECRET | Field name not accepted by sap_rfc | See references/secret-fields.md |
sap_rfc_authorizations() lists which RFC function modules each erpl function calls, so S_RFC can be
scoped to least privilege. It is static and needs no connection.
-- check:offline
SELECT DISTINCT rfc_function_module FROM sap_rfc_authorizations()
WHERE extension = 'erpl_rfc' AND rfc_function_module NOT IN ('<user-specified>', '<none>')
ORDER BY 1;
APE needs more than S_RFC (a role with the pipeline-engine objects); sap_ape_check_authorizations()
asks the SAP system per object and returns a verdict (see erpl-ape-cds). The full package for the
Basis team is produced by /erpl:basis-handout (background in erpl-deploy).
erpl_rfc_backend | Implementation | When |
|---|---|---|
'nwrfc' (default) | SAP NetWeaver RFC SDK, bundled by the trampoline | Default; full SNC/CommonCryptoLib support (tls_client_pse) |
'proto' | erpl-proto, a pure-Rust RFC implementation | Hosts where the SDK libraries cannot be loaded; wsRFC with PEM files (ws_client_cert/ws_client_key) |
-- check:offline
SET erpl_rfc_backend = 'proto'; -- before the first SAP call of the process
SELECT current_setting('erpl_rfc_backend');
The environment variable ERPL_RFC_BACKEND sets the same thing for processes you do not control.
erpl is source-available under the Business Source License 1.1 (see LICENSE). Reading SAP ERP tables is
covered by the Community Edition; BW (BICS) and replication (ODP) are Enterprise Edition capabilities —
contact https://erpl.io for licensing. Using erpl inside a commercial product or service needs a commercial
licence.
On by default, anonymous, and never includes SAP hosts, users, table or function names, SQL or data (TELEMETRY.md lists every field). Turn it off with either:
-- check:offline
SET erpl_telemetry_enabled = false;
export DATAZOO_DISABLE_TELEMETRY=1
Save as session.sql and run duckdb -unsigned < session.sql (after the one-time INSTALL above):
-- check:skip-live (example host; the live check supplies its own secret)
LOAD erpl;
CREATE SECRET my_sap (
TYPE sap_rfc,
ASHOST 'sap.example.com', SYSNR '00', CLIENT '100',
USER 'ERPL_USER', PASSWD 'change-me', LANG 'EN'
);
PRAGMA sap_rfc_ping;
SELECT * FROM sap_show_tables(TABLENAME => 'T00*') LIMIT 5;
The same session against an existing secret, as an assistant would run it to check access:
PRAGMA sap_rfc_ping;
SELECT * FROM sap_show_tables(TABLENAME => 'T00*') LIMIT 5;
SELECT sap_rfc_live_connections();
See also: erpl-choose-interface (which function for which SAP object), erpl-deploy (servers,
containers, secrets in production), erpl-operate (tracing and troubleshooting).
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-deployRunning erpl in production: pinning DuckDB and erpl versions, installing on servers, containers and CI (INSTALL erpl FROM get.erpl.io or an offline release archive, the -unsigned / allow_unsigned_extensions setting, the extension directory the trampoline writes to), Python/Node/R hosts, choosing the RFC backend (erpl_rfc_backend nwrfc vs proto, ERPL_RFC_BACKEND), handling secrets on servers (persistent secret directory, secrets from the environment, SNC and certificates), the SAP-side package for the Basis team (dedicated RFC user, S_RFC scoped with sap_rfc_authorizations(), the APE role checked with sap_ape_check_authorizations(), WebSocket RFC/UCON), network paths (SAProuter, erpl_tunnel), and telemetry policy (DATAZOO_DISABLE_TELEMETRY). Use when moving an erpl workload from a laptop to a server, container, scheduler or CI job, or when preparing the SAP user and authorizations for go-live.
/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.
Other plugins' skills for the same job