bw_write_infosource
Create or update an SAP BW/4HANA InfoSource to define fields, labels, and source assignments, enabling modeling or adjustment of BW data sources.
Instructions
Create or change an InfoSource. The operation enum lists every operation with what it requires; bw_describe(tool: "bw_write_infosource", 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_infosource"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | InfoSource name (e.g. "INFOSOURCE_NAME"). | |
| fields | No | Fields to add (or whose label to update). Full definition: bw_describe(tool: "bw_write_infosource", operation: "update"). [update] | |
| package | No | Development package (default "$TMP"). [create] | |
| info_area | No | InfoArea to create the InfoSource in (e.g. "MCPBW"). [create] | |
| operation | Yes | Operation — one of: create: Create a new InfoSource (TRCS) shell. Requires name, description, info_area. | update: Update an InfoSource — change description, add/remove fields, and update labels. Requires name. | |
| transport | No | Transport request number (e.g. DEVK900123). Only required if the BW system requires transport assignment. [update] | |
| description | No | Defined per operation — bw_describe(tool: "bw_write_infosource", operation: "…") gives each definition. | |
| remove_fields | No | Field names to remove from the InfoSource (e.g. FIELD_NAME). Other existing fields are preserved. [update] | |
| copy_from_object_name | No | Technical name of the source object to copy fields from. Required when copy_from_object_type is set. [create] | |
| copy_from_object_type | No | Type of the source object: ADSO (aDSO), HCPR (CompositeProvider), RSDS (DataSource), IOBJ (InfoObject). [create] | |
| copy_from_source_system | No | Source system name (required when copy_from_object_type is RSDS, e.g. "PC_FILE"). [create] | |
| copy_from_object_sub_type | No | SubType for IOBJ only: ATTR (Attribute), TEXT (Text), HIER (Hierarchy). [create] |