Change the State of a Charging Contract

Service Operation (WS)

Definition

To change the state of a charging contract during a customer data migration

Technical Data

Software Product and Version SAP Convergent Charging 5.0
Technical Details chargingContractStateChange
Namespace http://contractstate.ws.highdeal.com/
Proxy Instance in SAP CC System Updater
Service Operation Version 0
User Operation Auditing Yes
Audit Domain CUSTOMER
Application Area IS-CC
Direction inbound
Mode synchronous
Idempotency true

Business Context and Use

This service operation is used in a migration context of customer master data (subscriber data) of the service provider. You use this operation to finalize the migration by changing the state of a charging contract just created and stored in SAP Convergent Charging. You can restore counters that reflect credits from a former system.

Note

Consider the bulk operations in bundle processing mode and in mass processing mode.

Customer Data Migration

A former system manages master data related to the end customers of a service provider. You want to migrate this data to SAP Convergent Charging.


Then, you must implement the provisioning of this converted data to SAP CC by choosing one of the following solutions:



  • Switch off the business traffic to SAP Convergent Charging
Make sure that no business traffic acquired from mediation systems can trigger the charging services related to the customer data been migrated. This can corrupt the state of this master data. Make sure that no activation process of periodic and one-off fees can be manually or automatically triggered by a user or a connected system.

Example

In an integrated SAP Solution scenario with SAP ERP of the SAP Business Suite, SAP ERP implements the necessary service operations of SAP CC to provide the migration services of master data related to end customers.

Related Service Operations

You can use the following operations to change the state of charging contracts in bulk:

You can use the following operations to perform queries on the overall state of charging contracts:

Features

This service operation changes the state of a charging contract been migrated. In the single operation request, you specify the state of the charging contract you want to modify.

Refer to the specifications of the charging contract state data model.

Consult the technical details for more information about this service operation.

Authorizations

To know the role that is expected in the user profile of the SAP CC user specified in your request messages, refer to the SAP CC Security Guide .

Error Handling

The SAP CC system may return an error classified into a category and an error stack detailing the issue and its cause.

Categories and Treatments to Implement

Consider the following error categories to design and implement the appropriate behavior of your connected application or system:

Error Category Description Error Handling
Already Exists The data has to be created but another data already exists in the connected SAP CC system with the same type and the same identifier.

Applicable for this service operation: You implement the logging of this error to enable a system administrator or a consultant to investigate and resolve the issue. Data replication or data synchronization mechanisms may failed.

Does Not Exist The data to be modified or deleted does not exist in the connected SAP CC system.

Applicable for this service operation:

Invalid The request or the data is invalid.

Applicable for this service operation:

Next follows a non-exhaustive list of errors related to the Invalid category:

  • A counter or a charge is referenced several times in the operation request
  • A counter or a charge does not exist

Incompatible Configuration The configuration of the connected SAP CC system is not compatible with the data specified in the operation request and the scope of the request. Creating or correcting the prerequisite configuration data (master data, business data) has to be done in the SAP CC system with the Core Tool user interface or within your connected application or system.

Applicable for this service operation:

Prerequisite Missing Another data mandatory for the operation is not available or is not compatible with the data specified in the operation request. Create a prerequisite for the data.

Applicable for this service operation: The prerequisite data is managed outside the SAP CC system.

Next follows a non-exhaustive list of errors related to the Prerequisite Missing category:

Illegal State The operation request is valid but was rejected because of the current state of the data in the connected SAP CC system which prevents the execution of the request. The current state of the complete system can be also the origin of the error.

Applicable for this service operation: The request will not succeed without a required manual correction or change in the SAP CC system. You implement error logging and manual retry mechanisms.

Temporary Illegal State The valid request was rejected because of the temporarilly illegal state of the data in the connected SAP CC system. The data state may automatically change without any further notification. This is a subcategory of Illegal State category. The state of a data is temporarilly illegal but the operation request can be sent again after a waiting period. The current state of the complete system can be also the origin of the error.

Applicable for this service operation: You can implement an automated resend function.

Note

This list of errors is not exhaustive: consider the technical details of the operation response.

Troubleshooting

Refer to the SAP CC Error Code Reference ( SAP Site ) for more information about a returned error code and the corrective actions necessary for troubleshooting your implementation project.

Message Types

Consult the structures of the message types related to this service operation :

Prerequisites

Consider the prerequisites specified for the process component (Web service).

Integration

There is no specific integration information.

Constraints and Integrity Conditions

Consider the constraints and integrity conditions specified for the process component (Web service).

Caution

Make sure that no process can corrupt the charging contracts been migrated before you have changed their intial state.

Notes on SAP CC Implementation

You must have installed and configured the SAP CC Core Server system.

Configuration

Consult the SAP CC Configuration and Implementation Guide to know the necessary configuration or Customizing of the SAP CC system.

Before implementing SAP Convergent Charging in your SAP system landscape, you must configure the systems and the data (master data, business data).

Limitations

Some names are reserved for internal counters in the state of the charging contract. You cannot use these names for defining counters in the chargingContractStateChange operation. Here is the list of the reserved names:

  • LAST_ACTIVATION_DATE
  • RR_NEXT_ID
  • _LAST_SNAPSHOT_DATE
  • _LAST_EXPORT_DATE
  • RERATING_LOCK_CODE
  • RERATING_LAST_CODE
  • RERATING_LAST_STATUS
  • RERATING_SUGGESTED_DATE