CreateClass
Creates an initial ABAP class object in a specified package so source code can be added later through a class update.
Instructions
Creates the ABAP class named by class_name in the package named by package_name, in initial state: the class object alone; its source code is written by an update of the class. Recordable: in batch mode a call is recorded under the next number and answers with empty content; its answer is read by number after the batch ends.
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": {
"class_name": "<class_name>",
"package_name": "<package_name>"
},
"name": "CreateClass"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| final | No | Mark class as final. Default: false | |
| detail | No | How much of the answer to return: "terse" (default, the fields you need to act), "full" (the whole parse), "raw" (the document as ADT sent it). | terse |
| abstract | No | Mark class as abstract. Default: false | |
| class_name | Yes | Class name. | |
| superclass | No | Optional superclass name. | |
| description | No | Class description (defaults to class_name). | |
| package_name | Yes | Package name. | |
| master_language | No | Optional master/original language for the created object (e.g. "EN", "DE", "ZH"). Defaults to the session language (SAP_LANGUAGE) or EN. | |
| create_protected | No | Protected constructor. Default: false | |
| transport_request | No | Transport request number (required for transportable packages), not a task. |