Create Package
create_packageCreate a new ABAP package (DEVC) under an existing parent package and return its settings, recording it on a Workbench request or local $TMP as needed.
Instructions
Create a new ABAP package (DEVC) under an existing parent package and return its settings. Writes to the repository and is recorded on a Workbench request; the transport is chosen as described for write_abap_object_source, and a local package ($TMP) needs none. Add objects afterwards with create_abap_object. Needs development authorization (S_DEVELOP) and a software component and transport layer that exist in the system.
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": {
"name": "<name>",
"description": "<description>",
"parentPackage": "<parentPackage>"
},
"name": "create_package"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | New package name, in the customer namespace (e.g. ZORDER_API_TESTS) | |
| workItem | No | Name of the piece of work (e.g. HPM, a ticket). Keeps using the same transport for it across calls and sessions until you pass another. | |
| transport | No | Workbench request to record into. Checked before use; becomes the transport for this piece of work. | |
| description | Yes | Short description of the package | |
| packageType | No | Package type: development (default, contains objects), structure (grouping only), main (top-level) | |
| swComponent | No | Software component (e.g. HOME, LOCAL, or a custom component). Leave empty for local packages. | |
| connectionId | No | SAP system connection ID | |
| parentPackage | Yes | Existing package to create it under (e.g. ZORDER_API) | |
| transportLayer | No | Transport layer (e.g. Z, SAP). Controls which transport route is used. | |
| createTransport | No | Create a NEW Workbench request (only when you mean it; existing requests are preferred). |