get_query_filters
Extract filter restrictions from a SAP BW Query: retrieve fixed value ranges, default values, and variable references, labeled by BEx type, via the Modeling API.
Instructions
Read the filter restrictions defined on a BW Query.
Retrieves the query model from the BW Modeling API and extracts the global query filter: for each restricted characteristic it returns the fixed value ranges and/or the variable references that restrict it.
Each filter is labelled with its BEx filter type (from usageType):
"Fixed Filter" (asFilter): a hard restriction the user cannot change at runtime (e.g. 0FISCVARNT = V5).
"Default Value" (asStartValue): a pre-filled default the user can override at runtime (e.g. 0CUST_GROUP = 05, 13, ...).
"Fixed Filter + Default Value" (asStartValueAndFilter): used as both.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query_name | Yes | Query technical name (e.g. "B080_V05_Q001"). | |
| object_version | No | Object version, "A" (active, default) or "M" (modified). | A |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||