create_function_module
Creates a function module in an existing function group, writes its full source, and optionally activates it. Requires create_function_group first; blocked on production profiles.
Instructions
Create a new function module inside an EXISTING function group, write its source, and optionally activate. Refuses to run on production profiles. Create the group first with create_function_group. Provide the full source/main text (FUNCTION . ... ENDFUNCTION.).
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>",
"description": "<description>",
"source": "<source>"
},
"name": "create_function_module"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Complete FM source as ADT stores it (FUNCTION ... ENDFUNCTION.) | |
| activate | No | Activate after writing. Default false - activate in SE37/SE80. | |
| transport | No | Transport request. Omit only for $TMP objects. | |
| description | Yes | Short description | |
| functionGroup | Yes | Function group name WITHOUT the SAPL prefix, e.g. ZABL_UTIL | |
| functionModule | Yes | Function module name, e.g. Z_ABL_DO_THING |