CreateServiceDefinition
Create or replace an SAP Service Definition (SRVD) in local packages, with automatic activation by default. Use it to define exposed services in ABAP Development Tools.
Instructions
Create or replace a Service Definition (SRVD) in the SAP system. Only supports local packages ($TMP, $LOCAL, $-prefixed). Auto-activates by default.
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_name": "<service_name>",
"source_code": "<source_code>"
},
"name": "CreateServiceDefinition"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| package | No | Package name (defaults to $TMP, must be a local package) | |
| description | No | Optional description shown in ADT | |
| source_code | Yes | Complete service definition DDL source (define service ... { expose ...; }) | |
| service_name | Yes | Service definition name (must start with Z or Y) | |
| auto_activate | No | Optional: Automatically activate after creation (default: true) | |
| preaudit_requested | No | Optional: Request pre-audit during activation (default: true) |