/erpl:bics-navigate <state id> [first step, e.g. 'drill down by product' | 'only DE and FR' | 'swap axes'] [--db file] [secret=name]from erpl
Navigates an open SAP BW query session step by step — drill down, swap axes, filter, sort, show texts or attributes — re-rendering after each step.
Ships in erpl. Installing the plugin adds it to Claude Code.
Navigate the BICS session: $ARGUMENTS
Use the erpl-bics-queries skill.
How to run SQL. DuckDB CLI with -unsigned, script through stdin, LOAD erpl; first, never several
statements in one duckdb -c string, never print passwords. Always use the same database file the
session was opened in (--db, else erpl_bics.duckdb): the session state lives in its
erpl_bics.bics_state table, and each command run is a new process. With secret= given, pass
secret => '<name>' to every call that accepts it.
Check the session exists: SELECT state_id, latest_version, query, last_saved FROM sap_bics_sessions() WHERE state_id = '<id>';. If not, offer /erpl:bics-run.
Show where it stands: SELECT * FROM sap_bics_describe(id => '<id>'); — state_rows,
state_columns, state_free (each with its display, sort and totals setting) and variables.
Translate each requested step into one call, using technical names from the description:
| Step | Call |
|---|---|
| drill down by X | sap_bics_rows('<id>', 'X', op => 'ADD') |
| replace rows by X | sap_bics_rows('<id>', 'X', op => 'SET') |
| X across | sap_bics_columns('<id>', 'X', op => 'ADD') |
| remove X | sap_bics_rows('<id>', 'X', op => 'REMOVE') (or columns) |
| swap axes | rows ... op => 'SET' with the former columns, then columns ... op => 'SET' with the former rows |
| only / add / exclude members | sap_bics_filter('<id>', 'X', 'v1', …, op => 'SET' / 'ADD' / 'REMOVE'); clear: op => 'SET' without members |
| texts / keys / both | sap_bics_set_char_prop('<id>', 'X', 'DISPLAY', 'TEXT' / 'KEY' / 'BOTH') |
| sort | sap_bics_set_char_prop('<id>', 'X', 'SORT', 'ASC' / 'DESC' / 'NONE') |
| hide totals | sap_bics_set_char_prop('<id>', 'X', 'TOTALS', 'HIDE') |
| show attribute A of X | sap_bics_attributes('<id>', 'X', 'A') |
| show hidden key figures | sap_bics_hidden_members('<id>', '<structure>', 'SHOW') |
After each step: CREATE OR REPLACE TABLE bics_result AS SELECT * FROM sap_bics_result('<id>'); and
render it as /erpl:bics-run does (pivot by default). Before each step note the current axes, filters
and properties from sap_bics_describe(id => '<id>'), so a successful step can be undone by setting
exactly those again. If BW rejects a step, report its message and change nothing: the session already
kept its previous version, and an "opposite" call would alter a valid state.
Keep a running list of the steps' SQL and print it at the end, followed by sap_bics_end('<id>') as the
suggested close (run it only if the user says so).
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
npx claudepluginhub datazoode/erpl --plugin erpl7 commands in this plugin
/basis-handoutBasis HandoutWrite the SAP Basis handout for an erpl deployment — RFC user, S_RFC scope, APE role objects, network — from what will actually be used/bics-findBics FindFind SAP BW queries or cubes by name or text and describe one — characteristics, key figures, variables/bics-runBics RunRun a SAP BW query or cube — fill variables, set rows/columns/filters, fetch, render as table, chart, dashboard or file, and close the session/bics-sessionsBics SessionsList stored SAP BW (BICS) sessions and clean them up — end single sessions, drop history, remove stale ones/connect-checkConnect CheckCheck an erpl SAP connection end to end — versions, backend, logon, required authorizations — and say what to fix/diagnoseDiagnose a failing or suspicious erpl query — classify it, reproduce it safely, collect trace, stats and versions, find the cause, draft a ticketOther plugins' commands for the same job