Billing Cycle Changes During Product Change Process
Use
The billing cycle is defined when a sales order is created for each contract and generally remains valid for the respective contract during its entire lifetime, irrespective of any changes made to the contract in change processes
Since the billing cycle is dependent on settings made at product level, the process that can lead to changes to the billing cycle is the product change process.
Activities
The implementation class CL_CRM_BTMF_TELCO_PRODUCT_CHAN contains an example implementation of how to deal with billing cycle changes. The relevant implementation steps are added as comments in the FINISH method:
-
Checks are performed to determine whether the new product allows the current contract billing cycle. If this is the case, no further processing is required. If not, proceed with step 2.
-
The billing cycle must only be changed at the start of a new billing period. Therefore, the system/method checks whether the activation date for the process falls exactly at the start of the next billing period for the contract. To do this, the system/method calls FI-CA using a RFC module to determine the start date of the next billing period. This date is compared to the activation date of the process. If the dates do not match, an error message is returned.
-
If the process is completed, the new billing cycle is set for the contract.
You can find the implementation of step 1 and step 2 in lines 126 and following lines of the FINISH method. Step 1 is mainly executed in the CHECK_BILL_CYCLE method, step 2 in the CHECK_ACTIVATION_DATE method.
You can find the implementation of step 3 in lines 214 and following lines of the FINISH method. Step 3 is mainly executed in the SET_BILL_CYCLE method.