Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

ABAP CDS: Issue with data type FLTP

former_member192842
Participant
0 Kudos

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

1 ACCEPTED SOLUTION

horst_keller
Product and Topic Expert
Product and Topic Expert
2 REPLIES 2

horst_keller
Product and Topic Expert
Product and Topic Expert

0 Kudos

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