UpdateFunctionModule
Updates an existing ABAP function module's source code, with automatic lock/unlock and optional activation. Modify without re-creating 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
| Name | Required | Description | Default |
|---|---|---|---|
| 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. 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. For local objects ($TMP package) this can be omitted — the handler defaults to "local". | |
| 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. |