UpdateFunctionModule
Update the source code of an existing ABAP function module in its function group, optionally activate it, and record the change in a transport request.
Instructions
Updates the source code of an existing ABAP function module (FUGR) in its function group (FUGR), activating it when asked, recorded in the transport given.
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": {
"function_group_name": "<function_group_name>",
"function_module_name": "<function_module_name>",
"source_code": "<source_code>"
},
"name": "UpdateFunctionModule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| detail | No | How much of the answer to return: "terse" (default) what a next call needs: the identifiers and a short description; "medium" every item the tool read, with its main properties; "full" the tool's whole answer; "raw" what SAP sent. | terse |
| activate | No | Activate function module after source update. Default: false. Set to true to activate immediately. | |
| source_code | Yes | Complete ABAP function module source code, from FUNCTION to ENDFUNCTION. | |
| transport_request | No | Transport request number, not a task. Required for transportable function modules. | |
| function_group_name | Yes | Function group name containing the function module. | |
| function_module_name | Yes | Function module name. Function module must already exist. |