public class ChargingContractActivateOp extends java.lang.Object implements MessageOperation
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.
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 ActivationException 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.
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:
0 (default value): no limitation is applied0
If some attributes are missing then an
Activate Exception is thrown by the connected SAP CC system.
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.
Consult the SAP CC Application Help about the master data related to the end customers of a service provider:
ActivateAllResult,
StopChargingContractActivationOp,
HttpMessageSenderFactoryThe 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>
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 |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
OPERATION_NAME
The XML tag name of this service operation: "chargingContractActivate"
|
| Constructor and Description |
|---|
ChargingContractActivateOp()
Constructs an empty ActivateAll operation.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCharacterData(java.lang.String cData)
Adds character data to the content element.
|
void |
addChild(java.lang.String tagName,
XMLMarshallable child)
Adds a child to the object, the
child representing
the marshallable object which must be added to the element. |
int |
getMaxThroughput()
Returns the maximum throughput (maximum number of contracts activated per
second by each rater instance in the SAP CC system).
|
java.lang.String |
getName()
Returns the name of this service operation: "chargingContractActivate".
|
java.util.Date |
getToDate()
Gets the activation reference date (see 'to date') for this business operation.
|
void |
marshal(XMLOutputter output)
Gives an XML representation of this object, including its children.
|
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the element being
processed.
|
void |
setMaxThroughput(int val)
Sets the maximum throughput.
|
void |
setToDate(java.util.Date toDate)
Sets the activation reference date (see 'to date') for this business operation.
|
public static final java.lang.String OPERATION_NAME
public ChargingContractActivateOp()
public java.lang.String getName()
getName in interface MessageOperationOPERATION_NAMEpublic java.util.Date getToDate()
public void setToDate(java.util.Date toDate)
toDate - The reference date for the activationpublic int getMaxThroughput()
public void setMaxThroughput(int val)
val - The value of the maximum throughput allowedpublic void setAttributes(XMLAttributes atts)
XMLMarshallablesetAttributes in interface XMLMarshallableatts - The XML attributes of the current elementpublic void addCharacterData(java.lang.String cData)
XMLMarshallableaddCharacterData in interface XMLMarshallablecData - The character data to be addedpublic void addChild(java.lang.String tagName,
XMLMarshallable child)
XMLMarshallablechild representing
the marshallable object which must be added to the element.addChild in interface XMLMarshallabletagName - The name of tag for the childchild - The child to be addedpublic void marshal(XMLOutputter output)
XMLMarshallablemarshal in interface XMLMarshallableoutput - The XML output to marshal the object into