fragmentMappings
Locate a named fragment (e.g., method, attribute) in an ABAP object and retrieve its starting line and column for quick navigation.
Instructions
Locate a named fragment of an object and get the line and column where it starts - the cheap way to find one method in a class of a few thousand lines. type is an ADT fragment type, /: CLAS/OM for a class method, CLAS/OA for an attribute. There is no working fragment type for a FORM of a report; use findInSource for that.
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": {
"url": "<url>",
"type": "<type>",
"name": "<name>"
},
"name": "fragmentMappings"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Object URL, e.g. /sap/bc/adt/oo/classes/zcl_app | |
| name | Yes | Fragment name, e.g. the method name. | |
| type | Yes | ADT fragment type, e.g. CLAS/OM. Bare names such as FORM are not fragment types and the backend rejects them. |