Skip to Content

ABAP CDS: Issue with data type FLTP

Feb 16, 2017 at 09:19 AM


avatar image
Former Member

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Horst Keller
Feb 16, 2017 at 09:36 AM
Show 1 Share
10 |10000 characters needed characters left characters exceeded
Former Member


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