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

Multiplying two decimals in ABAP CDS View

$
0
0

Hi,

in the select list of an ABAP CDS view I am trying to multiply to decimal values ( price * quantity ) - this leads to the error message:

 

Maximum accuracy 31 as DEC exceeded by an arithmetic expression

 

I tried to cast price and quantity to FLTP before the multiplication. At design time I'm getting warnings (Decimal places are corrected to 16), but the view wouldn't acitvate.

 

How can I perform a simple multiplication of two decimal fields? I am on ABAP 7.4 SP12.

 

Thanks,

Marek


Viewing all articles
Browse latest Browse all 2110

Trending Articles



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