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.
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) |