CreateBehaviorDefinition
Create or replace a RAP Behavior Definition (BDEF) in SAP, supporting managed, unmanaged, projection, and abstract types, local packages, and optional auto-activation.
Instructions
Create or replace a RAP Behavior Definition (BDEF) in the SAP system. Only supports local packages ($TMP, $LOCAL, $-prefixed). Supports managed, unmanaged, projection, and abstract types. 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": {
"behavior_name": "<behavior_name>",
"source_code": "<source_code>",
"bdef_type": "<bdef_type>"
},
"name": "CreateBehaviorDefinition"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| package | No | Package name (defaults to $TMP, must be a local package) | |
| bdef_type | Yes | Type of behavior definition | |
| description | No | Optional description for the BDEF | |
| source_code | Yes | Complete BDEF DDL source code | |
| auto_activate | No | Optional: Automatically activate the BDEF after creation (default: true) | |
| behavior_name | Yes | BDEF name (must start with Z or Y) | |
| preaudit_requested | No | Optional: Request pre-audit during activation (default: true, only used if auto_activate is true) |