About pricing macros

A pricing macro is a small reusable module capable of retaining and applying a calculation formula. If your price plan or refill logic has common calculation formulae, you can manage and maintain the price plan or the refill logic more easily by creating pricing macros.

A pricing macro looks like a price plan, and it is represented using the same multilevel tree structure. Using its own properties, a pricing macro calculates an amount and may generate output properties.

Once a pricing macro is created, you can then add it to the price plan of a charge or to the refill logic of a refill plan. A pricing macro can be used in any charge or refill logic and may also be used within other pricing macros, resulting in cascading pricing macros.

Pricing Macro versions

When you modify and save a pricing macro, you can access all previous versions of it by clicking the Change Version icon on the toolbar.

You can replace a version of a pricing macro with a new version, specifying an effective date of the new version earlier than that of the version you want to replace. This action deletes all versions previously saved in the database with a date later than the effective date you have specified.

Testing a pricing macro

Once you pricing macro is complete, SAP Convergent Charging provides you with the Rating Trial Run tool to test your pricing macro.