Skip to Content
2

Error in ABAP CDS: Function ROUND: parameter at position 1 has incorrect data type FLTP

Mar 07 at 03:43 PM

52

avatar image

Hello,

First, We have ABAP 740 and I tried to create calculation field: "mseg.dmbtr / 1.17 as dmbtr_without_tax,"

but I got an error message: "Division only allowed for float numbers..."

To solve the error message I used "CAST":

In SE16N, the result of the calculation of the number 500.00, for example, was supposed to be 427.35 and not 4.2735 ..

Then, I try to use "ROUND":

How can I solve this problem?

and see 427.35 and not 4.2735..

calc-field.png (1.7 kB)
view-of-calc.png (47.7 kB)
error.png (6.3 kB)
error.png (6.3 kB)
error.png (6.3 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Horst Keller
Mar 07 at 03:49 PM
2
Show 2 Share
10 |10000 characters needed characters left characters exceeded
Thank you for your fast reply

We have ABAP 740, I tried again but still without success:

How can I solve this problem?

Is there another way?

calc-field2.png (4.9 kB)
0

You can only work with the features that are documented for your release.

In 7.40, I'm afraid there's no workaround but native SQL (AMDP).

0