Rules for Formula Maintenance

You can create new formulas in Customizing, for example, for Resources , under Define Formula Parameters for Work Centers .

Note Note

End of the note.

Before you create formulas, you must create the formula parameter you want to use (if you do not want to use the predefined formula parameters). For information on how to do this, see Formula parameters .

General Rules

  • A formula can have a maximum length of 3 lines.

  • The following are valid:

  • Basic calculations such as +, -, * and /

  • Trigonometric functions with SIN and COS

  • Division of integers with remainders using DIV or MOD

  • Square roots with SQRT

  • Exponential function with EXP

  • The natural logarithm with LOG

  • There must be a least one blank space between the operand and the operator. An exception is parentheses after a function, for example, SIN( A ).

  • For formulas, the syntax of the ABAP language element COMPUTE is valid. For more information, see the documentation BC-ABAP-User Handbook under Numerical Operations.

  • Units of measurement are automatically converted and do not have to be included in the formula.

If you do not have authorization for creating new formulas and you want to use formulas that are not yet offered in the system, see your system administrator.

Indicators for Use

You can use an indicator to specify how the formula may be used. A formula can be used in the following areas:

  • Scheduling

  • Costing

  • Calculating capacity requirements

Taking Splitting into Account

If you want to take splittings into account in a formula, the splitting must be entered in the formula using a formula parameter.

Note Note

In scheduling, the lot size is divided by the number of partial lots to calculate the execution time. In capacity planning, the setup time is multiplied by the number of partial lots to calculate the capacity requirements.

End of the note.