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..

Divide with an appropriate function.

https://help.sap.com/http.svc/rc/abapdocu_752_index_htm/7.52/en-US/index.htm?file=abencds_f1_sql_functions_numeric.htm

Cast with an appropriate function.

https://help.sap.com/http.svc/rc/abapdocu_752_index_htm/7.52/en-US/index.htm?file=abencds_f1_conv_func_types.htm

You already have an active moderator alert for this content.

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).

## Add comment