bw_write_process_chain
Create or modify SAP BW/4HANA process chains by adding, removing, or connecting steps, DTP loads, ABAP programs, error links, and decision variants.
Instructions
Create or change a process chain: steps, edges, DTP and program steps, error links, decision variants. The operation enum lists every operation with what it requires; bw_describe(tool: "bw_write_process_chain", 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_process_chain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Target step. Same reference forms as "from". [add_edge, remove_edge] | |
| dtp | No | DTP variant name to append (e.g. [append_dtp] | |
| dtps | No | Optional. [add_error_links] | |
| from | No | Defined per operation — bw_describe(tool: "bw_write_process_chain", operation: "…") gives each definition. [add_edge, remove_edge] | |
| mode | No | "load": add a switch to load mode (PLSWITCHL). [add_plswitch] | |
| name | No | Defined per operation — bw_describe(tool: "bw_write_process_chain", operation: "…") gives each definition. | |
| step | No | Step to remove. [remove_step] | |
| after | No | Defined per operation — bw_describe(tool: "bw_write_process_chain", operation: "…") gives each definition. [append_dtp, add_program, add_plswitch] | |
| edges | No | Defined per operation — bw_describe(tool: "bw_write_process_chain", operation: "…") gives each definition. [create, update] | |
| local | No | Call location. [add_program] | |
| steps | No | Defined per operation — bw_describe(tool: "bw_write_process_chain", operation: "…") gives each definition. [create, update] | |
| around | No | mode "bracket" only: the step to enclose (usually the DTP that loads the aDSO). [add_plswitch] | |
| before | No | Defined per operation — bw_describe(tool: "bw_write_process_chain", operation: "…") gives each definition. [append_dtp, add_program, add_plswitch] | |
| status | No | Defined per operation — bw_describe(tool: "bw_write_process_chain", operation: "…") gives each definition. [add_edge, remove_edge] | |
| adsoact | No | g. [append_dtp] | |
| formula | No | Branch condition formula (BW decision formula syntax), e.g. [create_decision_variant] | |
| new_dtp | No | DTP variant name to set instead (e.g. [swap_dtp] | |
| old_dtp | No | DTP variant name currently in the chain (e.g. [swap_dtp] | |
| package | No | Target package. [create_decision_variant] | |
| program | No | ABAP program / report to execute (e.g. [add_program] | |
| variant | No | Optional ABAP report (SE38) selection variant name (e.g. [add_program] | |
| activate | No | Defined per operation — bw_describe(tool: "bw_write_process_chain", operation: "…") gives each definition. [10 of 11 operations] | |
| infoarea | No | Defined per operation — bw_describe(tool: "bw_write_process_chain", operation: "…") gives each definition. [create, update] | |
| edge_mode | No | Defined per operation — bw_describe(tool: "bw_write_process_chain", operation: "…") gives each definition. [append_dtp, add_program, add_plswitch] | |
| operation | Yes | Operation — one of: create: Create a Process Chain (RSPC) via the BW/4HANA Cockpit REST API. Requires name, infoarea, description, steps, edges. | update: Replace the step model (nodes and edges) of an existing Process Chain (RSPC) via the BW/4HANA Cockpit REST API. Requires name, steps, edges. | append_dtp: Add one DTP load step (optionally followed by its own DSO activation step) to an existing Process Chain (RSPC), via the BW/4HANA Cockpit REST API. Requires name, dtp. | swap_dtp: Swap one DTP load variant for another in an existing Process Chain (RSPC), via the BW/4HANA Cockpit REST API. Requires name, old_dtp, new_dtp. | add_program: Add an "Execute ABAP Program" step (RSPC process type ABAP, "Programm ausführen") to an existing Process Chain (RSPC), via the BW/4HANA Cockpit REST API. Requires name, program. | add_plswitch: Add planning mode switch steps for planning-enabled aDSOs to an existing Process Chain (RSPC), via the BW/4HANA Cockpit REST API: PLSWITCHL switches the aDSOs… Requires name, mode, datastores. | add_edge: Add one dependency (edge) between two existing steps of a Process Chain (RSPC), via the BW/4HANA Cockpit REST API. Requires name, from, to. | remove_edge: Remove the dependency (edge) between two existing steps of a Process Chain (RSPC), via the BW/4HANA Cockpit REST API. Requires name, from, to. | remove_step: Remove one step (node) from a Process Chain (RSPC), via the BW/4HANA Cockpit REST API. Requires name, step. | add_error_links: Add on-error (negative) links to an existing Process Chain (RSPC) by mirroring the existing on-success (positive) out-edges of its DTP load steps, via the BW/4… Requires name. | create_decision_variant: Create a DECISION process variant (a standalone TLOGO object) for use as a branch/decision step in a Process Chain, via the BW/4HANA Cockpit REST API. Requires name, description, formula. | |
| reconnect | No | true (default): bridge the gap so each predecessor of the removed step links to each of its successors. [remove_step] | |
| datastores | No | Planning-enabled aDSOs the step switches (e.g. [add_plswitch] | |
| else_label | No | Label of the ELSE/second branch. [create_decision_variant] | |
| sub_status | No | Defined per operation — bw_describe(tool: "bw_write_process_chain", operation: "…") gives each definition. [add_edge, remove_edge] | |
| then_label | No | Label of the THEN/first branch. [create_decision_variant] | |
| description | No | Defined per operation — bw_describe(tool: "bw_write_process_chain", operation: "…") gives each definition. [5 of 11 operations] | |
| predecessor | No | Defined per operation — bw_describe(tool: "bw_write_process_chain", operation: "…") gives each definition. [append_dtp, add_program, add_plswitch] | |
| synchronous | No | Call mode. [add_program] | |
| else_event_no | No | EVENTNO of the ELSE branch. [create_decision_variant] | |
| then_event_no | No | EVENTNO of the THEN branch (referenced by chain branch edges via sub_status). [create_decision_variant] | |
| trigger_event | No | Defined per operation — bw_describe(tool: "bw_write_process_chain", operation: "…") gives each definition. [create, update] | |
| program_package | No | Optional package of the report (cosmetic value-help enrichment; the server re-derives it when omitted). [add_program] | |
| transport_request | No | Defined per operation — bw_describe(tool: "bw_write_process_chain", operation: "…") gives each definition. [10 of 11 operations] | |
| program_description | No | Optional report description (cosmetic). [add_program] | |
| refresh_description | No | If true (default), pull the new variant's step description from its metadata. [swap_dtp] | |
| variant_description | No | Optional variant description (cosmetic). [add_program] |