
Creating a Function
Prerequisites
You have created a function module that processes the input parameters.
Procedure
Enter the name of the function module as the name of the function. The system uses the name to automatically link the function to the function module.
Confirm your entries.
In the basis data, the relevant data of the function module is displayed. You see the name of the ABAP include with the source code.
– The status of the function module must be active before you can use the function in dependencies.
– You can go directly to the function for maintaining functions by choosing Environment ® Maintain funct. mod.
– Select the characteristics you want to use as input parameters for the function.
– Do not select the characteristics that are output parameters.

When you maintain a variant function, an exclusive lock is transmitted.
From the point of view of the dependency, ensure that the function used does not essentially change from the time of the syntax check until writing to the database.
A variant function with status Locked cannot be added to a dependency. This is because the syntax check in the dependency checks the status.
It does not check at configuration runtime whether the function is locked. The result of processing a dependency only depends on the status of the dependency itself, not on the status of elements used in it.