UpdateFunctionModule
Updates the source code of an existing ABAP function module, managing locks and optionally activating the module.
Instructions
Operation: Update, Create. Subject: FunctionModule. Will be useful for updating or creating function module. Update source code of an existing ABAP function module. Locks, updates, unlocks, and optionally activates.
Input 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. |