Billing Cycle and Determination Rules
Use
You can use this function to automatically assign billing cycles to provider orders. The assignment is determined by making settings for the corresponding product and can be a direct assignment of a billing cycle or a complex determination based on a class implementation. You require a billing cycle to replicate the provider contract to SAP Convergent Charging. Billing cycles are replicated from SAP ERP on request and cannot be maintained in SAP CRM.
You can display replicated billing cycles in Customizing for Customer Relationship Management under.
You can define rules to determine billing cycles for a product when capturing a sales order or a change order. These rules can be used in the product master data.
You can specify that one of these rules is used as the default setting. The system uses this rule if a product has not been assigned a specific rule.
Features
Determination Rules
The definition of billing cycle determination rules has three main purposes:
-
You can define a default rule that applies to all products that require a billing cycle, but do not have one specified.
-
You can assign a determination rule to a group of products and change the billing cycle without maintaining the products.
-
You can apply complex rules instead of simple assignments to the determination by implementing determination logic.
You can make these settings in Customizing forCustomer Relationship Management under.
Maintaining a Determination Rule
The following general types of determination rules exist:
-
Rules that assign a single billing cycle
Enter an ID, a description and a billing cycle. When you assign a rule to a product, you can maintain it centrally.
-
Rules that assign a billing cycle determination class
An implementation class using the interface IF_CRM_ISX_CYCLE_DETERMINATN is required. Enter an ID and description for the rule and select your implementation class using the F4 Help in the column Billing Cycle Determination Class. The F4 Help returns classes that implement the required interface.
Billing Cycle Determination Class
Implement the method IS_CYCLE_MANUALLY_SELECTABLE for the interface IF_CRM_ISX_CYCLE_DETERMINATN in a new implementation class to allow the manual selection of billing cycles in the provider sales order.
The method interface includes the following fields:
-
IV_RULE_ID Use this ID if you want to use the same implementation in different determination rules
-
IV_ITEM_GUID Use this ID to read the appropriate information, for example product or appointments, if the result depends on an order attribute
-
RV_IS_MANUALLY_SELECTABLE Return ABAP_TRUE if you want to return a list of several billing cycles that the user can choose from
Return ABAP_FALSE if you want to determine a single billing cycle automatically. In case you do not implement this method, the manual selection of billing cycles is turned off
Implement the method GET_CYCLE_LIST for the interface IF_CRM_ISX_CYCLE_DETERMINATN in a new implementation class to dynamically determine a billing cycle.
The method interface includes the following fields:
-
IV_RULE_ID
Use this ID if you want to use the same implementation in different determination rules.
-
IV_ITEM_GUID
Use this ID to read the appropriate information, for example product or appointments, if the available billing cycles depend on an order attribute.
-
ET_CYCLES
Add the billing cycle determined to this table. You can return several billing cycles for manual selection. In case the method IS_CYCLE_MANUALLY_SELECTABLE is not implemented or returns FALSE, the system uses either the billing cycle marked as default or simply the first one from the list.
-
ET_MESSAGES
Add error or warning messages if problems occur.
For more information, see the example implementation CL_CRM_ISX_BC_DETERM_EXAMPLE.
Default Determination Rule
You can define one of the determination rules as the default rule. The default rule is evaluated when no billing cycle settings have been maintained for a product that requires a billing cycle. You can only define one entry as a default.
Billing Cycle in Contracts
During order capturing, a billing cycle is determined, stored with the contract and replicated to SAP Convergent Invoicing (SAP CI). This happens at order item level. Only main items have their own bill cycle. Sub items inherit the billing cycle from their corresponding main item, but the billing cycle is not stored in sub-items.
If a contract change process is executed, the billingcycle is copied from the contract into the change order and is not determined again.
Determination Triggers
During order capturing, the billing cycle determination is carried out twice:
-
Directly after entering a product
-
Before the order is released
This is done because the determined billing cycle may change due to attribute changes in the order (if a determination rule with a billing cycle determination class implementation is used).
Determination Logic
In SAP CRM, the system searches for a billing cycle determination method using a certain pattern. Once a determination method (or a fixed billing cycle) is found, the system does not continue to search, even if the determination method did not return a bill cycle or the billing cycle found is no longer valid (usable to field).
The following search patterns are available for the determination logic:
-
Billing cycle determination rule for the product. The rule is evaluated in the following order:
-
Implementation class
-
Billing cycle
-
-
Fixed billing cycle for the product
-
Default billing cycle determination rule in Customizing. The rule is evaluated in the following order:
-
Implementation class
-
Billing cycle
-
The default determination rule is only used if data is not maintained for the product.
Billing Cycle Storage
The billing cycle is stored in the extension table CRMD_IST_ITA3, field CYCLE.
Billing Cycle in Contract Processes
The shipped processes are designed to keep the billing cycle stable. One reason for this is that billing cycle changes are not allowed during the billing period. Therefore, the billing cycle is transferred when contracts are copied to change orders and vice versa or if no process implements a redetermination of the billing cycle.
Activities
You make the Customizing settings for this function under .
When you assign billing cycles to provider orders, you must activate the business function Integration of SAP CC and SAP CI with the Provider Order (CRM_PROVORDERINT_1).

