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, BOMs 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 editor for activity quantities.
You can choose the flexible function TotalOfBOMItems.
One possible condition is "CheckMaterialClassTrue", with the parameters CLASS TYPE = ‘001’, MATERIAL NUMBER = BOM_ITEM_COMPONENT and CLASS = ‘AB’.
You can enter "BOMItemRequiredQuantity * 1.1/OrderTotalQuantity".
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 final result of the flexible function is the sum of all values.
See also:
Maintaining Flexible Functions Example: Quantity Determination.