create_cds
Creates and activates a new SAP CDS view (DDLS) from complete source, enforcing name match and blocking production profiles; requires a transport unless the package is $TMP.
Instructions
Create a new CDS view (Data Definition / DDLS) in SAP and activate it. Refuses to run on production profiles. Provide the complete CDS source (e.g. 'define view entity as select from ... { ... }'); the entity name in the source must match cdsName. Needs a transport unless package is $TMP.
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>",
"description": "<description>",
"packageName": "<packageName>",
"source": "<source>"
},
"name": "create_cds"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Complete CDS DDL source (define view entity <name> as select from ... { ... }) | |
| cdsName | Yes | CDS entity/DDLS name, e.g. ZKIT_I_PRODUCT. Must match the name in the source. | |
| activate | No | Activate after writing the source | |
| transport | No | Transport request, e.g. ABLK900123. Omit only for $TMP. | |
| description | Yes | Short description | |
| packageName | Yes | Package, e.g. ZABAP. Use $TMP for a local throwaway. |