CreateServiceDefinition
Creates an initial service definition exposing CDS views as an OData service; supports activation, custom source code, and batch-mode recording.
Instructions
Create a service definition that exposes CDS views as an OData service, in initial state. When activate is false and source_code is absent, 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": {
"service_definition_name": "<service_definition_name>",
"package_name": "<package_name>"
},
"name": "CreateServiceDefinition"
}
}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 |
| activate | No | Activate service definition after creation. Default: true. | |
| description | No | Service definition description. If not provided, service_definition_name will be used. | |
| source_code | No | Service definition source code (optional). If not provided, a minimal template will be created. | |
| 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, not a task. Required for transportable packages. | |
| service_definition_name | Yes | Service definition name. |