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

Never change the internal names of flexible functions beginning with a dollar sign ($). The R/3 System cannot find the function otherwise.
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.