bw_data
Filter characteristic values, preview DataSource rows, push records into an aDSO write interface, selectively delete aDSO data, or save Analysis for Office workbooks in SAP BW/4HANA.
Instructions
Work with data rather than definitions: filter values, DataSource preview, push into a write-interface aDSO, selective deletion, save an Analysis for Office workbook. The operation enum lists every operation with what it requires; bw_describe(tool: "bw_data", operation: "…") gives the complete parameter definition of one.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"operation": "<operation>"
},
"name": "bw_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Push mode. [push] | |
| name | No | Technical name to save under (e.g. [save_afo_workbook] | |
| role | No | Role whose menu the workbook is added to (e.g. [save_afo_workbook] | |
| folder | No | Folder path inside the role menu, separated by "/" (e.g. [save_afo_workbook] | |
| records | No | Defined per operation — bw_describe(tool: "bw_data", operation: "…") gives each definition. [preview_datasource, push] | |
| job_name | No | Name of the background job (default: BW-generated). [delete_selective] | |
| max_rows | No | Maximum number of values to return (default 201). [filter_values] | |
| simulate | No | Only count the matching records, delete nothing (default true). [delete_selective] | |
| adso_name | No | Defined per operation — bw_describe(tool: "bw_data", operation: "…") gives each definition. [push, delete_selective] | |
| file_path | No | Local .xlsx/.xlsm file to save. [save_afo_workbook] | |
| operation | Yes | Operation — one of: filter_values: Look up valid characteristic values for use in query filters or variable inputs. Requires characteristic_name, search_string. | preview_datasource: Fetch a live data preview / sample rows from a DataSource (RSDS) — reads the first N rows directly from the source system and returns them as a formatted table… Requires datasource_name, source_system. | push: Push data records directly into an aDSO inbound table via the SAP BW/4HANA write interface. Requires adso_name, records. | delete_selective: Selectively delete records from an aDSO by conditions on its characteristics, or simulate the deletion to count the matching records. Requires adso_name, conditions. | save_afo_workbook: Save an Analysis for Office workbook to BW, as Analysis for Office does, and optionally place it in a role menu. Requires name. | |
| overwrite | No | Replace an existing workbook of the same name (default false). [save_afo_workbook] | |
| conditions | No | At least one condition. [delete_selective] | |
| description | No | Workbook text, at most 60 characters. [save_afo_workbook] | |
| info_provider | No | Optional. [filter_values] | |
| search_string | No | Wildcard search pattern. [filter_values] | |
| source_system | No | Logical source system name (e.g. [preview_datasource] | |
| content_base64 | No | The workbook as base64, instead of file_path. [save_afo_workbook] | |
| force_deletion | No | Force the deletion where BW otherwise refuses it (default false). [delete_selective] | |
| datasource_name | No | DataSource name (e.g. [preview_datasource] | |
| propagate_deletion | No | The cockpit option "Propagate deletion" (default false). [delete_selective] | |
| characteristic_name | No | InfoObject technical name to get values for (e.g. [filter_values] |