Skip to Content
0

CDS Views: How to determine the score based on a tolerance value?

Apr 12, 2017 at 03:21 PM

59

avatar image

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.

% DifferenceScore80% - 100%10060% - 79% 8040% - 59%6020% - 39%400% - 19%20

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Mateusz Bialy Apr 13, 2017 at 08:27 AM
0

Hello Aditi,

use CASE and BETWEEN.

Check "abap channel" on youtube
for more info check scn.sap.com/community/abap/hana

Mateusz.

Share
10 |10000 characters needed characters left characters exceeded