update_cds
Replaces the complete DDL source of a CDS view in SAP and optionally activates it after writing; use for full rewrites, not small edits.
Instructions
Overwrite the source of an EXISTING CDS view (DDLS). Locks, PUTs the whole new DDL source, unlocks, then optionally activates. Refuses to run on production profiles. IMPORTANT: this REPLACES the whole CDS source - read it first, edit that text, and send the complete result back. Keep the entity name unchanged. Prefer patch_cds for small edits.
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": {
"cdsName": "<cdsName>",
"source": "<source>"
},
"name": "update_cds"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Complete new CDS DDL source - REPLACES the entire definition | |
| cdsName | Yes | CDS entity/DDLS name, e.g. ZKIT_I_PRODUCT | |
| activate | No | Activate after writing. Default false - CDS activation is safe (no DB conversion); pass true to activate in one call. | |
| transport | No | Transport request. Omit only for local/$TMP objects. |