Create and change InfoObjects
bw_write_infoobjectCreate or update SAP BW/4HANA InfoObjects and create, update, or delete their hierarchies, with activation support, by selecting an operation that defines required parameters.
Instructions
Create or change an InfoObject and its hierarchies. The operation enum lists every operation with what it requires; bw_describe(tool: "bw_write_infoobject", 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_write_infoobject"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Defined per operation — bw_describe(tool: "bw_write_infoobject", operation: "…") gives each definition. [create, update] | |
| nodes | No | Defined per operation — bw_describe(tool: "bw_write_infoobject", operation: "…") gives each definition. [create_hierarchy, update_hierarchy] | |
| length | No | Defined per operation — bw_describe(tool: "bw_write_infoobject", operation: "…") gives each definition. [create, update] | |
| display | No | Characteristic: How the characteristic is shown in a query by default. [update] | |
| package | No | Development package. [create] | |
| version | No | A = the hierarchy (default), M = only its revised version. [delete_hierarchy] | |
| activate | No | Defined per operation — bw_describe(tool: "bw_write_infoobject", operation: "…") gives each definition. [create_hierarchy, update_hierarchy] | |
| data_type | No | Defined per operation — bw_describe(tool: "bw_write_infoobject", operation: "…") gives each definition. [create, update] | |
| info_area | No | InfoArea to assign the InfoObject to (e.g. "AREA_NAME"). [create] | |
| long_text | No | Characteristic: Long text (60 characters) exists. [update] | |
| mime_type | No | XXL only: MIME type of the content of a raw string (e.g. "application/pdf"). [create] | |
| operation | Yes | Operation — one of: create: Create a new InfoObject — Characteristic (CHA) or Key Figure (KYF) — inactive. Requires name, info_area, description. | update: Update an InfoObject. Requires name. | create_hierarchy: Create a hierarchy for a characteristic and activate it. Requires characteristic, hierarchy_name, description, nodes. | update_hierarchy: Change a hierarchy: its description and/or its tree, then activate it. Requires characteristic, hierarchy_name. | delete_hierarchy: Delete a hierarchy of a characteristic. Requires characteristic, hierarchy_name. | |
| transport | No | Defined per operation — bw_describe(tool: "bw_write_infoobject", operation: "…") gives each definition. [create, update] | |
| unit_type | No | UNI only: "currency" (default) or "unit" (unit of measure). [create] | |
| attributes | No | New attribute list, replacing all existing ones. [update] | |
| fixed_unit | No | Defined per operation — bw_describe(tool: "bw_write_infoobject", operation: "…") gives each definition. [create, update] | |
| lower_case | No | Defined per operation — bw_describe(tool: "bw_write_infoobject", operation: "…") gives each definition. [create, update] | |
| short_text | No | Characteristic: Short text (20 characters) exists. [update] | |
| with_texts | No | Defined per operation — bw_describe(tool: "bw_write_infoobject", operation: "…") gives each definition. [create, update] | |
| aggregation | No | Key figure: Standard aggregation; NO2 means no aggregation. [update] | |
| description | No | Defined per operation — bw_describe(tool: "bw_write_infoobject", operation: "…") gives each definition. [4 of 5 operations] | |
| medium_text | No | Characteristic: Medium text (40 characters) exists. [update] | |
| output_length | No | Characteristic: Output length, 0 to 250. [update] | |
| xxl_data_type | No | XXL only: STRG (string, default), SSTR (short string) or RSTR (raw string). [create] | |
| attribute_only | No | The InfoObject can only be used as an attribute, not in a provider on its own. [update] | |
| characteristic | No | Defined per operation — bw_describe(tool: "bw_write_infoobject", operation: "…") gives each definition. [create_hierarchy, update_hierarchy, delete_hierarchy] | |
| decimal_places | No | Key figure: Decimal places shown, 0 to 9, or "default". [update] | |
| fixed_currency | No | Defined per operation — bw_describe(tool: "bw_write_infoobject", operation: "…") gives each definition. [create, update] | |
| hierarchy_name | No | Defined per operation — bw_describe(tool: "bw_write_infoobject", operation: "…") gives each definition. [create_hierarchy, update_hierarchy, delete_hierarchy] | |
| high_precision | No | Key figure: High precision; for the data types CURR, QUAN and DEC. [update] | |
| xxl_attributes | No | Characteristic: The complete list of XXL attributes (XXL InfoObjects holding long text or binary content per… [update] | |
| display_scaling | No | Key figure: Scaling of the displayed value as a power of ten, 0 (in 1) to 9, or "default". [update] | |
| extra_long_text | No | Characteristic: Long text is extra long (1333 characters); needs long_text. [update] | |
| infoobject_type | No | InfoObject type: CHA (Characteristic), KYF (Key Figure), UNI (unit or currency InfoObject) or XXL (long text… [create] | |
| aggregation_type | No | Key figure: Aggregation type. [create] | |
| high_cardinality | No | Characteristic: High cardinality: no SID table for the values. [update] | |
| with_hierarchies | No | Characteristic: Characteristic can have hierarchies. [update] | |
| with_master_data | No | Defined per operation — bw_describe(tool: "bw_write_infoobject", operation: "…") gives each definition. [create, update] | |
| conversion_routine | No | Defined per operation — bw_describe(tool: "bw_write_infoobject", operation: "…") gives each definition. [create, update] | |
| hierarchy_intervals | No | Characteristic: Intervals are permitted in hierarchies. [update] | |
| compound_infoobjects | No | Defined per operation — bw_describe(tool: "bw_write_infoobject", operation: "…") gives each definition. [create, update] | |
| filter_value_display | No | Characteristic: How filter values are offered while a query runs. [update] | |
| texts_time_dependent | No | Characteristic: Texts are time-dependent. [update] | |
| exception_aggregation | No | Key figure: Aggregation along the reference characteristic, different from the standard aggregation (e.g. "LA… [update] | |
| referenced_infoobject | No | Characteristic: create it as a reference to this active characteristic (e.g. "IOBJ_NAME"). [create] | |
| authorization_relevant | No | Characteristic: Relevant for the analysis authorization check. [update] | |
| hierarchy_reverse_sign | No | Characteristic: The sign of nodes can be reversed. [update] | |
| usable_as_infoprovider | No | Characteristic: The characteristic is offered as a provider of its own — for queries and as an input of a Com… [update] | |
| texts_language_dependent | No | Characteristic: Texts are language-dependent. [update] | |
| unit_currency_infoobject | No | Defined per operation — bw_describe(tool: "bw_write_infoobject", operation: "…") gives each definition. [create, update] | |
| hierarchy_time_dependency | No | Characteristic: Time dependency of the hierarchies: "none", "entire_hierarchy" (each hierarchy has a validity… [update] | |
| object_specific_data_type | No | Key figure: Data type. [create] | |
| hierarchy_version_dependent | No | Characteristic: Hierarchies are version-dependent. [update] | |
| filter_values_query_execution | No | Characteristic: Where the filter values come from when a query runs. [update] | |
| filter_values_query_definition | No | Characteristic: Where the filter values come from when a query is defined. [update] | |
| exception_aggregation_reference | No | Key figure: The characteristic the exception aggregation runs along (e.g. "TIME_CHARACTERISTIC"). [update] |