CreateServiceDefinition
Creates a service definition (SRVD) that exposes CDS views as an OData service, optionally from your own source code and activated on request. Use it to publish CDS data to OData consumers.
Instructions
Creates a service definition (SRVD) exposing CDS views (DDLS) as an OData service, with its source code when given, activating it when asked.
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) what a next call needs: the identifiers and a short description; "medium" every item the tool read, with its main properties; "full" the tool's whole answer; "raw" what SAP sent. | 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 | Original language of the created object (e.g. EN, DE). Absent, the session language (SAP_LANGUAGE or x-sap-language) is used; with none, SAP's logon language applies. | |
| transport_request | No | Transport request number, not a task. Required for transportable packages. | |
| service_definition_name | Yes | Service definition name. |