create_include
Creates and activates a classic ABAP INCLUDE program in SAP, separate from executable reports and blocked on production profiles; add it to a main program separately.
Instructions
Create a new classic ABAP INCLUDE program (type PROG/I) in SAP and activate it - a SEPARATE ADT collection from create_program's executable reports (PROG/P), verified against the open-source abap-adt-api client rather than guessed: /sap/bc/adt/programs/includes, not /programs/programs. Refuses to run on production profiles. No INCLUDE statement is added to any main program here - do that separately with patch_program_source on the program that should include it.
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": {
"includeName": "<includeName>",
"description": "<description>",
"packageName": "<packageName>",
"source": "<source>"
},
"name": "create_include"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Complete ABAP source for the include | |
| activate | No | Activate after writing the source | |
| transport | No | Transport request, e.g. ABLK900123. Omit only for $TMP. | |
| description | Yes | Short description shown in SE38/SE80 | |
| includeName | Yes | Include name, e.g. ZHELLO_WORLDTOP | |
| packageName | Yes | Package, e.g. ZABAP. Use $TMP for a local throwaway include. |