Create and change CompositeProviders
bw_write_composite_providerCreate or modify SAP BW CompositeProviders, including fields, inputs, joins, mappings, filters, and settings, so models can be built or changed programmatically.
Instructions
Create or change a CompositeProvider. The operation enum lists every operation with what it requires; bw_describe(tool: "bw_write_composite_provider", 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_composite_provider"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node | No | Name of the view node the action works on (e.g. "J1"), for a CompositeProvider with more than one; defaults to the default node. remove_node: the node to remove. [update] | |
| label | No | Defined per operation — bw_describe(tool: "bw_write_composite_provider", operation: "…") gives each definition. | |
| action | No | Defaults to "add_field". [update] | |
| inputs | No | Source InfoProviders to attach right away. Required in practice for a Join node. [create] | |
| enabled | No | update_navigation_attributes: true (default) switches the attributes on, false switches them off. [update] | |
| package | No | Development package (default "$TMP"). [create] | |
| mappings | No | add_input / update_mapping. Full definition: bw_describe(tool: "bw_write_composite_provider", operation: "update"). [update] | |
| copy_from | No | Copy the structure of this existing CompositeProvider. view_type, inputs and stackable are then irrelevant — they come from the template. [create] | |
| dimension | No | Field group name (e.g. "GROUP_NAME"). add_field / add_input / update_mapping: group for the fields the call creates, defaults to CHARACTERISTICS or KEYFIGURES. [update] | |
| info_area | No | InfoArea to create it in (e.g. "AREA_NAME"). [create] | |
| join_type | No | update_join: "inner" (default), "leftOuter", etc. — lowercase first letter. [update] | |
| key_pairs | No | update_join: the join key field pairs, named as they appear on each side's own source. Full definition: bw_describe(tool: "bw_write_composite_provider", operation: "update"). [update] | |
| node_type | No | insert_node: kind of the new view node. [update] | |
| operation | Yes | Operation — one of: create: Create a CompositeProvider (HCPR). Requires composite_provider_name, label, info_area. | update: Change a CompositeProvider (HCPR): its fields, its source providers, their field mappings, the join condition, or root settings. Requires composite_provider_name. | |
| stackable | No | Defined per operation — bw_describe(tool: "bw_write_composite_provider", operation: "…") gives each definition. | |
| transport | No | Optional transport request (e.g. DEVK900123). Omit for local objects. [update] | |
| view_type | No | View node type. Defaults to "Join". [create] | |
| left_alias | No | update_join / remove_join: alias of the left input. [update] | |
| name_usage | No | How an InfoObject-bound field is exposed. Full definition: bw_describe(tool: "bw_write_composite_provider", operation: "update"). [update] | |
| cardinality | No | update_join: defaults to "CN_N". [update] | |
| input_alias | No | remove_input / replace_input / update_mapping: alias of the input (e.g. "U1.ADSO.1"). [update] | |
| right_alias | No | update_join / remove_join: alias of the right input. [update] | |
| default_node | No | update_settings: path reference to the default view node (e.g. "#///U1"). [update] | |
| provider_name | No | add_input / replace_input: technical name of the source InfoProvider to attach, or a SAP HANA view as "<package>::<view>". [update] | |
| provider_type | No | add_input / replace_input: TLOGO-style suffix used in the generated alias (e.g. "ADSO"). Defaults to "ADSO". [update] | |
| temporal_join | No | update_temporal_join: true (default) writes the temporal join, false switches it off. [update] | |
| key_date_field | No | update_temporal_join, with input_alias: the date field of that input the time-dependent inputs are read for; an empty text removes it. [update] | |
| new_field_name | No | update_fields: a new name for the one field named in info_object_name. Its mappings and the references of other fields follow. [update] | |
| valid_to_field | No | update_temporal_join, with input_alias of an aDSO: the date field a record is valid to. [update] | |
| info_object_name | No | add_field / remove_field / update_fields: field name or comma-separated list (e.g. "IOBJ_NAME" or "IOBJ_A,IOBJ_B"). [update] | |
| source_providers | No | add_field only. Comma-separated part provider names or aliases (e.g. "PROVIDER_NAME" or "U1.ADSO.1") to restrict which inputs get a mapping. [update] | |
| valid_from_field | No | update_temporal_join, with input_alias of an aDSO: the date field a record is valid from (e.g. "FIELD_NAME"). Goes with valid_to_field; both empty remove the interval. [update] | |
| field_description | No | update_fields: the description of the listed fields in this CompositeProvider. [update] | |
| filter_expression | No | update_filter: the SQL condition every record of the view node has to meet, written over the fields of the CompositeProvider in double quotes (e.g. "FIELD_NAME" = 'VALUE'); an emp… [update] | |
| new_dimension_name | No | update_group: rename the group to this name; its fields move along. [update] | |
| aggregation_behaviour | No | update_settings. [update] | |
| navigation_attributes | No | update_navigation_attributes: attributes to switch, by attribute name ("ATTR_NAME") or as "<FIELD_IOBJ>__<ATTR_NAME>". [update] | |
| time_dependent_fields | No | update_temporal_join, with input_alias of a characteristic that has time-dependent attributes: true (default) joins over its validity, false reads its attributes as of a key date. [update] | |
| composite_provider_name | No | Defined per operation — bw_describe(tool: "bw_write_composite_provider", operation: "…") gives each definition. |