cancel
Showing results for 
Search instead for 
Did you mean: 

How to determine the score based on a tolerance value in CDS Views, S/4 HANA?

Former Member
0 Kudos

I have a requirement in which we need to calculate the score based on a particular fill rate/tolerance value of supplier.

The score will be maintained in a custom table with the values. Based on the % difference of the fill rate which is calculated for every Purchase Order, can you please guide us how would we derive the score for that associated value?

Please let us know how would we achieve this using CDS Views in S/4 HANA.

Example is shown below for reference.

If Fill Rate : 0-20 %, Score is 20

If Fill Rate : 20-39%, Score is 40

If Fill Rate is 40-59%, Score is 60

If Fill Rate is 60-100%, Score is 100

It would be indeed helpful if you can help us in your suggestions.

Thanks,

Aditi

Accepted Solutions (0)

Answers (1)

Answers (1)

Sean_Zhang
Product and Topic Expert
Product and Topic Expert

you could use the case when statement in the CDS to calculate the score.