createInclude
Create ABAP report includes (PROG/I) with the required main program reference, preventing backend rejections. Use this for includes rather than generic object creation.
Instructions
Create a report include (PROG/I). Use this instead of createObject for includes: abap-adt-api builds the creation body without the reference to the main program, so the backend rejects it (400/500) whatever parameters are passed. This posts the include document together with its context reference.
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>",
"packageName": "<packageName>",
"mainProgram": "<mainProgram>"
},
"name": "createInclude"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Include name, e.g. ZR_APP_FOO_F01. | |
| transport | No | Transport request. | |
| description | Yes | Short description. | |
| mainProgram | Yes | Main program the include belongs to, e.g. ZR_APP_FOO. This is the reference createObject fails to send. | |
| packageName | Yes | Development package, e.g. ZAPP_BASE. | |
| responsible | No | Responsible user; defaults to the logon user. | |
| masterLanguage | No | Master language; defaults to the logon language, or EN. |