CreateDdl
Creates a CDS or classic DDL view source object in a specified package, returning it in initial state so you can write the DDL source code afterwards.
Instructions
Creates the CDS view or classic DDL view named by ddl_name in the package named by package_name, in initial state: the DDL source object, its DDL source code written afterwards. Recordable: in batch mode a call is recorded under the next number and answers with empty content; its answer is read by number after the batch ends.
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": {
"ddl_name": "<ddl_name>",
"package_name": "<package_name>"
},
"name": "CreateDdl"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| detail | No | How much of the answer to return: "terse" (default, the fields you need to act), "full" (the whole parse), "raw" (the document as ADT sent it). | terse |
| ddl_name | Yes | DDL source name. | |
| description | No | Optional description (defaults to ddl_name). | |
| package_name | Yes | Package name | |
| master_language | No | Optional master/original language for the created object (e.g. "EN", "DE", "ZH"). Defaults to the session language (SAP_LANGUAGE) or EN. | |
| transport_request | No | Transport request number (required for transportable packages), not a task. |