cancel
Showing results for 
Search instead for 
Did you mean: 

SAP CC Allowance Debit Priority

bkurti
Explorer
0 Kudos
519

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

Accepted Solutions (1)

Accepted Solutions (1)

francois_thimon
Product and Topic Expert
Product and Topic Expert
0 Kudos

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

Answers (2)

Answers (2)

francois_thimon
Product and Topic Expert
Product and Topic Expert
0 Kudos

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

bkurti
Explorer
0 Kudos

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