Mapping tables allow us to store data like prices or other information, which might change regularly. The advantage of using tables is that the data can usually be modified by external systems using the APIs of SAP Convergent Charging, without necessarily having to modify price plans of charges.
If you are familiar with relational databases and their tables, then you will probably assume that the tables in SAP Convergent Charging work in the same way. However, there are some significant differences:
- Mapping Tables in SAP Convergent Charging have three mandatory columns:
- Identifier
- Start Date
- End Date
- One to 40 input columns can be declared. Input columns contain the data, that is used to find an entry in the table. In a database these columns would be considered to be part of the "key". Input columns can have the datatype string or currency. The currency datatype is a string, which consists of all possible ISO / SAP currency codes known in the corresponding currency dictionary.
- One to 30 output columns can be declared. Output columns contain the data, that is associated to the data in the key-columns.

In the SAP Convergent Charging Core Tool, a typical mapping table could look like this:

This table expects a service level agreement value (column SLA) and a currency code value (column CURRENCY) as search criteria or inputs. For a certain combination of such values, it associates a price (column AMOUNT).
The identifier column is always part of a mapping table. It serves as a primary key to address a single line of a table using the APIs, but it cannot be used as a search criterion when reading from a table within a price plan tree.
The interval that the table line is valid for is contained in the validity columns. When searching a table with a set of search criteria, a reference date must be provided. A result only contains those lines which match the search criteria, and are valid at the given reference date.
Output columns can have the data type string or number. This way you can store numerical values like prices, as well as alphanumerical values like country names, colors, and so on.