bw_create_query
Create a BW Query on an InfoProvider. Optionally copy from an existing query to duplicate its structure, filters, 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.
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. |