No slash command · from erpl
Queries SAP BW metadata including InfoProviders, DataSources, transformations, InfoObjects, queries, and lineage/impact analysis via erpl_bics functions. Use for BW documentation, auditing, migration prep, or tracing key figure origins.
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.
These functions read BW's repository tables (over RFC_READ_TABLE) and return them as tables, so a whole
BW landscape can be queried, joined and versioned with SQL. Nothing is inferred: every row comes from
repository data.
S_RFC for RFC_READ_TABLE plus table authorizations
(S_TABU_*) for the RS* tables — not BW analysis authorizations.RFC_READ_TABLE cannot read: sap_bics_meta_hcpr_mapping.source_field is always
empty, and HCPR "fields" are the InfoObjects it requires.sap_bics_meta_query_stats() without a query, or
sap_bics_lineage_edges() without scope, can be large on a production BW — scope them.CREATE TABLE … AS once, then query
locally.SELECT provider_type, count(*) FROM sap_bics_meta_providers() GROUP BY ALL;
SELECT provider, provider_type, txtlg, changed_on FROM sap_bics_meta_providers(type => 'CUBE');
SELECT field_name, infoobject, is_key, data_type, text FROM sap_bics_meta_provider_fields('0D_NW_C01');
SELECT iobjnm, iobjtp, datatp, txtlg FROM sap_bics_meta_infoobjects(iobjnm => '0D_NW_*');
SELECT * FROM sap_bics_describe_infoobject('0D_NW_CNTRY');
| Function | Rows |
|---|---|
sap_bics_meta_providers([type]) | InfoProviders; type CUBE, ADSO, HCPR, ODSO |
sap_bics_meta_provider_fields(provider [, provider_type]) | Fields with InfoObject, key flag, type, text |
sap_bics_meta_datasources([appcomp]) / sap_bics_meta_datasource_fields(ds) | DataSources and their fields |
sap_bics_meta_transformations([active_only]) / sap_bics_meta_transform_fields(transid) | Transformations and their rules |
sap_bics_meta_hcpr_components(hcpr) / sap_bics_meta_hcpr_mapping([hcpr]) | CompositeProvider parts |
sap_bics_meta_queries() / sap_bics_meta_query_usage(q) / sap_bics_meta_query_elements(q) | Queries, their provider, their elements (restricted/calculated key figures with selection_info, formula) |
sap_bics_meta_query_stats([query_name, from_date, to_date]) | Executions, runtime and users per query and day (YYYYMMDD dates) |
sap_bics_meta_objxref([tlogo, objnm, tlogo_dep]) | Raw BW object cross reference |
SELECT element_type, element_name, iobjnm, description, selection_info, formula
FROM sap_bics_meta_query_elements('0D_FC_NW_C01_Q0001')
ORDER BY element_type;
element_type: CHA characteristic, KYF plain key figure, SEL restricted key figure/selection, CAL
calculated key figure/formula, else BW's own type (STR, VAR, …).
-- Edges around one object (transformations in/out, queries on it)
SELECT edge_type, src_kind, src_name, src_field, tgt_kind, tgt_name, tgt_field
FROM sap_bics_lineage_edges(scope => '0D_NW_C01');
-- Everything upstream of a query: provider, InfoObjects, transformations, sources, source systems
SELECT level, object_type, object_name, field_name, edge_type, path
FROM sap_bics_query_lineage('0D_FC_NW_C01_Q0001') ORDER BY level;
-- Downstream impact of an object or one field
SELECT hop, target_object, target_field, edge_type, path
FROM sap_bics_lineage_trace(source_object => '0D_NW_C01');
-- The object graph as JSON {nodes, edges} for a diagram tool
SELECT lineage_graph_json FROM sap_bics_lineage_graph_json(scope => '0D_NW_C01');
-- Queries nobody ran in the statistics window (statistics must be switched on in BW)
SELECT q.* FROM sap_bics_meta_queries() q
ANTI JOIN (SELECT DISTINCT query_name FROM sap_bics_meta_query_stats(from_date => '20260101')) s
ON q.query = s.query_name;
sap_bics_meta_queries returns query, infoprovider, objvers, compuid, author, lastuser,
modtime. Also useful:
| Question | Approach |
|---|---|
| Which queries use InfoObject X? | sap_bics_lineage_trace(source_object => '<provider>', source_field => 'X') filtered to edge_type = 'QUERY' |
| What feeds this aDSO? | sap_bics_lineage_edges(scope => '<adso>') where tgt_name = '<adso>' |
| Slowest queries | sap_bics_meta_query_stats(...) ordered by avg_duration_sec |
| Document a model | Materialise providers, fields, transformations; render with the visualization plugin |
To change BW models (create, activate, transport), use the erpl-adt plugin (erpl-adt-bw;
/plugin marketplace add DataZooDE/erpl-adt → /plugin install erpl-adt@erpl-adt). For diagrams or
dashboards over these tables, the anofox-visualization plugin (anofox-visualization-charts).
See also: erpl-bics-queries (executing queries), erpl-choose-interface.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
sap-bw, bw-metadata, data-lineage, impact-analysis, erpl-bics
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-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.
Other plugins' skills for the same job