write_abap_object
Writes a single ABAP object to SAP via ADT REST, following the required order for RAP migration: CDS views, behavior definition, then implementation class.
Instructions
STEP 3 — Writes a single ABAP object to SAP via ADT REST. CRITICAL: Always follow this exact order: 1st=CDS Root View (DDLS), 2nd=CDS Child Views (DDLS), 3rd=Behavior Definition (BDEF), 4th=Implementation Class (CLAS), 5th=Metadata Extension (DDLS). NEVER write BDEF before CDS views. NEVER write CLAS before BDEF. One object at a time only.
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": {
"object_type": "<object_type>",
"object_name": "<object_name>",
"source_code": "<source_code>",
"package": "<package>",
"transport": "<transport>"
},
"name": "write_abap_object"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| package | Yes | ||
| transport | Yes | Transport request number | |
| object_name | Yes | Object name in SAP | |
| object_type | Yes | ABAP object type | |
| source_code | Yes | Full ABAP/CDS source to write |