adt_create_function_module
Create and activate ABAP function modules within existing function groups by supplying source code, including activation and transport support.
Instructions
Create a function module (FUGR/FF) inside an existing function group, write its source and optionally activate it. The function group must already exist (create it first with adt_create_function_group). Provide the full FM source in either the classic FUNCTION z_fm. ... ENDFUNCTION. form (with or without the "* Local Interface comment block) or the normalized form — it is auto-normalized to what ADT accepts. Name must match the Z*/Y* prefix. Returns the FM URI, activation status and the normalized source that was written.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Function module name, e.g. ZMY_FM. Must match Z*/Y* prefix. | |
| source | Yes | Full function module ABAP source (FUNCTION ... ENDFUNCTION). | |
| activate | No | Activate after writing. Default true. | |
| transport | No | Transport request. Omit + non-$TMP group package -> asked to create one. | |
| description | Yes | Short text / description. | |
| functionGroup | Yes | Existing function group, e.g. ZMY_GROUP. |