Create ABAP Object
create_abap_objectCreate ABAP development objects—programs, classes, function groups, includes, tables—in a target package, and reuse or create the required transport request.
Instructions
Create a new ABAP development object (program, class, function group, include, table, etc.) in a package. A local package ($TMP) needs no transport. Creating a function group include (FUGR/I) also adds its INCLUDE line to the group's main program — do not add it again. Transport: a transport you pass is checked and used; an object already locked into a request uses it; createTransport: true creates a new one; otherwise the transport already used for this piece of work (workItem, else this session) is reused; otherwise exactly one open request is used, several are listed for you to choose, none offers creation.
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": {
"objectType": "<objectType>",
"name": "<name>",
"description": "<description>",
"packageName": "<packageName>"
},
"name": "create_abap_object"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Object name (e.g. Z_MY_PROGRAM) | |
| 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. | |
| objectType | Yes | ABAP object type. Full typeId (PROG/P, CLAS/OC, FUGR/F, TABL/DT, DTEL/DE, DOMA/DO, INTF/OI) or the bare prefix (PROG, CLAS, FUGR, TABL, DTEL, DOMA, INTF, …) — the bare form is normalised to the full typeId. | |
| parentPath | No | Parent ADT URL — defaults to /sap/bc/adt/packages/<packageName> | |
| description | Yes | Object short description | |
| packageName | Yes | Target package (e.g. ZDEV_PKG) | |
| connectionId | No | SAP system connection ID | |
| createTransport | No | Create a NEW Workbench request (only when you mean it; existing requests are preferred). |