Class ChargingContractActivateOp
- All Implemented Interfaces:
MessageOperation,XMLMarshallable
Business Context and Use
You implement this service operation in your SAP system landscape to prepare your invoicing and billing operations.
Each rater instance of the SAP CC Core Server system charges all the recurring events until a reference
date (see toDate).
The SAP CC system processes all the charge activation objects included in the contract items of the provider contracts.
Implementation in Your Client Application
Stoping the Running Activation
To stop this service operation, you implement and invoke the Stop Charging Contract Activation operation.
You can stop before the activation process by sending the
Stop Charging Contract Activation operation at any time.
In this case the current activation process is interrupted by the SAP CC system. The system returns a Stop Activation operation result with a status
STOPPED_STATUS. It may return this response whereas some rate instances of the SAP CC system are still processing and
smoothly ending the current work.
Note
The stop activation operation informs all the rater instances that they have to terminate
the activation after their current charging contract activations and this in an asynchronous ways. It means that the stop operation returns
even if the rater instances are always finishing their current activations. If a new activation operation is executed immediately after
the stop activation operation there is a remote possibility of receiving an ActivateException with the
reason 'activationProcessAlreadyRunning'.
Recommendation
Since version 3.0 of SAP Convergent Charging,
SAP SE recommends the new technical interface Web Services
that is dedicated to the new data model of master data.
You can implement the operations of the Business Process Management process component.
See the Activate charging contracts in bulk operation.
A service operation is also available for subscriptions in case of mixed data.
Example
The SAP CC Admin+ user interface implements this operation: Refer
to this user interface and the start_contract_activation and stop_contract_activation commands.
Performance Handling
A maximum throughput (see maxThroughput) can be set to control the CPU resources used by each rater instance of the SAP CC system
to perform the activation process to preserve performance level for the usage charging services.
The unit represents the number of contracts activated per second for each rater instance:
- Value
0(default value): no limitation is applied - Positive value: the maximum number of contracts activated per second by each rater instance in the SAP CC system; take into account the number of instances in the system.
- Negative value: will be ignored and the throughput will be set to
0
Error Handling
If some attributes are missing then an
Activate Exception is thrown by the connected SAP CC system.
Operation Result
At the end of the processing, the connected SAP CC system returns a ActivateAllResult that
contains an execution status and the total count of activated charging contracts.
Additional Information
Consult the SAP CC Application Help about the master data related to the end customers of a service provider:
- Subscriber accounts
- Prepaid accounts
- External (postpaid) accounts
- Provider contracts
- See Also:
Operation Failure Exceptions
XML API for HCI
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="chargingContractActivate">
<xs:complexType>
<xs:attribute name="maxThroughput" type="xs:integer" default="0"/>
<xs:attribute name="toDate" type="xs:dateTime" use="required"/>
</xs:complexType>
</xs:element>
Operation Availability
You can send this operation request in HCI messages to the following final target types of instances in the connected SAP CC system:
| Edition | Final Target Instances | |||||
| rater | updater | guider | bulkLoader | taxer | dispatcher | |
| charge | No | No | No | No | No | Yes |
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe XML tag name of this service operation: "chargingContractActivate" -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCharacterData(String cData) Adds character data to the content element.voidaddChild(String tagName, XMLMarshallable child) Adds a child to the object, thechildrepresenting the marshallable object which must be added to the element.intReturns the maximum throughput (maximum number of contracts activated per second by each rater instance in the SAP CC system).getName()Returns the name of this service operation: "chargingContractActivate".Gets the activation reference date (see 'to date') for this business operation.voidmarshal(XMLOutputter output) Gives an XML representation of this object, including its children.voidsetAttributes(XMLAttributes atts) Sets the attributes of the XML representation of the element being processed.voidsetMaxThroughput(int val) Sets the maximum throughput.voidSets the activation reference date (see 'to date') for this business operation.
-
Field Details
-
OPERATION_NAME
The XML tag name of this service operation: "chargingContractActivate"- See Also:
-
-
Constructor Details
-
ChargingContractActivateOp
public ChargingContractActivateOp()Constructs an empty ActivateAll operation.
-
-
Method Details
-
getName
Returns the name of this service operation: "chargingContractActivate".- Specified by:
getNamein interfaceMessageOperation- Returns:
OPERATION_NAME
-
getToDate
Gets the activation reference date (see 'to date') for this business operation.- Returns:
- The reference date for the activation
-
setToDate
Sets the activation reference date (see 'to date') for this business operation.- Parameters:
toDate- The reference date for the activation
-
getMaxThroughput
public int getMaxThroughput()Returns the maximum throughput (maximum number of contracts activated per second by each rater instance in the SAP CC system).- Returns:
- The maximum throughput (contracts per second)
-
setMaxThroughput
public void setMaxThroughput(int val) Sets the maximum throughput. A negative value is considered like 0 (no limitation).- Parameters:
val- The value of the maximum throughput allowed
-
setAttributes
Description copied from interface:XMLMarshallableSets the attributes of the XML representation of the element being processed.- Specified by:
setAttributesin interfaceXMLMarshallable- Parameters:
atts- TheXML attributesof the current element
-
addCharacterData
Description copied from interface:XMLMarshallableAdds character data to the content element.- Specified by:
addCharacterDatain interfaceXMLMarshallable- Parameters:
cData- The character data to be added
-
addChild
Description copied from interface:XMLMarshallableAdds a child to the object, thechildrepresenting the marshallable object which must be added to the element.- Specified by:
addChildin interfaceXMLMarshallable- Parameters:
tagName- The name of tag for the childchild- The child to be added
-
marshal
Description copied from interface:XMLMarshallableGives an XML representation of this object, including its children.- Specified by:
marshalin interfaceXMLMarshallable- Parameters:
output- TheXML outputto marshal the object into
-