Create and change InfoSources
bw_write_infosourceCreate or update an SAP BW/4HANA InfoSource, including fields, key order, aggregation, and DataStore-like settings, to model and maintain 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 at the end of the field list. 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. "AREA_NAME"). [create] | |
| operation | Yes | Operation — one of: create: Create a new InfoSource (TRCS) shell. Requires name, description, info_area. | update: Change an InfoSource: description, the aggregation and DataStore-like switches, fields, key and field order. Requires name. | |
| transport | No | Transport request number (e.g. DEVK900123). Only required if the BW system requires transport assignment. [update] | |
| key_fields | No | The complete key in key order; an empty list removes the key. [update] | |
| aggregation | No | Switch "Aggregation" of the InfoSource: records with the same key are aggregated. [update] | |
| description | No | Defined per operation — bw_describe(tool: "bw_write_infosource", operation: "…") gives each definition. | |
| field_order | No | Field names in the order they are to come first; fields not named follow in their present order. [update] | |
| change_fields | No | Changes to existing fields, one entry per field. Full definition: bw_describe(tool: "bw_write_infosource", operation: "update"). [update] | |
| remove_fields | No | Field names to remove from the InfoSource (e.g. FIELD_NAME). Other existing fields are preserved. [update] | |
| datastore_like | No | Switch that makes the InfoSource behave like a DataStore object. Turning it on adds the record mode field if it is missing; that field cannot be removed while the switch is on. [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), TRCS (another InfoSource). [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] |