Quantcast
Channel: SCN: Message List - ABAP for SAP HANA
Viewing all articles
Browse latest Browse all 2110

Re: Subtraction in CDS view

$
0
0

Hello Arindam,

 

I assume you would use the alias names for the minus calculation. Alias names cannot be used in that case. Normally in such situations the "expression" used to calculate a specific column has to be repeated in such situations, but the sum function is not supported for minus operations. So within one view you cannot reach your goal.

 

You have to create a second CDS view on top of your view which adds the minus calculation. There of course you can use the names GOODS_RECPT and GOODS_ISSUE.

 

For your existing view I would recommend you to add an else value to your case expressions to avoid null values.

 

Best Regards,

Florian


Viewing all articles
Browse latest Browse all 2110

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>