CreateFunctionModule
Create ABAP function modules by specifying a function group, module name, and source code. This tool handles source code upload with session management and supports activation and transport requests.
Instructions
Create a new ABAP function module within an existing function group. Uses stateful session with LOCK/UNLOCK workflow for source code upload.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| function_group_name | Yes | Parent function group name (e.g., ZTEST_FG_001) | |
| function_module_name | Yes | Function module name (e.g., Z_TEST_FUNCTION_001). Must follow SAP naming conventions (start with Z or Y, max 30 chars). | |
| source_code | Yes | ABAP source code for the function module including signature (FUNCTION name IMPORTING/EXPORTING ... ENDFUNCTION). | |
| description | No | Optional description for the function module | |
| transport_request | No | Transport request number (e.g., E19K905635). Required for transportable packages. | |
| activate | No | Whether to activate the function module after creation (default: true) |