Skip to Content
avatar image
Former Member

ABAP CDS: Issue with data type FLTP

Hi Experts,

Currently trying to do a arithmetic operation in abap cds.

cast(grscomm as abap.fltp) * 0.12

The grscomm is an currency field, hence did a cast to multiple with 0.12.

Assume the grscomm has a value 97281.00. On multiplying with 0.12 in CDS view the output is 11673.71 but the correct value is 11673.72

Did the same in abap program by declaring the data type as F, the output is 11673.72.

Please advice

Regards Anand

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Feb 16, 2017 at 09:36 AM
    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      Thanks for the Info.

      Currently we are in ABAP 7.4.

      Think the only workaround is to do the logic in open SQL. Since the round function in ABAP CDS is not supported for variables of data type FLTP

      Regards Anand