Defining Flexible Functions 

Prerequisites

To define a flexible function, you need a function with table assignments (see Implementing Functions, section " Table for flexible functions").

Functions referencing internal structures (for examples, BOM’s or routings) are colored in the function tree.

Procedure

  1. Double click on the cell in the quantity column of the template in which you want to define a flexible function. This action takes you to the activity quantity formula editor.
  2. Activate the switch Functions and choose a function referencing an internal structure (colored) using the function tree. The window Definition of Flexible Function appears.
  3. Enter a name for the function.
  4. If you want to enter a condition, choose Flexible function condition ® Edit . This action takes you to the activation method editor.
  5. Enter a condition. Proceed as if defining a method. For more information, see Defining Methods.
  6. Choose Back to return to the Definition of Flexible Function dialog window. Choose Flexible function formula ® Edit. This action takes you to the activity quantity formula editor.
  7. Enter a formula. Proceed as if defining a standard formula. For more information, see Defining Formulas.
  8. Choose Back to return to the Definition of Flexible Function dialog window. Choose Transfer. This action takes you to the activity quantity formula editor. There you can see the flexible function call up you created.
  9. Never change the internal names of flexible functions beginning with a dollar sign ($). The R/3 System cannot find the function otherwise.

  10. Choose Back to return to general template maintenance and save your entries there.

The call up of the flexible function appears in the quantity column of the item from which you entered the formula editor for activity quantities.

You define the selection using the flexible function TOTAL_ALL_BOM_ITEMS and enter the name F1.

One possible condition is "CHECK_MATERIAL_CLASS = TRUE", with the parameters CLASS TYPE = ‘001’, MATERIAL NUMBER = BOM_ITEM_COMPONENT and CLASS = ‘AB’.

As formula, you enter "BOM_ITEM_CONSUMPTION_REQUIRED × 1.1 ÷ ORDER_TOTAL_QUANTITY".

The R/3 System then selects all bills of material components where the materials belong to class AB in type 001. The formula generates a numeric value for each chosen component. The finial result of the flexible function is the sum of all values.

See also:

Maintaining Flexible Functions

Example: Quantity Determination.