update_function_module
Overwrite the complete source of an existing SAP function module, with locking, write, unlock, and optional activation; production writes are refused.
Instructions
Overwrite the whole source of an EXISTING function module. Locks, PUTs, unlocks, then optionally activates. Refuses to run on production profiles. REPLACES the entire FM (FUNCTION ... ENDFUNCTION.) - read it first and send the complete result back. Prefer patch_function_module for small edits. Pass the group WITHOUT the SAPL prefix.
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": {
"functionGroup": "<functionGroup>",
"functionModule": "<functionModule>",
"source": "<source>"
},
"name": "update_function_module"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Complete new FM source - REPLACES the entire module | |
| activate | No | Activate after writing. Default false - activate in SE37. | |
| transport | No | Transport request. Omit only for local/$TMP objects. | |
| functionGroup | Yes | Function group WITHOUT the SAPL prefix, e.g. ZABLMM_QCF_WF | |
| functionModule | Yes | Function module name, e.g. ZABLMM_QCF_WF_APPROVE |