on 2023 Apr 04 4:12 PM
Hi CC team,
we have the following business scenario:
The customer can have one or more valid buckets (allowances) at the same time with the same validity start and end date. When a consumption request to debit the allowance is sent we must debit the allowances according to the order they were created.
For example:
chargeableItem-> price = 40
Allowance1 -> counter 800
Allowance2 -> counter 200
This chargeable request should debit only the counter of the first allowance in this case, and debit the second only when there is not enough credit on the first one. Even the "Sorting" Tab is maintained to sort the allowances based on the unique identifier it seems that when we send a chargeableItem via the chargeableItemCharge WS both allowances counters are depleted and we have the following situation:
Allowance1 -> counter 760
Allowance2 -> counter 160
How can we debit allowances according to a specific priority we have defined?
Thanks in advance!
Best regards,
Malbora
Request clarification before answering.
Hi Malbora,
It seems that you're looking for the option named "Stop sending when the monitored property is lower than or equal to 0".
It's described in Core tool's guide, in the page about the "Allowance event sender" operator:
https://help.sap.com/docs/Convergent_Charging/c7120011d1c244168dc1f945a06f1350/c183cc88f0ac462d98c38...
The monitored property can either be a counter of the allowance itself (i.e., the bucket), or it can be an input property (e.g., the fee you need to debit).
For your current use case, you should consequently be able to use that, in order to debit allowances one by one, until you've collected the target amount.
Can you try that, and let us know if you need more guidance?
Best regards.
François
SAP Convergent Charging Support
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Malbora,
There was an issue with my browser because, when I sent my reply, I hadn't seen the conversation with Chetan.
Anyway, thank you very much for your feedback and, yes, for future implementations, you'll probably be better off using the standard feature available in Core tool.
Feel free to ask for more guidance if needed.
Best regards.
François
SAP Convergent Charging Support
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Francois,
thank you very much for your answer.
I have already resolved the issue. There was a small mapping mistake in the property value returned back from the allowance logic, that i had not noticed. As long as the updated remaining amount to be paid is equal to 0, the next allowance is not debited anymore, so everything works fine now.
The option you mention would also be a second possible solution. I was just curious why the first one was not working, but it was a mistake on my side 🙂
Kind regards,
Malbora
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
10 | |
9 | |
2 | |
2 | |
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.