create_bdef
Creates and activates a Behavior Definition (BDEF) in an SAP S/4HANA system from full source, enforcing production safety and existing root entity, persistent table, and class prerequisites.
Instructions
Create a new Behavior Definition (BDEF) in SAP and activate it. Refuses to run on production profiles. bdefName must equal the root entity the behavior is for, and that entity must already exist. Provide the complete source (e.g. 'managed implementation in class unique; define behavior for ... { ... }'). A managed BDEF needs its persistent table + implementation class to exist for activation to succeed. Needs a transport unless package is $TMP.
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": {
"bdefName": "<bdefName>",
"description": "<description>",
"packageName": "<packageName>",
"source": "<source>"
},
"name": "create_bdef"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Complete BDEF source (define behavior for <entity> ... { ... }) | |
| activate | No | Activate after writing the source | |
| bdefName | Yes | Behavior definition name = the root entity it is defined for, e.g. ZKIT_R_PRODUCT. | |
| transport | No | Transport request. Omit only for $TMP. | |
| description | Yes | Short description | |
| packageName | Yes | Package, e.g. ZABAP. Use $TMP for a local throwaway. |