UpdateFunctionModule
Modify existing ABAP function module source code by locking, uploading new code, and optionally activating changes without recreating metadata.
Instructions
Update source code of an existing ABAP function module. Locks the function module, uploads new source code, and unlocks. Optionally activates after update. Use this to modify existing function modules without re-creating metadata.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| function_group_name | Yes | Function group name containing the function module (e.g., ZOK_FG_MCP01). | |
| function_module_name | Yes | Function module name (e.g., Z_TEST_FM_MCP01). Function module must already exist. | |
| source_code | Yes | Complete ABAP function module source code. Must include FUNCTION statement with parameters and ENDFUNCTION. Example: FUNCTION Z_TEST_FM IMPORTING VALUE(iv_input) TYPE string EXPORTING VALUE(ev_output) TYPE string. ev_output = iv_input. ENDFUNCTION. | |
| transport_request | No | Transport request number (e.g., E19K905635). Required for transportable function modules. | |
| activate | No | Activate function module after source update. Default: false. Set to true to activate immediately. |