2017 Feb 16 9:19 AM
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
2017 Feb 16 9:36 AM
2017 Feb 16 9:36 AM
2017 Feb 17 12:37 AM
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