Use
In the Implementation view
Features
Assigning Realizations (Field or Function references)
You can base a logical function on function modules or table fields, meaning that the function result comes from a module or from field contents. Make entries either in the ABAP function name field for a function module, or in the fields Table name and Field name for the table field.
Function Result Types
Functions based on function modules can have the following result types:

Functions with reference to a function module must either use Type of Parameter or Type of Function.

For the function COMPONENTS_OF_GROUP, you enter ABAP parameter
Using Data Elements for Determining/Selecting Possible Entries
Comparison
During comparisons in the framework of defining
Methods, the Possible entries function for comparison operand 2 offers only those functions with data elements agreeing with those for comparison operand 1. Each function that is realized as a table field is assigned a data element via the ABAP Dictionary. Functions realized as function modules have no data element assignments.
You can use the F4 data element field to change the existing assignment, or create an assignment (for functions with reference to function modules) that makes additional comparisons possible.

If the function you selected as comparison operand 1 is assigned data element KOKRS, the R/3 System will not offer functions for comparison operand 2 using the assigned data element BUKRS. In order to allow compares with both these functions, you must assign both functions the same data element, such as ORG_UNIT.
If you enter an asterisk ( * ) in the F4 data element field, this function appears for all instances of comparison operand 2, as long as it is generally available in this context.
Selecting Parameters
By using F4 for parameters, you call up a selection list of only those functions whose data elements match those of the parameters. If you enter a data element, in addition to the above, you will also call up all functions that contain the given data elements.
For more information, see Function parameters and Function Uses.
See Also:
Example: Creating Functions
Table for Flexible Functions
Define a flexible function by entering in this field. Here you determine which table (for example: routing, BOM) is used for the posting run of the flexible function, in case this is created in the template maintenance. For more information see
Defining Flexible Functions.
Including the Reference Function
You can define a function by copying an existing function (such as one in the standard R/3 System) and then modifying it for your own requirements. In this case, enter the logical function name of the reference in the Reference function field.