Refill of Allowances
Use
The Allowance Refill process is available from the list of processes for a provider contract. You can use this process to trigger the creation of an allowance in SAP Convergent Charging (SAP CC) for the current provider contract. A contract history record is stored when the process is executed.
Prerequisites
This process can only be selected from the process list, when charge plans assigned in the provider contract product contain allowances.
The refill of allowances can only be processed if a list of available allowances has been maintained in Cross Catalog Mapping (CCM) for the corresponding product. You can do so by activating all allowance definitions of the allowance definition table assigned to a charge plan or by the assignment of an allowance definition group.
Features
Process Enhancements
The refill of allowances is triggered using the SAP Convergent Charging (SAP CC) web service ChargeableItemChargingServices. The operation that is used (chargeableItemCharge) contains user properties in its input payload. Initially, only the allowance activation date is transferred as a user property. To add more properties to the web service call you can enhance the process by executing the following steps:
-
Enhance the UI value node with the necessary parameters and transfer the parameters to the view ISX_ALLOW_CREAT/AllowParameters, context node PARAMETERS
-
Redefine the component controller of the UI component ISX_ALLOW_CREAT in order to fill the process context with the new fields in method set_parameters_to_context
-
The implementation for the ALLOWANCE_REFILL process (CL_CRM_BTMF_TELCO_ALLOW_REFILL) then takes all parameters found in the process context and adds them to the user properties section of the web service
Allowance Refill with Credit Card
You can also pay for the refilling of allowances using your credit card. You must define your own process to do so. The price of the selected allowance is displayed on the UI for this process and a credit card can be selected.
The price is read from the mapping table used for the allowance definition. If no currency can be determined from the mapping table, the currency from the provider contract document is used as a fallback.
During this process, a credit card authorization is executed that contains the price of the allowance.
Contract History
The implementation class CL_CRM_BTMF_TELCO_ALLOW_REFILL contains an example implementation of how to create a contract history record for a process of type ISTF:
-
In the method DETERMINE_CONTRACT_HISTORY, a process-dependent message is transferred to the method determine_with_btmf_istf. In combination with the process ID, this message is displayed in the contract history view (function module CRM_IST_HIST_LIST). An activation date can also be passed to the contract history. Otherwise, the start date of the contract is displayed.
-
The UI for the contract history (UI component BT156_CONTHIST) does not display the process status for a process of type ISTF.
Activities
Execute the Allowance Refill process on the Processes assignment block. The system shows a guided two-step procedure. In the first step, you select an allowance definition ID from a list of available allowances. Once you have selected an allowance, the details for this allowance definition are read from SAP CC and displayed in the selection table. You can also enter an activation date in order to activate the allowance at a later point in time.
If the selected allowance is available for more than one service provided in this contract, you select the technical resource ID of the corresponding service in the second step. When the allowance is available for a single service only, you can finish the process after the first step.
This list of available allowances depends on the assignment of allowance definitions in the CCM of the contract’s product and consists of the cumulated allowance definitions for all active charge plans of the contract. For each charge plan, the available allowances are determined as follows:
-
If you have selected No assignment, no allowances are available.
-
If you have selected Full Table, the allowance definitions are taken from SAP CC by reading all entries from the corresponding allowance definition table.
-
If you have selected an allowance definition group, all allowances in this group marked for manual refill in this group are available.
Technical Details
|
Process Name |
Process Class |
Process View |
|
ALLOWANCE_REFILL |
CL_CRM_BTMF_TELCO_ALLOW_REFILL |
ISX_ALLOW_CREAT/MainWindow |
For the execution using the provider Application Programming Interface (API), you must add the following parameters to the process container:
|
Parameter Name |
Description |
|
ALLOWANCE_ID |
Allowance ID of the allowance to be created. |
|
ACTIVATION_DATE |
Activation date (optional, Format YYYYMMDDHHMMSS) |
|
CHARGE_PLAN_ID |
Charge plan ID (optional) |
|
TECH_RES_ID |
Technical resource ID (optional) |
If the parameter ACTIVATION_DATE is initial, the allowance is created at the current day and time.
Allowance Refill with Credit Card
The class CL_CRM_BTMF_ALLOW_REFILL_CARD is used for this process. The attribute GV_CHECK_GROUP is used with the default value ‘01’ for the credit check group. If a different credit check group is to be used, you must assign it to the attribute GV_CHECK_GROUP in the START method. The column names for price and currency used in the mapping table are also inserted in the BTMF context container in the START method of the process class. This is necessary so that the price can be displayed on the UI.
The credit card is authorized in the method CHECK_BEFORE_WS. The assumption is that the credit card used has already been verified, meaning that a CVV is no longer required for the authorization. If the CVV is to be used, you must adjust the method. You must also add the authorization code to the web service properties. If a different name for this property is used, you must adjust the coding.
Technical Details
|
Process Name |
Process Class |
Process View |
|
ALLOWANCE_REFILL_PAYMENT |
CL_CRM_BTMF_ALLOW_REFILL_CARD |
BT156_ISTF CUAllowanceRefillPayment.ISX_ALLOW_CREAT/MainWindow |
For the execution using the provider Application Programming Interface (API), you must add the following parameters to the process container:
|
Parameter Name |
Description |
|
ALLOWANCE_ID |
Allowance ID of the allowance to be created. |
|
ACTIVATION_DATE |
Activation date (optional, Format YYYYMMDDHHMMSS) |
|
CHARGE_PLAN_ID |
Charge plan ID (optional) |
|
TECH_RES_ID |
Technical resource ID (optional) |
|
CARD_ID |
Payment card ID of the payer |
If the parameter ACTIVATION_DATE is initial, the allowance is created at the current day and time.
Example
Example for One-Step Procedure
List of available allowances:
|
Allowance Definition ID |
Charge Plan Assignment ID |
Technical Resource ID |
Technical Resource Type |
|
B2C_MOBILE_ALLO_01 |
B2C_MOBILE_ALLO_USG_CP_01 |
12345 |
Phone Number |
|
B2C_MOBILE_ALLO_02 |
B2C_MOBILE_ALLO_USG_CP_01 |
12345 |
Phone Number |
The allowance definition IDs are unique. No second step is required.
Example for Two-Step Procedure
List of available allowances:
|
Allowance Definition ID |
Charge Plan Assignment ID |
Technical Resource ID |
Technical Resource Type |
|
B2C_MOBILE_ALLO_01 |
B2C_MOBILE_ALLO_USG_CP_01 |
12345 |
Phone Number |
|
B2C_MOBILE_ALLO_01 |
B2C_MOBILE_ALLO_USG_CP_02 |
67890 |
Phone Number |
The allowance definition IDs are not unique. In a second step you must select for which service ID the allowance should be created.