on 07-11-2018 8:38 AM
Hi
We are using counters in our logics at the charge plan level in the provider contract and we would like to be able to be able to manipulate them (for some tests and particular scenarios (e.g. sth goes wrong)).
What is the best approach to do this?
Is it possible to do this through any web service or through some java method in the API?
Thanks a lot!
Best Regards
Hello,
The only way to modify counter value is by using rating request. It could be done by using a recurring fee (ex: each day at midnight, the counter is updated) or by using an usage fee. It means that you have to implement the counter reset in your logic by adding the recurring fee or the usage fee.
If you decide to use a specific usage fee, you can use the Charging web service to execute this specific usage fee which allow to set the counter value.
Best regards,
Eric Fremont
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Eric,
you are right.
Playing with counters is "dengerous" and should not take place on the production env. Especially that there is no logging possibility for such change on CC side. I mean that there is no info in Operational or Change object logs that counter was modified.
But...
for tests or fixing issues we miss SAP standard functionality to modify counters and to log the changes(with old and new value). For example from CRM or ERP or CoreTool. They can be even marked as "changed manually by user XXXXXX".
best regards
Rafal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Maybe sombody might be interested also in another way.
Counters can be modified without calling recurring or usage charges by Webservice chargingContractStateChange.
<soapenv:Body>
<sch:chargingContractStateChangeRequest>
<date>2018-03-20T13:43:00</date>
<chargingContractState>
<chargingContractId>00000000000000000001</chargingContractId>
<!--Zero or more repetitions:-->
<counter>
<name>COUNTER_001</name>
<value>0</value>
<!--Optional:-->
<namespace>COUNTER_001_NAMESPACE</namespace>
</counter>
</chargingContractState>
</sch:chargingContractStateChangeRequest>
</soapenv:Body>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
15 | |
4 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.