About Functions

Note: You can use these components in a price plan, a pricing macro, or in a refill plan (refill logic) but not in a charging plan.

A function component calculates an amount from context properties. Function components make up the leaves of the decision tree and are used for calculations.

The Flat Function component, which calculates a fixed amount, is one of the simplest. The Linear Function component calculates an amount by using a numerical property. For example, the Linear Function component calculates the price of a telephone call that is charged 0.34 cents per minute.

Function components

The following function components are available with SAP Convergent Charging®:

Icon

Name

Action/Usage

Flat

Provides a constant amount based on a value or a numerical property expressed in the currency of the plan..

Free

Represents a free service in the decision tree. It does not calculate any amount nor create any transactions. It must be used only if you do not need save or record a transaction. Because no transaction is created, the branch including the Free Function component is not rated.

Generic

Computes an amount P with one of these three formulae:

P = A.X + B

P = A.X.Y + B

P = A.X + B.Y + C

Where:

- A, B and C are numerical values which are expressed in the currency of the plan

- X and Y are mathematical expressions which combine a numerical property, an operator, and a numerical value.

Linear

 Computes an amount P with the formula P = A.X + B where:

- A and B are numerical values or numerical properties

- X is a numerical property

Macro Function

Allows you to use an existing pricing macro to calculate a final amount.

No Access

Indicates an unauthorized use of a service, an invalid access, or an unexpected case when usage events are processed.

Polynomial

Calculates an amount by computing the sum of n number of terms in the form of AXY such as: A1X1Y1 + A2X2Y2 + ... + AnXnYn where:

- A and n are numerical values

- X and Y are numerical properties