adt_write_function_module_source
Edit an existing function module's ABAP source code with lock, write, unlock, and optional activation. Accepts FUNCTION ... ENDFUNCTION format, auto-normalized for ADT.
Instructions
Edit an existing function module's source (lock -> write -> unlock -> optional activate). Accepts the classic FUNCTION z_fm. ... ENDFUNCTION. form or the normalized form; it is auto-normalized to what ADT accepts. Blocked in read-only mode; name must match the Z*/Y* prefix. For a first-time create use adt_create_function_module instead.
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": {
"functionModule": "<functionModule>",
"source": "<source>"
},
"name": "adt_write_function_module_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | New full function module ABAP source (FUNCTION ... ENDFUNCTION). | |
| activate | No | Activate after writing. Default true. | |
| transport | No | Transport request. Omit + non-$TMP object -> asked to create one. | |
| functionGroup | No | Owning function group. Omit to auto-resolve via search. | |
| functionModule | Yes | Function module name, e.g. ZMY_FM |