bw_create_query
Create a BW query on an InfoProvider, either as a fresh empty query or by copying an existing query with its layout, filters, variables, and key figures.
Instructions
Create a new BW Query (TLOGO ELEM) on an InfoProvider in package $TMP. Without copy_from the query is created empty and consistent (no rows, columns, or key figures yet). With copy_from the new query is created as a full copy of an existing query (layout, filter, variables, key figures); the description parameter still applies to the copy, and infoprovider may be omitted (it is derived from the source query). Support for transportable packages is not yet available; only package $TMP is supported.
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": {
"query_name": "<query_name>"
},
"name": "bw_create_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| copy_from | No | Technical name of an existing query to copy (e.g. "QUERY_NAME"). The new query is created as a full copy of its content. | |
| query_name | Yes | Technical name of the query to create (e.g. "QUERY_NAME"). | |
| description | No | Query description. Defaults to query_name if omitted. | |
| infoprovider | No | Technical name of the InfoProvider the query is built on (e.g. "PROVIDER_NAME"). Required unless copy_from is given, in which case it defaults to the source query's provider. |