Setting up the Charging Plan

Objectives

After completing this lesson, you will be able to:
  • Explain the purpose of a charging plan.
  • Locate the charging plan in a charge’s tree structure.
  • Explain the structure of a charging plan.
  • Explain the limitations of a charging plan.

Charging Plan Overview

In earlier parts of this course you have learned about external accounts and how they are linked to contract accounts in SAP Convergent Invoicing. You know that a business partner can have multiple contract accounts, and as a result subscriber accounts can be associated with many external accounts. When a chargeable item is processed, the resulting charged items must be associated to one of these external accounts, so that they can be billed in the billing system.

The charging plan allows to implement a rule set, which helps to determine the correct external account to associate to each charged item. Let’s see how this works.

When you open a charge in SAP Convergent Charging the tree structure on the left of the window is separated into two parts:

  1. The charging plan
  2. The price plan

Location of the Charging Plan

On the charging plan’s root node (selected in the figure below) you can configure several so called "charging references". Each charging reference can be understood as a placeholder for an external account, that will be linked to the external account of the subscriber account when a contract is created. As the external accounts of the subscriber account are unknown when the charge is designed, the best thing you can work with at design time are placeholders.

Location of the Charging Plan

Charging Plan Structure

The charging plan tree structure is separated into three levels:

1. Charging component

Each charging plan starts with a charging component. This component references a specific kind of fee (one-time, recurring, usage). A default charging component is always available, which is used when there is no specific charging component available. When a chargeable item is processed by the charge, SAP Convergent Charging looks for a usage charging component and its subtree to associate the chargeable item to an external account. Is no usage component available, the default charging component with its subtree is executed instead.

2. Comparators/Operators
Comparators/Operators
3. Internal Reference(s)

Any leaf of the charging plan tree structure ends with an internal reference component. The internal reference component refers to a specific charging reference, which will be translated into a specific external account at runtime. You will learn how this resolution process works in a later lesson.

With these three elements you can put together very flexible logics to determine the appropriate external account. The figure above gives an example, which associates the charged item calculated for a chargeable item to one external account when the consumption happens on a working day, and to a different account when it happens on weekends. The default charging component associates all other fee types (one-shot fees and recurring fees) to the external account all weekday usages are charged to.

Limitations of a Charging Plan

Note

With the charging plan you can only reference external accounts, that belong to the subscriber account using the service. You cannot reference external accounts of other subscriber accounts using the charging plan.

Most of the time you will probably implement the simplest charging plan that is possible. It associates the default charging component straight with the only charging reference available:

Choosing Account Reference

Create a Charge With a Usage Rate and Prefix Switch on the Service Level Agreement Parameter Value

Business Scenario

With the knowledge how to create charges and how to set up the price plan, you are ready to apply our new knowledge. The following demo shows the setup of a charge, that calculates CPU usage fees for the cloud selection service. The chargeable item class HRB4 provides the following two fields as a basis for the calculation:

  • ZZ_CPU_NUMBER: Contains the number of CPUs used.
  • ZZ_CPU_HOUR: Contains the number of hours the CPUs were used.

Prices are based on the number of CPU hours used as shown in the following table:

Prices

SLAPrice per CPU and hour
UNDEFINED0.05
SILVER0.04
GOLD0.035
PLATINUM0.03

For this task you should use a prefix switch component to determine the correct price.

Watch the following simulation, to learn, how this is done.

Creating a Recurring Charge With a Fixed Price

In this video Melissa will show her colleague Jonathan, how to set up a charge, that implements the monthly recurring base fee of 1000,- € to support the cloud selection service. The price for the fee is not read from a table yet, as it would usually be in a productive scenario.

Log in to track your progress & complete quizzes