Range Table Introducer as Comparator

Note: You cannot use this component in Simulation Tool because this tool does not support the range tables.

The Range Table Introducer component allows you to use an existing range table in a plan and set up the logic that defines the computation of the final values. You can also use a parameter or a property of the rating context to identify the range table. If you use a parameter, its value can be redefined:

The Range Table Introducer component compares row by row the ranges of a range table with an input property of the plan. The comparison stops when the property matches at least one row of the ranges. The output columns related to the selected range are retrieved in generated properties that you can use in the plan. If no property matches the comparison, an appropriate branch is activated and some default additional values are computed.

When it is inserted in the decision tree, the Range Table Introducer component creates three separate branches:

When the component is performed by the SAP CC system at runtime, only one branch is executed depending on the test result.

 

You can use the following generated properties in the logic in a branch:

 

Note: If the input value is equal to 0, the SAP CC system executes different branches according to the configuration of the range table class specified in this component. The system takes into account the upper bounds of the intervals defined as inclusive or exclusive in the related class:

  • If the upper bounds of the intervals are inclusive, the system selects the first branch (Is before first bound)

  • If the upper bounds of the intervals are exclusive, the system selects the second branch (Is in range)

Use

In a price plan, if you want to apply different prices to branches according to the value of a specific property, you may need to compare a property with a numerical value or another property. To use the Range Table Introducer inside your price plan, do the following:

  1. After you add the component, choose a range table class, a range table, a date reference, and a property to compare with the ranges of the range table.

  2. Describe the pricing logic of each decision tree branch by using logic components and end each branch with a Function component. In each branch, different new properties are available.

Example   

In the telecommunication industry, a company sells voice services and has configured a range table class and a unique range table in its pricing catalog. The table specifies a unit price per minute regarding the call duration. To use this range table in the pricing logic, you set up a charge with a price plan that includes a Range Table Introducer component.

Note: Refer to the online Help of SAP CC Core Tool for more information about this example.

In the pricing catalog of this service provider, you must configure:

You create a new reusable charge and set up its price plan.

(*) You can configure more complex pricing logic in these branches.

Identification area

Name: Type the name of the component (mandatory).

Description: Allows you to type the description of the component (optional).

Definition tab

Range Table Class: Provides the list of available range table classes. Select the range table class that you want to use with the Range Table Introducer. To open and modify the range table class, click .

Range Table: Provides the list of available range tables that relate to the selected class with the list of parameters and properties of type string. Select the range table that you want to use with the Range Table Introducer, or select a parameter or a property that must include at runtime the identifier of a range table or a subscriber range table (see the note below).

Note: If you select a parameter, the value of this parameter can be redefined in:

  • A charge plan or refill plan to share a range table between the charges of a charge plan

  • A contract item of a provider contract to define the subscriber range table that must be used for the computation during the charging process or the refilling process. Subscriber range tables are not available in subscriptions.

Consult the online Help of SAP CC Core Tool about the customized use of range tables in charge plans and provider contracts.

Reference Date: Provides the list of date properties. Select a date property. The Reference Date enables the SAP CC system to select the appropriate version of the business data table.

Input Property: Displays the number properties of the rating context and allows you to select the property that you want to compare with the ranges of the range table. Select the property that you want to compare with the ranges of positive numbers.

Mapping of Generated Properties: Displays the output columns of the range table and allows you to rename the generated properties. When a comparison is true between properties, the Reference Date, and the input property, the generated properties retrieve the values of the output column entries.

Availability of generated properties:

Generated Properties

Input property is before the first bound

Input property is in a range

Input property is in the last unbounded range (+∞)

Input property is after the last defined bound

Data from the table (string or number)

(Yes, but is the value of the column in the first range)

Yes

 

The value of the column in the related range

 

Yes

 

The value of the column in the related range

(Yes, but is the value of the column in the last range)

Cumulative value

(Yes, but is 0)

Yes

 

Sum of the values from the previous ranges excluding the range selected

Yes

 

Sum of the values from the previous ranges excluding the last range

Yes

 

Sum of the column values from all the ranges

Range size cumulative value

(Yes, but is 0)

Yes

 

Sum of the values computed according to the formula (value x range size)

from the previous ranges excluding the range selected

Yes

 

Sum of the values computed according to the formula (value x range size)

from the previous ranges excluding the range selected

Yes

 

Sum of the values computed according to the formula (value x range size)

from all the ranges

Computed Properties: Displays the computed properties that allows you to rename the generated properties visible in the rating contexts of the different branches.

Availability of computed properties:

Computed Values

Input property is before the first bound

Input property is in a range

Input property is in the last unbounded range (+∞)

Input property is after the last defined bound

Range Lower Bound

(Yes, but is 0)

Yes

 

Lower bound of the selected range

Yes

 

Lower bound of the selected range

(Yes, but is equal to the last upper bound)

Range Upper Bound

(Yes, but is 0)

Yes

 

Upper bound of the selected range

Not available

(Yes, but is equal to the last upper bound)

 

Range Size

 

(= Range Upper Bound - Range Lower Bound)

(Yes, but is 0)

Yes

No (N/A)

(Yes, but is equal to the last upper bound)

 

Value Beyond Lower Bound

 

Distance between the lower bound of the range and the value of the input property used to select the appropriate range

Not available

Yes

 

Distance down to the lower bound of the range

Yes

 

Distance down to the lower bound of the range

Not available

Prorata in Range

 

(= Value Beyond Lower Bound / Range Size)

Not available

Yes

No (N/A)

Not available

Value Beyond Upper Bound

 

Distance between the upper bound of the last defined range and the value of the input property

Not available

Not available

Not available

Yes

 

Distance down to the maximum upper bound