bw_add_process_chain_edge
Add a new dependency between two existing Process Chain steps to repair the chain's flow. Reads the current chain, appends the edge, and writes it back, supporting on-success, on-error, and unconditional connections.
Instructions
Add one dependency (edge) between two existing steps of a Process Chain (RSPC), via the BW/4HANA Cockpit REST API. In-place edit: reads the current model, appends the edge, and PUTs it back. Use this to repair the wiring of a chain — for example to connect the end of a newly inserted block to the step that must run after it. Note that an "always continue" dependency is TWO edges (one on-success, one on-error): call this twice, once with status "positive" and once with "negative". Idempotent: an identical edge is skipped without writing. A 412 on the PUT means the ETag was stale (chain modified between read and write); the error reports this explicitly.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Target step. Same reference forms as "from". | |
| from | Yes | Source step. Node reference forms: a DTP or process-variant name; an aDSO held by an ADSOACT/ADSOREM node; the program of an ABAP step, or "PROGRAM/VARIANT"; "TRIGGER" or a collector type ("AND"/"OR"); or "#<index>" using the step numbers printed by bw_get_process_chain. An ambiguous name is rejected with the candidates listed. | |
| name | Yes | Process chain technical name (e.g. "CHAIN_NAME"). Case-insensitive. | |
| status | No | Edge condition: "positive" = on success, "negative" = on error, "neutral" = unconditional. Defaults to "neutral" when the source is the TRIGGER or a collector (neither can succeed or fail), "positive" otherwise. | |
| activate | No | If true, activate the chain immediately after the edit. Default false. | |
| sub_status | No | Branch condition for an edge leaving a DECISION step: the branch EVENTNO, e.g. "01" (THEN/JA) or "02" (ELSE/NEIN). Defaults to "00" (a normal, non-branch edge). A branch edge is always "positive". | |
| transport_request | No | Optional transport request to record the change into. Only relevant when the chain is in a transportable package (not $TMP). If the chain is transportable and exactly one request is available, it is chosen automatically; pass this to disambiguate when several are available. Ignored for $TMP (local) chains. |